mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 09:38:29 -04:00
AP_Hal_Linux: PCA9685: do not shutdown
Shutting down causes the pulses to be cut short, often causing ESCs to interpret this pulse
This commit is contained in:
parent
176de8aa86
commit
b5de26c1f2
@ -173,8 +173,6 @@ bool RCOutput_PCA9685::force_safety_on() {
|
||||
}
|
||||
/* Shutdown before sleeping. */
|
||||
_dev->write_register(PCA9685_RA_ALL_LED_OFF_H, PCA9685_ALL_LED_OFF_H_SHUT);
|
||||
/* Put PCA9685 to sleep */
|
||||
_dev->write_register(PCA9685_RA_MODE1, PCA9685_MODE1_SLEEP_BIT);
|
||||
|
||||
_dev->get_semaphore()->give();
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user