mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 18:53:33 +08:00
cannode: safety_button: fix compatibility with Ardupilot (#23876)
This commit is contained in:
@@ -75,7 +75,8 @@ public:
|
||||
if (safety_button.triggered) {
|
||||
ardupilot::indication::Button Button{};
|
||||
Button.button = ardupilot::indication::Button::BUTTON_SAFETY;
|
||||
Button.press_time = UINT8_MAX;
|
||||
// NOTE: Ardupilot checks that the press time is exactly 10, PX4 checks >= 10
|
||||
Button.press_time = 10;
|
||||
uavcan::Publisher<ardupilot::indication::Button>::broadcast(Button);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user