#include <mavWaypoint.h>
Public Member Functions | |
void | activelySend () |
Implement the messages actively sending function. | |
MavWaypoint (MavHandler &handler, std::string name, uint16_t gcsNum,...) | |
Constructor for Waypoint Module. Recv buf size 4096. | |
void | passivelyReceive (mavlink_message_t &msg) |
Implement the messages passively handling function. | |
void | reactToMissionAck (uint16_t gcsIdx, const mavlink_message_t &recvMsg) |
void | reactToMissionClearAll (uint16_t gcsIdx, const mavlink_message_t &recvMsg) |
void | reactToMissionCount (uint16_t gcsIdx, const mavlink_message_t &recvMsg) |
void | reactToMissionItem (uint16_t gcsIdx, const mavlink_message_t &recvMsg) |
void | reactToMissionRequest (uint16_t gcsIdx, const mavlink_message_t &recvMsg) |
void | reactToMissionRequestList (uint16_t gcsIdx, const mavlink_message_t &recvMsg) |
void | reactToMissionSetCurrent (uint16_t gcsIdx, const mavlink_message_t &recvMsg) |
void | setMissionAckHook (void(*func)()) |
void | setMissionClearAllHook (void(*func)()) |
void | setMissionCountHook (void(*func)(uint16_t)) |
void | setMissionItemHook (void(*func)(uint16_t)) |
void | setMissionRequestHook (void(*func)(uint16_t)) |
void | setMissionRequestListHook (void(*func)()) |
React to sensors from all GCS and execute rsp. | |
void | setMissionSetCurrentHook (void(*func)(uint16_t)) |
void | setTargetHook (void(*func)(const float[][7], uint16_t, uint16_t)) |
~MavWaypoint () | |
Private Types | |
enum | { idle, uploading, downloading, loaded, executing, paused, error } |
Private Attributes | |
void(* | m_missionAckHook )() |
void(* | m_missionClearAllHook )() |
void(* | m_missionCountHook )(uint16_t) |
void(* | m_missionItemHook )(uint16_t) |
void(* | m_missionRequestHook )(uint16_t) |
void(* | m_missionRequestListHook )() |
void(* | m_missionSetCurrentHook )(uint16_t) |
enum dji2mav::MavWaypoint:: { ... } | m_status |
void(* | m_targetHook )(const float[][7], uint16_t, uint16_t) |
WaypointList | m_wpl |
Definition at line 24 of file mavWaypoint.h.
anonymous enum [private] |
Definition at line 510 of file mavWaypoint.h.
dji2mav::MavWaypoint::MavWaypoint | ( | MavHandler & | handler, |
std::string | name, | ||
uint16_t | gcsNum, | ||
... | |||
) | [inline] |
Constructor for Waypoint Module. Recv buf size 4096.
handler | : The reference of MavHandler Object |
name | : The name of this module |
gcsNum | : The number of GCS that the module employs |
... | : The indexes of GCS list, should be uint16_t |
Definition at line 33 of file mavWaypoint.h.
dji2mav::MavWaypoint::~MavWaypoint | ( | ) | [inline] |
Definition at line 65 of file mavWaypoint.h.
void dji2mav::MavWaypoint::activelySend | ( | ) | [inline, virtual] |
Implement the messages actively sending function.
Implements dji2mav::MavModule.
Definition at line 111 of file mavWaypoint.h.
void dji2mav::MavWaypoint::passivelyReceive | ( | mavlink_message_t & | msg | ) | [inline, virtual] |
Implement the messages passively handling function.
msg | : The reference of received message |
Implements dji2mav::MavModule.
Definition at line 75 of file mavWaypoint.h.
void dji2mav::MavWaypoint::reactToMissionAck | ( | uint16_t | gcsIdx, |
const mavlink_message_t & | recvMsg | ||
) | [inline] |
Definition at line 210 of file mavWaypoint.h.
void dji2mav::MavWaypoint::reactToMissionClearAll | ( | uint16_t | gcsIdx, |
const mavlink_message_t & | recvMsg | ||
) | [inline] |
Definition at line 358 of file mavWaypoint.h.
void dji2mav::MavWaypoint::reactToMissionCount | ( | uint16_t | gcsIdx, |
const mavlink_message_t & | recvMsg | ||
) | [inline] |
Definition at line 248 of file mavWaypoint.h.
void dji2mav::MavWaypoint::reactToMissionItem | ( | uint16_t | gcsIdx, |
const mavlink_message_t & | recvMsg | ||
) | [inline] |
Definition at line 293 of file mavWaypoint.h.
void dji2mav::MavWaypoint::reactToMissionRequest | ( | uint16_t | gcsIdx, |
const mavlink_message_t & | recvMsg | ||
) | [inline] |
Definition at line 157 of file mavWaypoint.h.
void dji2mav::MavWaypoint::reactToMissionRequestList | ( | uint16_t | gcsIdx, |
const mavlink_message_t & | recvMsg | ||
) | [inline] |
Definition at line 115 of file mavWaypoint.h.
void dji2mav::MavWaypoint::reactToMissionSetCurrent | ( | uint16_t | gcsIdx, |
const mavlink_message_t & | recvMsg | ||
) | [inline] |
Definition at line 400 of file mavWaypoint.h.
void dji2mav::MavWaypoint::setMissionAckHook | ( | void(*)() | func | ) | [inline] |
Definition at line 477 of file mavWaypoint.h.
void dji2mav::MavWaypoint::setMissionClearAllHook | ( | void(*)() | func | ) | [inline] |
Definition at line 492 of file mavWaypoint.h.
void dji2mav::MavWaypoint::setMissionCountHook | ( | void(*)(uint16_t) | func | ) | [inline] |
Definition at line 482 of file mavWaypoint.h.
void dji2mav::MavWaypoint::setMissionItemHook | ( | void(*)(uint16_t) | func | ) | [inline] |
Definition at line 487 of file mavWaypoint.h.
void dji2mav::MavWaypoint::setMissionRequestHook | ( | void(*)(uint16_t) | func | ) | [inline] |
Definition at line 472 of file mavWaypoint.h.
void dji2mav::MavWaypoint::setMissionRequestListHook | ( | void(*)() | func | ) | [inline] |
React to sensors from all GCS and execute rsp.
Definition at line 467 of file mavWaypoint.h.
void dji2mav::MavWaypoint::setMissionSetCurrentHook | ( | void(*)(uint16_t) | func | ) | [inline] |
Definition at line 497 of file mavWaypoint.h.
void dji2mav::MavWaypoint::setTargetHook | ( | void(*)(const float[][7], uint16_t, uint16_t) | func | ) | [inline] |
Definition at line 502 of file mavWaypoint.h.
void(* dji2mav::MavWaypoint::m_missionAckHook)() [private] |
Definition at line 522 of file mavWaypoint.h.
void(* dji2mav::MavWaypoint::m_missionClearAllHook)() [private] |
Definition at line 525 of file mavWaypoint.h.
void(* dji2mav::MavWaypoint::m_missionCountHook)(uint16_t) [private] |
Definition at line 523 of file mavWaypoint.h.
void(* dji2mav::MavWaypoint::m_missionItemHook)(uint16_t) [private] |
Definition at line 524 of file mavWaypoint.h.
void(* dji2mav::MavWaypoint::m_missionRequestHook)(uint16_t) [private] |
Definition at line 521 of file mavWaypoint.h.
void(* dji2mav::MavWaypoint::m_missionRequestListHook)() [private] |
Definition at line 520 of file mavWaypoint.h.
void(* dji2mav::MavWaypoint::m_missionSetCurrentHook)(uint16_t) [private] |
Definition at line 526 of file mavWaypoint.h.
enum { ... } dji2mav::MavWaypoint::m_status [private] |
void(* dji2mav::MavWaypoint::m_targetHook)(const float[][7], uint16_t, uint16_t) [private] |
Definition at line 527 of file mavWaypoint.h.
WaypointList dji2mav::MavWaypoint::m_wpl [private] |
Definition at line 508 of file mavWaypoint.h.