Added new target location algorithm.

Fixed issue with target altitude calculation.
This commit is contained in:
Nffj84
2024-07-16 18:15:10 +03:00
parent 46ad1f0ff7
commit 2b9bda1ff0
11 changed files with 98 additions and 47 deletions
+2 -1
View File
@@ -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;