mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
HAL_Linux: try to stop PWMs before shutting down due to SIGTERM
This commit is contained in:
parent
6cb4e6b31d
commit
38e8020e4b
@ -419,6 +419,8 @@ void HAL_Linux::run(int argc, char* const argv[], Callbacks* callbacks) const
|
||||
callbacks->loop();
|
||||
}
|
||||
|
||||
// At least try to stop all PWM before shutting down
|
||||
rcout->force_safety_on();
|
||||
rcin->teardown();
|
||||
I2CDeviceManager::from(i2c_mgr)->teardown();
|
||||
SPIDeviceManager::from(spi)->teardown();
|
||||
|
Loading…
Reference in New Issue
Block a user