mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 02:33:33 +08:00
kconfig: Add option to enable figure of eight support
This commit is contained in:
@@ -556,6 +556,7 @@ void Navigator::run()
|
||||
|
||||
} else if (cmd.command == vehicle_command_s::VEHICLE_CMD_DO_FIGUREEIGHT &&
|
||||
get_vstatus()->vehicle_type == vehicle_status_s::VEHICLE_TYPE_FIXED_WING) {
|
||||
#ifdef CONFIG_FIGURE_OF_EIGHT
|
||||
// Only valid for fixed wing mode
|
||||
|
||||
bool orbit_location_valid = true;
|
||||
@@ -606,6 +607,8 @@ void Navigator::run()
|
||||
mavlink_log_critical(&_mavlink_log_pub, "Figure 8 is outside geofence");
|
||||
}
|
||||
|
||||
#endif // CONFIG_FIGURE_OF_EIGHT
|
||||
|
||||
} else if (cmd.command == vehicle_command_s::VEHICLE_CMD_NAV_TAKEOFF) {
|
||||
position_setpoint_triplet_s *rep = get_takeoff_triplet();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user