voidreadWaypoints(boolread_to_edit=false);///< Requests the MAV's current waypoint list.
voidwriteWaypoints();///< Sends the waypoint list to the MAV
intsetCurrentWaypoint(quint16seq);///< Changes the current waypoint and sends the sequence number of the waypoint that should get the new target waypoint to the UAS
intsetCurrentWaypoint(quint16seq);///< Sends the sequence number of the waypoint that should get the new target waypoint to the UAS
intsetCurrentEditable(quint16seq);///< Changes the current waypoint in edit tab
/*@}*/
/** @name Waypoint list operations */
...
...
@@ -136,7 +137,7 @@ public slots:
voidsaveWaypoints(constQString&saveFile);///< saves the local waypoint list to saveFile
voidloadWaypoints(constQString&loadFile);///< loads a waypoint list from loadFile
voidnotifyOfChangeEditable(Waypoint*wp);///< Notifies manager to changes to an editable waypoint
//void notifyOfChangeViewOnly(Waypoint* wp); ///< Notifies manager to changes to a viewonly waypoint
voidnotifyOfChangeViewOnly(Waypoint*wp);///< Notifies manager to changes to a viewonly waypoint, e.g. some widget wants to change "current"
FIXME: The checkbox should turn gray to indicate, that set_current request has been sent to UAV. It should become blue (checked) after receiving set_current_ack from waypointplanner.
m_ui->current->setStyleSheet("*::indicator { \
border: 1px solid #777777; \
border-radius: 2px; \
color: #999999; \
width: 10px; \
height: 10px; \
}");
*/
wp->setCurrent(true);
emitchangeCurrentWaypoint(wp->getId());//the slot changeCurrentWaypoint() in WaypointList sets all other current flags to false