#include <rosflight_io.h>
Public Member Functions | |
virtual void | handle_mavlink_message (const mavlink_message_t &msg) |
The handler function for mavlink messages to be implemented by derived classes. More... | |
virtual void | on_new_param_received (std::string name, double value) |
Called when a parameter is received from the autopilot for the first time. More... | |
virtual void | on_param_value_updated (std::string name, double value) |
Called when an updated value is received for a parameter. More... | |
virtual void | on_params_saved_change (bool unsaved_changes) |
Called when the status of whether there are unsaved parameters changes. More... | |
rosflightIO () | |
~rosflightIO () | |
Static Public Attributes | |
static constexpr float | HEARTBEAT_PERIOD = 1 |
static constexpr float | PARAMETER_PERIOD = 3 |
static constexpr float | VERSION_PERIOD = 10 |
Private Member Functions | |
void | auxCommandCallback (rosflight_msgs::AuxCommand::ConstPtr msg) |
bool | calibrateAirspeedSrvCallback (std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res) |
bool | calibrateBaroSrvCallback (std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res) |
bool | calibrateImuBiasSrvCallback (std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res) |
bool | calibrateRCTrimSrvCallback (std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res) |
void | check_error_code (uint8_t current, uint8_t previous, ROSFLIGHT_ERROR_CODE code, std::string name) |
void | commandCallback (rosflight_msgs::Command::ConstPtr msg) |
void | externalAttitudeCallback (geometry_msgs::Quaternion::ConstPtr msg) |
ros::Time | fcu_time_to_ros_time (std::chrono::nanoseconds fcu_time) |
std::string | get_major_minor_version (const std::string &version) |
void | handle_attitude_quaternion_msg (const mavlink_message_t &msg) |
void | handle_battery_status_msg (const mavlink_message_t &msg) |
void | handle_command_ack_msg (const mavlink_message_t &msg) |
void | handle_diff_pressure_msg (const mavlink_message_t &msg) |
void | handle_hard_error_msg (const mavlink_message_t &msg) |
void | handle_heartbeat_msg (const mavlink_message_t &msg) |
void | handle_named_command_struct_msg (const mavlink_message_t &msg) |
void | handle_named_value_float_msg (const mavlink_message_t &msg) |
void | handle_named_value_int_msg (const mavlink_message_t &msg) |
void | handle_rc_channels_raw_msg (const mavlink_message_t &msg) |
void | handle_rosflight_gnss_full_msg (const mavlink_message_t &msg) |
void | handle_rosflight_gnss_msg (const mavlink_message_t &msg) |
void | handle_rosflight_output_raw_msg (const mavlink_message_t &msg) |
void | handle_small_baro_msg (const mavlink_message_t &msg) |
void | handle_small_imu_msg (const mavlink_message_t &msg) |
void | handle_small_mag_msg (const mavlink_message_t &msg) |
void | handle_small_range_msg (const mavlink_message_t &msg) |
void | handle_status_msg (const mavlink_message_t &msg) |
void | handle_statustext_msg (const mavlink_message_t &msg) |
void | handle_version_msg (const mavlink_message_t &msg) |
void | heartbeatTimerCallback (const ros::TimerEvent &e) |
bool | paramGetSrvCallback (rosflight_msgs::ParamGet::Request &req, rosflight_msgs::ParamGet::Response &res) |
bool | paramLoadFromFileCallback (rosflight_msgs::ParamFile::Request &req, rosflight_msgs::ParamFile::Response &res) |
bool | paramSaveToFileCallback (rosflight_msgs::ParamFile::Request &req, rosflight_msgs::ParamFile::Response &res) |
bool | paramSetSrvCallback (rosflight_msgs::ParamSet::Request &req, rosflight_msgs::ParamSet::Response &res) |
void | paramTimerCallback (const ros::TimerEvent &e) |
bool | paramWriteSrvCallback (std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res) |
bool | rebootSrvCallback (std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res) |
bool | rebootToBootloaderSrvCallback (std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res) |
void | request_version () |
template<class T > | |
T | saturate (T value, T min, T max) |
void | send_heartbeat () |
void | versionTimerCallback (const ros::TimerEvent &e) |
Definition at line 91 of file rosflight_io.h.
rosflight_io::rosflightIO::rosflightIO | ( | ) |
Definition at line 57 of file rosflight_io.cpp.
rosflight_io::rosflightIO::~rosflightIO | ( | ) |
Definition at line 148 of file rosflight_io.cpp.
|
private |
Definition at line 951 of file rosflight_io.cpp.
|
private |
Definition at line 1077 of file rosflight_io.cpp.
|
private |
Definition at line 1086 of file rosflight_io.cpp.
|
private |
Definition at line 1009 of file rosflight_io.cpp.
|
private |
Definition at line 1019 of file rosflight_io.cpp.
|
private |
Definition at line 1066 of file rosflight_io.cpp.
|
private |
Definition at line 919 of file rosflight_io.cpp.
|
private |
Definition at line 965 of file rosflight_io.cpp.
|
private |
Definition at line 705 of file rosflight_io.cpp.
|
private |
Definition at line 712 of file rosflight_io.cpp.
|
private |
Definition at line 405 of file rosflight_io.cpp.
|
private |
Definition at line 778 of file rosflight_io.cpp.
|
private |
Definition at line 359 of file rosflight_io.cpp.
|
private |
Definition at line 519 of file rosflight_io.cpp.
|
private |
Definition at line 759 of file rosflight_io.cpp.
|
private |
Definition at line 254 of file rosflight_io.cpp.
|
virtual |
The handler function for mavlink messages to be implemented by derived classes.
msg | The mavlink message to handle |
Implements mavrosflight::MavlinkListenerInterface.
Definition at line 154 of file rosflight_io.cpp.
|
private |
Definition at line 589 of file rosflight_io.cpp.
|
private |
Definition at line 566 of file rosflight_io.cpp.
|
private |
Definition at line 543 of file rosflight_io.cpp.
|
private |
Definition at line 495 of file rosflight_io.cpp.
|
private |
Definition at line 880 of file rosflight_io.cpp.
|
private |
Definition at line 794 of file rosflight_io.cpp.
|
private |
Definition at line 476 of file rosflight_io.cpp.
|
private |
Definition at line 622 of file rosflight_io.cpp.
|
private |
Definition at line 442 of file rosflight_io.cpp.
|
private |
Definition at line 646 of file rosflight_io.cpp.
|
private |
Definition at line 667 of file rosflight_io.cpp.
|
private |
Definition at line 259 of file rosflight_io.cpp.
|
private |
Definition at line 374 of file rosflight_io.cpp.
|
private |
Definition at line 722 of file rosflight_io.cpp.
|
private |
Definition at line 1048 of file rosflight_io.cpp.
|
virtual |
Called when a parameter is received from the autopilot for the first time.
name | The name of the parameter |
value | The value of the parameter |
Implements mavrosflight::ParamListenerInterface.
Definition at line 228 of file rosflight_io.cpp.
|
virtual |
Called when an updated value is received for a parameter.
name | The name of the parameter |
value | The updated value of the parameter |
Implements mavrosflight::ParamListenerInterface.
Definition at line 233 of file rosflight_io.cpp.
|
virtual |
Called when the status of whether there are unsaved parameters changes.
unsaved_changes | True if there are parameters that have been set but not saved on the autopilot |
Implements mavrosflight::ParamListenerInterface.
Definition at line 238 of file rosflight_io.cpp.
|
private |
Definition at line 972 of file rosflight_io.cpp.
|
private |
Definition at line 1002 of file rosflight_io.cpp.
|
private |
Definition at line 995 of file rosflight_io.cpp.
|
private |
Definition at line 978 of file rosflight_io.cpp.
|
private |
Definition at line 1028 of file rosflight_io.cpp.
|
private |
Definition at line 984 of file rosflight_io.cpp.
|
private |
Definition at line 1095 of file rosflight_io.cpp.
|
private |
Definition at line 1104 of file rosflight_io.cpp.
|
private |
Definition at line 1053 of file rosflight_io.cpp.
|
inlineprivate |
Definition at line 161 of file rosflight_io.h.
|
private |
Definition at line 1059 of file rosflight_io.cpp.
|
private |
Definition at line 1043 of file rosflight_io.cpp.
|
private |
Definition at line 187 of file rosflight_io.h.
|
private |
Definition at line 215 of file rosflight_io.h.
|
private |
Definition at line 169 of file rosflight_io.h.
|
private |
Definition at line 179 of file rosflight_io.h.
|
private |
Definition at line 193 of file rosflight_io.h.
|
private |
Definition at line 207 of file rosflight_io.h.
|
private |
Definition at line 206 of file rosflight_io.h.
|
private |
Definition at line 205 of file rosflight_io.h.
|
private |
Definition at line 168 of file rosflight_io.h.
|
private |
Definition at line 177 of file rosflight_io.h.
|
private |
Definition at line 192 of file rosflight_io.h.
|
private |
Definition at line 188 of file rosflight_io.h.
|
private |
Definition at line 170 of file rosflight_io.h.
|
private |
Definition at line 218 of file rosflight_io.h.
|
private |
Definition at line 182 of file rosflight_io.h.
|
private |
Definition at line 181 of file rosflight_io.h.
|
static |
Definition at line 103 of file rosflight_io.h.
|
private |
Definition at line 213 of file rosflight_io.h.
|
private |
Definition at line 203 of file rosflight_io.h.
|
private |
Definition at line 204 of file rosflight_io.h.
|
private |
Definition at line 173 of file rosflight_io.h.
|
private |
Definition at line 174 of file rosflight_io.h.
|
private |
Definition at line 191 of file rosflight_io.h.
|
private |
Definition at line 223 of file rosflight_io.h.
|
private |
Definition at line 186 of file rosflight_io.h.
|
private |
Definition at line 220 of file rosflight_io.h.
|
private |
Definition at line 221 of file rosflight_io.h.
|
private |
Definition at line 196 of file rosflight_io.h.
|
private |
Definition at line 195 of file rosflight_io.h.
|
private |
Definition at line 194 of file rosflight_io.h.
|
private |
Definition at line 183 of file rosflight_io.h.
|
private |
Definition at line 166 of file rosflight_io.h.
|
private |
Definition at line 175 of file rosflight_io.h.
|
private |
Definition at line 198 of file rosflight_io.h.
|
private |
Definition at line 202 of file rosflight_io.h.
|
private |
Definition at line 201 of file rosflight_io.h.
|
private |
Definition at line 199 of file rosflight_io.h.
|
private |
Definition at line 211 of file rosflight_io.h.
|
private |
Definition at line 200 of file rosflight_io.h.
|
static |
Definition at line 105 of file rosflight_io.h.
|
private |
Definition at line 216 of file rosflight_io.h.
|
private |
Definition at line 176 of file rosflight_io.h.
|
private |
Definition at line 209 of file rosflight_io.h.
|
private |
Definition at line 208 of file rosflight_io.h.
|
private |
Definition at line 180 of file rosflight_io.h.
|
private |
Definition at line 189 of file rosflight_io.h.
|
private |
Definition at line 178 of file rosflight_io.h.
|
private |
Definition at line 224 of file rosflight_io.h.
|
private |
Definition at line 185 of file rosflight_io.h.
|
private |
Definition at line 225 of file rosflight_io.h.
|
private |
Definition at line 184 of file rosflight_io.h.
|
private |
Definition at line 172 of file rosflight_io.h.
|
static |
Definition at line 104 of file rosflight_io.h.
|
private |
Definition at line 190 of file rosflight_io.h.
|
private |
Definition at line 212 of file rosflight_io.h.