mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-29 20:18:31 -04:00
DataFlash: expose the number of lost log messages
will be logged in PM message
This commit is contained in:
parent
8683616d8c
commit
c765979f9a
@ -203,6 +203,14 @@ void DataFlash_Class::Log_Write_Mission_Cmd(const AP_Mission &mission,
|
|||||||
FOR_EACH_BACKEND(Log_Write_Mission_Cmd(mission, cmd));
|
FOR_EACH_BACKEND(Log_Write_Mission_Cmd(mission, cmd));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t DataFlash_Class::num_dropped() const
|
||||||
|
{
|
||||||
|
if (_next_backend == 0) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
return backends[0]->num_dropped();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// end functions pass straight through to backend
|
// end functions pass straight through to backend
|
||||||
|
|
||||||
|
@ -159,6 +159,9 @@ public:
|
|||||||
|
|
||||||
void periodic_tasks(); // may want to split this into GCS/non-GCS duties
|
void periodic_tasks(); // may want to split this into GCS/non-GCS duties
|
||||||
|
|
||||||
|
// number of blocks that have been dropped
|
||||||
|
uint32_t num_dropped(void) const;
|
||||||
|
|
||||||
vehicle_startup_message_Log_Writer _vehicle_messages;
|
vehicle_startup_message_Log_Writer _vehicle_messages;
|
||||||
|
|
||||||
// parameter support
|
// parameter support
|
||||||
|
@ -94,6 +94,10 @@ public:
|
|||||||
const AP_Param::ParamToken &token,
|
const AP_Param::ParamToken &token,
|
||||||
enum ap_var_type type);
|
enum ap_var_type type);
|
||||||
|
|
||||||
|
uint32_t num_dropped(void) const {
|
||||||
|
return _dropped;
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
uint32_t dropped;
|
uint32_t dropped;
|
||||||
uint8_t internal_errors; // uint8_t - wishful thinking?
|
uint8_t internal_errors; // uint8_t - wishful thinking?
|
||||||
|
Loading…
Reference in New Issue
Block a user