32 #ifndef ROSFLIGHT_FIRMWARE_COMM_MANAGER_H 33 #define ROSFLIGHT_FIRMWARE_COMM_MANAGER_H 121 Stream(uint32_t period_us, std::function<
void(
void)> send_function);
123 void stream(uint64_t now_us);
124 void set_rate(uint32_t rate_hz);
135 void param_set_int_callback(uint8_t target_system,
const char*
const param_name, int32_t param_value)
override;
198 #endif // ROSFLIGHT_FIRMWARE_COMM_MANAGER_H
void send_parameter_list()
void send_output_raw(void)
void set_streaming_rate(uint8_t stream_id, int16_t param_id)
const LogMessage & oldest() const
void param_set_float_callback(uint8_t target_system, const char *const param_name, float param_value) override
void send_diff_pressure(void)
void log(CommLinkInterface::LogSeverity severity, const char *fmt,...)
LogMessageBuffer log_buffer_
void update_system_id(uint16_t param_id)
void timesync_callback(int64_t tc1, int64_t ts1) override
static constexpr int LOG_BUF_SIZE
CommManager(ROSflight &rf, CommLinkInterface &comm_link)
void heartbeat_callback() override
void send_named_value_int(const char *const name, int32_t value)
StateManager::BackupData backup_data_buffer_
void send_param_value(uint16_t param_id)
void send_gnss_full(void)
static constexpr int LOG_MSG_SIZE
void send_battery_status(void)
uint32_t last_sent_gnss_tow_
CommLinkInterface & comm_link_
void send_heartbeat(void)
void param_change_callback(uint16_t param_id) override
void aux_command_callback(const CommLinkInterface::AuxCommand &command) override
Stream streams_[STREAM_COUNT]
void send_backup_data(const StateManager::BackupData &backup_data)
void param_set_int_callback(uint8_t target_system, const char *const param_name, int32_t param_value) override
void param_request_list_callback(uint8_t target_system) override
LogMessage buffer_[LOG_BUF_SIZE]
void offboard_control_callback(const CommLinkInterface::OffboardControl &control) override
void external_attitude_callback(const turbomath::Quaternion &q) override
CommLinkInterface::LogSeverity severity
void command_callback(CommLinkInterface::Command command) override
std::function< void(void)> send_function_
void param_request_read_callback(uint8_t target_system, const char *const param_name, int16_t param_index) override
uint64_t offboard_control_time_
void send_named_value_float(const char *const name, float value)
uint8_t send_params_index_
void add_message(CommLinkInterface::LogSeverity severity, char msg[LOG_MSG_SIZE])
void send_low_priority(void)
void send_next_param(void)
uint32_t last_sent_gnss_full_tow_