#include <comm_manager.h>
|
enum | OffboardControlMode { MODE_PASS_THROUGH,
MODE_ROLLRATE_PITCHRATE_YAWRATE_THROTTLE,
MODE_ROLL_PITCH_YAWRATE_THROTTLE,
MODE_ROLL_PITCH_YAWRATE_ALTITUDE
} |
|
enum | StreamId {
STREAM_ID_HEARTBEAT,
STREAM_ID_STATUS,
STREAM_ID_ATTITUDE,
STREAM_ID_IMU,
STREAM_ID_DIFF_PRESSURE,
STREAM_ID_BARO,
STREAM_ID_SONAR,
STREAM_ID_MAG,
STREAM_ID_BATTERY_STATUS,
STREAM_ID_SERVO_OUTPUT_RAW,
STREAM_ID_GNSS,
STREAM_ID_GNSS_FULL,
STREAM_ID_RC_RAW,
STREAM_ID_LOW_PRIORITY,
STREAM_COUNT
} |
|
Definition at line 47 of file comm_manager.h.
◆ OffboardControlMode
Enumerator |
---|
MODE_PASS_THROUGH | |
MODE_ROLLRATE_PITCHRATE_YAWRATE_THROTTLE | |
MODE_ROLL_PITCH_YAWRATE_THROTTLE | |
MODE_ROLL_PITCH_YAWRATE_ALTITUDE | |
Definition at line 72 of file comm_manager.h.
◆ StreamId
Enumerator |
---|
STREAM_ID_HEARTBEAT | |
STREAM_ID_STATUS | |
STREAM_ID_ATTITUDE | |
STREAM_ID_IMU | |
STREAM_ID_DIFF_PRESSURE | |
STREAM_ID_BARO | |
STREAM_ID_SONAR | |
STREAM_ID_MAG | |
STREAM_ID_BATTERY_STATUS | |
STREAM_ID_SERVO_OUTPUT_RAW | |
STREAM_ID_GNSS | |
STREAM_ID_GNSS_FULL | |
STREAM_ID_RC_RAW | |
STREAM_ID_LOW_PRIORITY | |
STREAM_COUNT | |
Definition at line 50 of file comm_manager.h.
◆ CommManager()
◆ aux_command_callback()
◆ command_callback()
◆ external_attitude_callback()
◆ heartbeat_callback()
void rosflight_firmware::CommManager::heartbeat_callback |
( |
void |
| ) |
|
|
overrideprivatevirtual |
◆ init()
void rosflight_firmware::CommManager::init |
( |
| ) |
|
◆ log()
◆ offboard_control_callback()
◆ param_change_callback()
void rosflight_firmware::CommManager::param_change_callback |
( |
uint16_t |
param_id | ) |
|
|
overridevirtual |
◆ param_request_list_callback()
void rosflight_firmware::CommManager::param_request_list_callback |
( |
uint8_t |
target_system | ) |
|
|
overrideprivatevirtual |
◆ param_request_read_callback()
void rosflight_firmware::CommManager::param_request_read_callback |
( |
uint8_t |
target_system, |
|
|
const char *const |
param_name, |
|
|
int16_t |
param_index |
|
) |
| |
|
overrideprivatevirtual |
◆ param_set_float_callback()
void rosflight_firmware::CommManager::param_set_float_callback |
( |
uint8_t |
target_system, |
|
|
const char *const |
param_name, |
|
|
float |
param_value |
|
) |
| |
|
overrideprivatevirtual |
◆ param_set_int_callback()
void rosflight_firmware::CommManager::param_set_int_callback |
( |
uint8_t |
target_system, |
|
|
const char *const |
param_name, |
|
|
int32_t |
param_value |
|
) |
| |
|
overrideprivatevirtual |
◆ receive()
void rosflight_firmware::CommManager::receive |
( |
void |
| ) |
|
◆ send_attitude()
void rosflight_firmware::CommManager::send_attitude |
( |
void |
| ) |
|
|
private |
◆ send_backup_data()
void rosflight_firmware::CommManager::send_backup_data |
( |
const StateManager::BackupData & |
backup_data | ) |
|
◆ send_baro()
void rosflight_firmware::CommManager::send_baro |
( |
void |
| ) |
|
|
private |
◆ send_battery_status()
void rosflight_firmware::CommManager::send_battery_status |
( |
void |
| ) |
|
|
private |
◆ send_diff_pressure()
void rosflight_firmware::CommManager::send_diff_pressure |
( |
void |
| ) |
|
|
private |
◆ send_gnss()
void rosflight_firmware::CommManager::send_gnss |
( |
void |
| ) |
|
|
private |
◆ send_gnss_full()
void rosflight_firmware::CommManager::send_gnss_full |
( |
void |
| ) |
|
|
private |
◆ send_heartbeat()
void rosflight_firmware::CommManager::send_heartbeat |
( |
void |
| ) |
|
|
private |
◆ send_imu()
void rosflight_firmware::CommManager::send_imu |
( |
void |
| ) |
|
|
private |
◆ send_low_priority()
void rosflight_firmware::CommManager::send_low_priority |
( |
void |
| ) |
|
|
private |
◆ send_mag()
void rosflight_firmware::CommManager::send_mag |
( |
void |
| ) |
|
|
private |
◆ send_named_value_float()
void rosflight_firmware::CommManager::send_named_value_float |
( |
const char *const |
name, |
|
|
float |
value |
|
) |
| |
◆ send_named_value_int()
void rosflight_firmware::CommManager::send_named_value_int |
( |
const char *const |
name, |
|
|
int32_t |
value |
|
) |
| |
|
private |
◆ send_next_param()
void rosflight_firmware::CommManager::send_next_param |
( |
void |
| ) |
|
|
private |
◆ send_output_raw()
void rosflight_firmware::CommManager::send_output_raw |
( |
void |
| ) |
|
|
private |
◆ send_param_value()
void rosflight_firmware::CommManager::send_param_value |
( |
uint16_t |
param_id | ) |
|
◆ send_parameter_list()
void rosflight_firmware::CommManager::send_parameter_list |
( |
| ) |
|
◆ send_rc_raw()
void rosflight_firmware::CommManager::send_rc_raw |
( |
void |
| ) |
|
|
private |
◆ send_sonar()
void rosflight_firmware::CommManager::send_sonar |
( |
void |
| ) |
|
|
private |
◆ send_status()
void rosflight_firmware::CommManager::send_status |
( |
void |
| ) |
|
|
private |
◆ set_streaming_rate()
void rosflight_firmware::CommManager::set_streaming_rate |
( |
uint8_t |
stream_id, |
|
|
int16_t |
param_id |
|
) |
| |
◆ stream()
void rosflight_firmware::CommManager::stream |
( |
| ) |
|
◆ timesync_callback()
void rosflight_firmware::CommManager::timesync_callback |
( |
int64_t |
tc1, |
|
|
int64_t |
ts1 |
|
) |
| |
|
overrideprivatevirtual |
◆ update_status()
void rosflight_firmware::CommManager::update_status |
( |
| ) |
|
◆ update_system_id()
void rosflight_firmware::CommManager::update_system_id |
( |
uint16_t |
param_id | ) |
|
|
private |
◆ backup_data_buffer_
StateManager::BackupData rosflight_firmware::CommManager::backup_data_buffer_ |
|
private |
◆ comm_link_
◆ connected_
bool rosflight_firmware::CommManager::connected_ = false |
|
private |
◆ have_backup_data_
bool rosflight_firmware::CommManager::have_backup_data_ = false |
|
private |
◆ initialized_
bool rosflight_firmware::CommManager::initialized_ = false |
|
private |
◆ last_sent_gnss_full_tow_
uint32_t rosflight_firmware::CommManager::last_sent_gnss_full_tow_ = 0 |
|
private |
◆ last_sent_gnss_tow_
uint32_t rosflight_firmware::CommManager::last_sent_gnss_tow_ = 0 |
|
private |
◆ log_buffer_
◆ LOG_MSG_SIZE
constexpr int rosflight_firmware::CommManager::LOG_MSG_SIZE = 50 |
|
staticprivate |
◆ offboard_control_time_
uint64_t rosflight_firmware::CommManager::offboard_control_time_ |
|
private |
◆ RF_
ROSflight& rosflight_firmware::CommManager::RF_ |
|
private |
◆ send_params_index_
uint8_t rosflight_firmware::CommManager::send_params_index_ |
|
private |
◆ streams_
◆ sysid_
uint8_t rosflight_firmware::CommManager::sysid_ |
|
private |
The documentation for this class was generated from the following files: