mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 03:33:33 +08:00
uORB: remove lost message count per DeviceNode
- update 'uorb status' to print basic info for all advertised DeviceNodes - report vehicle_command gaps in commander, navigator, mavlink
This commit is contained in:
@@ -217,9 +217,14 @@ Navigator::run()
|
||||
_home_pos_sub.update(&_home_pos);
|
||||
|
||||
if (_vehicle_command_sub.updated()) {
|
||||
const unsigned last_generation = _vehicle_command_sub.get_last_generation();
|
||||
vehicle_command_s cmd{};
|
||||
_vehicle_command_sub.copy(&cmd);
|
||||
|
||||
if (_vehicle_command_sub.get_last_generation() != last_generation + 1) {
|
||||
PX4_ERR("vehicle_command lost, generation %d -> %d", last_generation, _vehicle_command_sub.get_last_generation());
|
||||
}
|
||||
|
||||
if (cmd.command == vehicle_command_s::VEHICLE_CMD_DO_GO_AROUND) {
|
||||
|
||||
// DO_GO_AROUND is currently handled by the position controller (unacknowledged)
|
||||
|
||||
Reference in New Issue
Block a user