|
APM:Libraries
|
#include <AP_Stats.h>
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 |
Definition at line 9 of file AP_Stats.h.
|
private |
Definition at line 44 of file AP_Stats.cpp.
Referenced by init(), and update().
| void AP_Stats::flush | ( | void | ) |
Definition at line 60 of file AP_Stats.cpp.
Referenced by update().
| void AP_Stats::init | ( | void | ) |
| void AP_Stats::set_flying | ( | bool | b | ) |
| void AP_Stats::update | ( | void | ) |
|
private |
Definition at line 66 of file AP_Stats.cpp.
Referenced by set_flying(), and update().
|
private |
Definition at line 76 of file AP_Stats.cpp.
Referenced by update().
|
private |
Definition at line 47 of file AP_Stats.h.
Referenced by set_flying(), and update_flighttime().
|
private |
Definition at line 48 of file AP_Stats.h.
Referenced by update_runtime().
| AP_Int16 AP_Stats::bootcount |
Definition at line 36 of file AP_Stats.h.
| uint32_t AP_Stats::flttime |
Definition at line 16 of file AP_Stats.h.
Referenced by copy_variables_from_parameters(), flush(), and update_flighttime().
| AP_Int32 AP_Stats::flttime |
Definition at line 37 of file AP_Stats.h.
|
private |
Definition at line 45 of file AP_Stats.h.
Referenced by update().
|
private |
Definition at line 44 of file AP_Stats.h.
Referenced by update().
| struct { ... } AP_Stats::params |
Referenced by copy_variables_from_parameters(), flush(), init(), and update().
| uint32_t AP_Stats::reset |
Definition at line 18 of file AP_Stats.h.
Referenced by copy_variables_from_parameters(), and update().
| AP_Int32 AP_Stats::reset |
Definition at line 39 of file AP_Stats.h.
| uint32_t AP_Stats::runtime |
Definition at line 17 of file AP_Stats.h.
Referenced by copy_variables_from_parameters(), flush(), and update_runtime().
| AP_Int32 AP_Stats::runtime |
Definition at line 38 of file AP_Stats.h.
|
static |
Definition at line 31 of file AP_Stats.h.
1.8.13