kconfig: Add option to enable figure of eight support

This commit is contained in:
Konrad
2023-10-31 15:57:59 -04:00
committed by Daniel Agar
parent e5e66370e7
commit 8edd7ce2c1
10 changed files with 88 additions and 14 deletions
+3
View File
@@ -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();