diff --git a/src/uas/UAS.h b/src/uas/UAS.h index 96bbc44d7973edf93a4bd0b305cebe17f46db542..11d80e3a9d75fbbdaf90a445bbd5662810c6c5f6 100644 --- a/src/uas/UAS.h +++ b/src/uas/UAS.h @@ -357,7 +357,7 @@ protected slots: void receiveMessageNamedValue(const mavlink_message_t& message); private: - unsigned int mode; ///< The current mode of the MAV +// unsigned int mode; ///< The current mode of the MAV }; diff --git a/src/ui/WaypointList.cc b/src/ui/WaypointList.cc index 0c067d52912cacb5ebeaf74a536a29fff8d0a257..e04b51c8f5bbe038b7a3d4bd210b947a94d4fa11 100644 --- a/src/ui/WaypointList.cc +++ b/src/ui/WaypointList.cc @@ -191,11 +191,12 @@ void WaypointList::add() wp = new Waypoint(0, uas->getLatitude(), uas->getLongitude(), uas->getAltitude(), 0.0, 0.0, 0.0, 0.0, true, true, MAV_FRAME_GLOBAL, MAV_CMD_NAV_WAYPOINT); uas->getWaypointManager()->addWaypoint(wp); + } } } -void WaypointList::addCurrentPositonWaypoint() -{ +void WaypointList::addCurrentPositonWaypoint(){ + /* TODO: implement with new waypoint structure if (uas) {