aboutsummaryrefslogtreecommitdiff
path: root/src/waypoint.cc
blob: 7acf632be10362cc33665d40be0e1cd5ca143394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "waypoint.hh"


Waypoint::Waypoint(unsigned frame, QVector3D pos)
	:frame(frame),
	 pos(pos) {}


Waypoint::Waypoint(const QJsonObject &json)
	:Waypoint(json["frame"].toInt(),
			  QVector3D(json["position"]["lng_X"].toInt() / 100.0,
						json["position"]["alt_Y"].toInt() / 100.0,
						json["position"]["lat_Z"].toInt() / 100.0)) {}