UASWaypointManager(UAS&);///< Standard constructor.
UASWaypointManager(UAS&);///< Standard constructor.
/** @name Protocol handlers */
/** @name Received message handlers */
/*@{*/
/*@{*/
voidhandleWaypointCount(quint8systemId,quint8compId,quint16count);///< Handles received waypoint count messages
voidhandleWaypointCount(quint8systemId,quint8compId,quint16count);///< Handles received waypoint count messages
voidhandleWaypoint(quint8systemId,quint8compId,mavlink_waypoint_t*wp);///< Handles received waypoint messages
voidhandleWaypoint(quint8systemId,quint8compId,mavlink_waypoint_t*wp);///< Handles received waypoint messages
...
@@ -78,6 +78,8 @@ public:
...
@@ -78,6 +78,8 @@ public:
QVector<Waypoint*>&getWaypointList(void){returnwaypoints;}///< Returns a reference to the local waypoint list. Gives full access to the internal data structure - Subject to change: Public const access and friend access for the waypoint list widget.
QVector<Waypoint*>&getWaypointList(void){returnwaypoints;}///< Returns a reference to the local waypoint list. Gives full access to the internal data structure - Subject to change: Public const access and friend access for the waypoint list widget.
private:
private:
/** @name Message send functions */
/*@{*/
voidsendWaypointClearAll();
voidsendWaypointClearAll();
voidsendWaypointSetCurrent(quint16seq);
voidsendWaypointSetCurrent(quint16seq);
voidsendWaypointCount();
voidsendWaypointCount();
...
@@ -85,6 +87,7 @@ private:
...
@@ -85,6 +87,7 @@ private:
voidsendWaypointRequest(quint16seq);///< Requests a waypoint with sequence number seq
voidsendWaypointRequest(quint16seq);///< Requests a waypoint with sequence number seq
voidsendWaypoint(quint16seq);///< Sends a waypoint with sequence number seq
voidsendWaypoint(quint16seq);///< Sends a waypoint with sequence number seq
voidsendWaypointAck(quint8type);///< Sends a waypoint ack
voidsendWaypointAck(quint8type);///< Sends a waypoint ack
/*@}*/
publicslots:
publicslots:
voidtimeout();///< Called by the timer if a response times out. Handles send retries.
voidtimeout();///< Called by the timer if a response times out. Handles send retries.
...
@@ -107,8 +110,8 @@ private:
...
@@ -107,8 +110,8 @@ private:
quint8current_partner_systemid;///< The current protocol communication target system
quint8current_partner_systemid;///< The current protocol communication target system
quint8current_partner_compid;///< The current protocol communication target component
quint8current_partner_compid;///< The current protocol communication target component
QVector<Waypoint*>waypoints;///< local waypoint list
QVector<Waypoint*>waypoints;///< local waypoint list (main storage)
QVector<mavlink_waypoint_t*>waypoint_buffer;///< communication buffer for waypoints
QVector<mavlink_waypoint_t*>waypoint_buffer;///< buffer for waypoints during communication