#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)) {}