mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 13:36:35 +00:00
Added new target location algorithm.
Fixed issue with target altitude calculation.
This commit is contained in:
@@ -39,7 +39,8 @@ void LocalControl::run()
|
||||
|
||||
if (commandId == COMMAND_ID::RUN_TARGET_LOCATION_TEST) {
|
||||
qInfo().noquote().nospace() << "Running target location test";
|
||||
GPSData gpsData = UtilsTargetLocation::getLocation(200.0f, 63.16122286887124f, 23.822053704379698f, 180.0f, 0.0f, 0.0f, 5.0f, 20);
|
||||
//GPSData gpsData = UtilsTargetLocation::getLocation(200.0f, 63.16122286887124f, 23.822053704379698f, 180.0f, 0.0f, 0.0f, 5.0f, 20);
|
||||
GPSData gpsData = UtilsTargetLocation::getLocation(200.0f, 63.16122286887124f, 23.822053704379698f, 180.0f, 0.0f, 0.0f);
|
||||
qInfo().noquote().nospace() << "Altitude: " << gpsData.altitude;
|
||||
qInfo().noquote().nospace() << "Latitude: " << gpsData.latitude;
|
||||
qInfo().noquote().nospace() << "Longitude: " << gpsData.longitude;
|
||||
|
||||
Reference in New Issue
Block a user