Plane: send SERVO_OUTPUT_RAW message when in cpu failsafe under SITL

This allows us to test that rc inputs are copied to the outputs in CPU
failsafe in autotest
This commit is contained in:
Peter Barker 2020-02-29 11:12:29 +11:00 committed by Peter Barker
parent 3f7ab6289d
commit 5a7d52fa0d
1 changed files with 6 additions and 0 deletions

View File

@ -102,5 +102,11 @@ void Plane::failsafe_check(void)
flaperon_update(0);
servos_output();
// in SITL we send through the servo outputs so we can verify
// we're manipulating surfaces
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
gcs().chan(0)->send_servo_output_raw();
#endif
}
}