#include <mavHotpoint.h>
Public Member Functions | |
void | activelySend () |
Implement the messages actively sending function. | |
MavHotpoint (MavHandler &handler, std::string name, uint16_t gcsNum,...) | |
Constructor for Hotpoint Module. Recv buf size 4096. | |
void | passivelyReceive (mavlink_message_t &msg) |
Implement the messages passive 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)()) |
void | setMissionSetCurrentHook (void(*func)(uint16_t)) |
void | setTargetHook (void(*func)(const float[], uint16_t, uint16_t)) |
~MavHotpoint () | |
Private Types | |
enum | { idle, uploading, downloading, loaded, executing, paused, error } |
Private Attributes | |
HotpointData | m_hp |
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::MavHotpoint:: { ... } | m_status |
void(* | m_targetHook )(const float[], uint16_t, uint16_t) |
Definition at line 24 of file mavHotpoint.h.
anonymous enum [private] |
Definition at line 483 of file mavHotpoint.h.
dji2mav::MavHotpoint::MavHotpoint | ( | MavHandler & | handler, |
std::string | name, | ||
uint16_t | gcsNum, | ||
... | |||
) | [inline] |
Constructor for Hotpoint 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 mavHotpoint.h.
dji2mav::MavHotpoint::~MavHotpoint | ( | ) | [inline] |
Definition at line 65 of file mavHotpoint.h.
void dji2mav::MavHotpoint::activelySend | ( | ) | [inline, virtual] |
Implement the messages actively sending function.
Implements dji2mav::MavModule.
Definition at line 111 of file mavHotpoint.h.
void dji2mav::MavHotpoint::passivelyReceive | ( | mavlink_message_t & | msg | ) | [inline, virtual] |
Implement the messages passive handling function.
msg | : The reference of received message |
Implements dji2mav::MavModule.
Definition at line 75 of file mavHotpoint.h.
void dji2mav::MavHotpoint::reactToMissionAck | ( | uint16_t | gcsIdx, |
const mavlink_message_t & | recvMsg | ||
) | [inline] |
Definition at line 207 of file mavHotpoint.h.
void dji2mav::MavHotpoint::reactToMissionClearAll | ( | uint16_t | gcsIdx, |
const mavlink_message_t & | recvMsg | ||
) | [inline] |
Definition at line 339 of file mavHotpoint.h.
void dji2mav::MavHotpoint::reactToMissionCount | ( | uint16_t | gcsIdx, |
const mavlink_message_t & | recvMsg | ||
) | [inline] |
Definition at line 244 of file mavHotpoint.h.
void dji2mav::MavHotpoint::reactToMissionItem | ( | uint16_t | gcsIdx, |
const mavlink_message_t & | recvMsg | ||
) | [inline] |
Definition at line 287 of file mavHotpoint.h.
void dji2mav::MavHotpoint::reactToMissionRequest | ( | uint16_t | gcsIdx, |
const mavlink_message_t & | recvMsg | ||
) | [inline] |
Definition at line 156 of file mavHotpoint.h.
void dji2mav::MavHotpoint::reactToMissionRequestList | ( | uint16_t | gcsIdx, |
const mavlink_message_t & | recvMsg | ||
) | [inline] |
Definition at line 115 of file mavHotpoint.h.
void dji2mav::MavHotpoint::reactToMissionSetCurrent | ( | uint16_t | gcsIdx, |
const mavlink_message_t & | recvMsg | ||
) | [inline] |
Definition at line 381 of file mavHotpoint.h.
void dji2mav::MavHotpoint::setMissionAckHook | ( | void(*)() | func | ) | [inline] |
Definition at line 449 of file mavHotpoint.h.
void dji2mav::MavHotpoint::setMissionClearAllHook | ( | void(*)() | func | ) | [inline] |
Definition at line 464 of file mavHotpoint.h.
void dji2mav::MavHotpoint::setMissionCountHook | ( | void(*)(uint16_t) | func | ) | [inline] |
Definition at line 454 of file mavHotpoint.h.
void dji2mav::MavHotpoint::setMissionItemHook | ( | void(*)(uint16_t) | func | ) | [inline] |
Definition at line 459 of file mavHotpoint.h.
void dji2mav::MavHotpoint::setMissionRequestHook | ( | void(*)(uint16_t) | func | ) | [inline] |
Definition at line 444 of file mavHotpoint.h.
void dji2mav::MavHotpoint::setMissionRequestListHook | ( | void(*)() | func | ) | [inline] |
Definition at line 439 of file mavHotpoint.h.
void dji2mav::MavHotpoint::setMissionSetCurrentHook | ( | void(*)(uint16_t) | func | ) | [inline] |
Definition at line 469 of file mavHotpoint.h.
void dji2mav::MavHotpoint::setTargetHook | ( | void(*)(const float[], uint16_t, uint16_t) | func | ) | [inline] |
Definition at line 474 of file mavHotpoint.h.
HotpointData dji2mav::MavHotpoint::m_hp [private] |
Definition at line 481 of file mavHotpoint.h.
void(* dji2mav::MavHotpoint::m_missionAckHook)() [private] |
Definition at line 495 of file mavHotpoint.h.
void(* dji2mav::MavHotpoint::m_missionClearAllHook)() [private] |
Definition at line 498 of file mavHotpoint.h.
void(* dji2mav::MavHotpoint::m_missionCountHook)(uint16_t) [private] |
Definition at line 496 of file mavHotpoint.h.
void(* dji2mav::MavHotpoint::m_missionItemHook)(uint16_t) [private] |
Definition at line 497 of file mavHotpoint.h.
void(* dji2mav::MavHotpoint::m_missionRequestHook)(uint16_t) [private] |
Definition at line 494 of file mavHotpoint.h.
void(* dji2mav::MavHotpoint::m_missionRequestListHook)() [private] |
Definition at line 493 of file mavHotpoint.h.
void(* dji2mav::MavHotpoint::m_missionSetCurrentHook)(uint16_t) [private] |
Definition at line 499 of file mavHotpoint.h.
enum { ... } dji2mav::MavHotpoint::m_status [private] |
void(* dji2mav::MavHotpoint::m_targetHook)(const float[], uint16_t, uint16_t) [private] |
Definition at line 500 of file mavHotpoint.h.