implemented MAV_CMD_REQUEST_MESSAGE for STORAGE_INFORMATION

This commit is contained in:
David Jablonski
2020-06-03 17:57:12 +02:00
committed by Julian Oes
parent 25bfcf0497
commit fd09198c7e
4 changed files with 137 additions and 61 deletions
+6 -2
View File
@@ -96,8 +96,12 @@ public:
* This function is called in response to a MAV_CMD_REQUEST_MESSAGE command. The default implementation is to
* just reset the counter to immediately send one message.
*/
virtual void request_message(float param1 = 0.0, float param2 = 0.0, float param3 = 0.0, float param4 = 0.0,
float param5 = 0.0, float param6 = 0.0, float param7 = 0.0) { reset_last_sent(); }
virtual bool request_message(float param1 = 0.0, float param2 = 0.0, float param3 = 0.0, float param4 = 0.0,
float param5 = 0.0, float param6 = 0.0, float param7 = 0.0)
{
reset_last_sent();
return true;
}
/**
* Get the average message size