mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 01:11:36 +08:00
mavlink: use send() instead of using reset flag
I think we can just directly use send() and don't need to use the workaround of resetting the send flag to trigger one send. Also, we don't need to override it if we don't need to check any params.
This commit is contained in:
@@ -99,8 +99,7 @@ public:
|
||||
virtual bool request_message(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;
|
||||
return send(hrt_absolute_time());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user