APM:Libraries
Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
AP_Stats Class Reference

#include <AP_Stats.h>

Collaboration diagram for AP_Stats:
[legend]

Public Member Functions

void init ()
 
void flush ()
 
void update ()
 
void set_flying (bool b)
 

Public Attributes

uint32_t flttime
 
uint32_t runtime
 
uint32_t reset
 
AP_Int16 bootcount
 
AP_Int32 flttime
 
AP_Int32 runtime
 
AP_Int32 reset
 

Static Public Attributes

static const struct AP_Param::GroupInfo var_info []
 

Private Member Functions

void copy_variables_from_parameters ()
 
void update_flighttime ()
 
void update_runtime ()
 

Private Attributes

struct {
   AP_Int16   bootcount
 
   AP_Int32   flttime
 
   AP_Int32   runtime
 
   AP_Int32   reset
 
params
 
uint64_t last_flush_ms
 
const uint16_t flush_interval_ms = 30000
 
uint64_t _flying_ms
 
uint64_t _last_runtime_ms
 

Detailed Description

Definition at line 9 of file AP_Stats.h.

Member Function Documentation

◆ copy_variables_from_parameters()

void AP_Stats::copy_variables_from_parameters ( )
private

Definition at line 44 of file AP_Stats.cpp.

Referenced by init(), and update().

Here is the caller graph for this function:

◆ flush()

void AP_Stats::flush ( void  )

Definition at line 60 of file AP_Stats.cpp.

Referenced by update().

Here is the caller graph for this function:

◆ init()

void AP_Stats::init ( void  )

Definition at line 51 of file AP_Stats.cpp.

Here is the call graph for this function:

◆ set_flying()

void AP_Stats::set_flying ( bool  b)

Definition at line 109 of file AP_Stats.cpp.

Here is the call graph for this function:

◆ update()

void AP_Stats::update ( void  )

Definition at line 84 of file AP_Stats.cpp.

Here is the call graph for this function:

◆ update_flighttime()

void AP_Stats::update_flighttime ( )
private

Definition at line 66 of file AP_Stats.cpp.

Referenced by set_flying(), and update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_runtime()

void AP_Stats::update_runtime ( )
private

Definition at line 76 of file AP_Stats.cpp.

Referenced by update().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _flying_ms

uint64_t AP_Stats::_flying_ms
private

Definition at line 47 of file AP_Stats.h.

Referenced by set_flying(), and update_flighttime().

◆ _last_runtime_ms

uint64_t AP_Stats::_last_runtime_ms
private

Definition at line 48 of file AP_Stats.h.

Referenced by update_runtime().

◆ bootcount

AP_Int16 AP_Stats::bootcount

Definition at line 36 of file AP_Stats.h.

◆ flttime [1/2]

uint32_t AP_Stats::flttime

Definition at line 16 of file AP_Stats.h.

Referenced by copy_variables_from_parameters(), flush(), and update_flighttime().

◆ flttime [2/2]

AP_Int32 AP_Stats::flttime

Definition at line 37 of file AP_Stats.h.

◆ flush_interval_ms

const uint16_t AP_Stats::flush_interval_ms = 30000
private

Definition at line 45 of file AP_Stats.h.

Referenced by update().

◆ last_flush_ms

uint64_t AP_Stats::last_flush_ms
private

Definition at line 44 of file AP_Stats.h.

Referenced by update().

◆ params

struct { ... } AP_Stats::params

◆ reset [1/2]

uint32_t AP_Stats::reset

Definition at line 18 of file AP_Stats.h.

Referenced by copy_variables_from_parameters(), and update().

◆ reset [2/2]

AP_Int32 AP_Stats::reset

Definition at line 39 of file AP_Stats.h.

◆ runtime [1/2]

uint32_t AP_Stats::runtime

Definition at line 17 of file AP_Stats.h.

Referenced by copy_variables_from_parameters(), flush(), and update_runtime().

◆ runtime [2/2]

AP_Int32 AP_Stats::runtime

Definition at line 38 of file AP_Stats.h.

◆ var_info

const AP_Param::GroupInfo AP_Stats::var_info
static

Definition at line 31 of file AP_Stats.h.


The documentation for this class was generated from the following files: