mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
Fix the direction of the override switch for the new state machine
This commit is contained in:
@@ -286,7 +286,7 @@ controls_tick() {
|
|||||||
* requested override.
|
* requested override.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if ((r_status_flags & PX4IO_P_STATUS_FLAGS_RC_OK) && (REG_TO_SIGNED(r_rc_values[4]) > RC_CHANNEL_HIGH_THRESH))
|
if ((r_status_flags & PX4IO_P_STATUS_FLAGS_RC_OK) && (REG_TO_SIGNED(r_rc_values[4]) < RC_CHANNEL_LOW_THRESH))
|
||||||
override = true;
|
override = true;
|
||||||
|
|
||||||
if (override) {
|
if (override) {
|
||||||
|
|||||||
Reference in New Issue
Block a user