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
+6
View File
@@ -6,6 +6,7 @@
#include "remoteControl.hpp"
#include "serialCommand.hpp"
#include "serialPort.hpp"
#include "utilsTargetLocation.hpp"
int main(int argc, char *argv[])
{
@@ -31,6 +32,11 @@ int main(int argc, char *argv[])
SerialCommand serialCommand;
Config::setInitalValues(&serialPort, &serialCommand);
GPSData test = UtilsTargetLocation::getLocation(100.0f, 49.8397, 24.0319, 180.0f, 0.0f, 0.0f);
qInfo().noquote().nospace() << "altitude: " << test.altitude;
qInfo().noquote().nospace() << "latitude: " << test.latitude;
qInfo().noquote().nospace() << "longitude: " << test.longitude;
// Remote mode will read commands from pipe
if (useRemoteMode == true) {
qDebug() << "Creating new RemoteControl object";