mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 13:16:34 +00:00
Added new target location algorithm.
Fixed issue with target altitude calculation.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user