mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 07:23:34 +08:00
offboardCheck: acceleration setpoints only require vehicle attitude control
This commit is contained in:
@@ -56,7 +56,7 @@ void OffboardChecks::checkAndReport(const Context &context, Report &reporter)
|
|||||||
} else if (offboard_control_mode.velocity && reporter.failsafeFlags().local_velocity_invalid) {
|
} else if (offboard_control_mode.velocity && reporter.failsafeFlags().local_velocity_invalid) {
|
||||||
offboard_available = false;
|
offboard_available = false;
|
||||||
|
|
||||||
} else if (offboard_control_mode.acceleration && reporter.failsafeFlags().local_velocity_invalid) {
|
} else if (offboard_control_mode.acceleration && reporter.failsafeFlags().attitude_invalid) {
|
||||||
// OFFBOARD acceleration handled by position controller
|
// OFFBOARD acceleration handled by position controller
|
||||||
offboard_available = false;
|
offboard_available = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user