Skip to main content

CommInterface

Trait CommInterface 

Source
pub trait CommInterface<B: BoardIo> {
Show 20 methods // Required methods fn send_heartbeat( &mut self, board: &mut B, system_id: u8, msg: HeartbeatMsg, ) -> bool; fn send_named_value( &mut self, board: &mut B, system_id: u8, msg: ParamValueMsg, ); fn send_status( &mut self, board: &mut B, system_id: u8, msg: RosflightStatusMsg, ); fn send_timesync( &mut self, board: &mut B, system_id: u8, msg: TimesyncMsg, ) -> bool; fn send_version( &mut self, board: &mut B, system_id: u8, msg: RosflightVersionMsg, ); fn send_output_raw( &mut self, baord: &mut B, system_id: u8, msg: RosflightOutputRawMsg, ); fn send_attitude( &mut self, board: &mut B, system_id: u8, msg: AttitudeQuaternionMsg, ); fn send_baro(&mut self, board: &mut B, system_id: u8, msg: SmallBaroMsg); fn send_diff_pressure( &mut self, board: &mut B, system_id: u8, msg: DiffPressureMsg, ); fn send_imu(&mut self, board: &mut B, system_id: u8, msg: SmallImuMsg); fn send_mag(&mut self, board: &mut B, system_id: u8, msg: SmallMagMsg); fn send_rc_raw(&mut self, board: &mut B, system_id: u8, msg: RcChannelsMsg); fn send_range(&mut self, board: &mut B, system_id: u8, msg: SmallRangeMsg); fn send_gnss(&mut self, board: &mut B, system_id: u8, msg: RosflightGnssMsg); fn send_cmd_ack( &mut self, board: &mut B, system_id: u8, msg: RosflightCmdAckMsg, ); fn send_rc_channels( &mut self, board: &mut B, system_id: u8, msg: RcChannelsMsg, ); fn send_battery_status( &mut self, board: &mut B, system_id: u8, msg: BatteryStatusMsg, ); fn send_statustext( &mut self, board: &mut B, system_id: u8, msg: StatustextMsg, ); fn send_hard_error( &mut self, board: &mut B, system_id: u8, msg: RosflightHardErrorMsg, ); fn handle_incoming_messages(&mut self, board: &mut B, msgs: &mut Messages);
}

Required Methods§

Source

fn send_heartbeat( &mut self, board: &mut B, system_id: u8, msg: HeartbeatMsg, ) -> bool

Source

fn send_named_value(&mut self, board: &mut B, system_id: u8, msg: ParamValueMsg)

Source

fn send_status(&mut self, board: &mut B, system_id: u8, msg: RosflightStatusMsg)

Source

fn send_timesync( &mut self, board: &mut B, system_id: u8, msg: TimesyncMsg, ) -> bool

Source

fn send_version( &mut self, board: &mut B, system_id: u8, msg: RosflightVersionMsg, )

Source

fn send_output_raw( &mut self, baord: &mut B, system_id: u8, msg: RosflightOutputRawMsg, )

Source

fn send_attitude( &mut self, board: &mut B, system_id: u8, msg: AttitudeQuaternionMsg, )

Source

fn send_baro(&mut self, board: &mut B, system_id: u8, msg: SmallBaroMsg)

Source

fn send_diff_pressure( &mut self, board: &mut B, system_id: u8, msg: DiffPressureMsg, )

Source

fn send_imu(&mut self, board: &mut B, system_id: u8, msg: SmallImuMsg)

Source

fn send_mag(&mut self, board: &mut B, system_id: u8, msg: SmallMagMsg)

Source

fn send_rc_raw(&mut self, board: &mut B, system_id: u8, msg: RcChannelsMsg)

Source

fn send_range(&mut self, board: &mut B, system_id: u8, msg: SmallRangeMsg)

Source

fn send_gnss(&mut self, board: &mut B, system_id: u8, msg: RosflightGnssMsg)

Source

fn send_cmd_ack( &mut self, board: &mut B, system_id: u8, msg: RosflightCmdAckMsg, )

Source

fn send_rc_channels(&mut self, board: &mut B, system_id: u8, msg: RcChannelsMsg)

Source

fn send_battery_status( &mut self, board: &mut B, system_id: u8, msg: BatteryStatusMsg, )

Source

fn send_statustext(&mut self, board: &mut B, system_id: u8, msg: StatustextMsg)

Source

fn send_hard_error( &mut self, board: &mut B, system_id: u8, msg: RosflightHardErrorMsg, )

Source

fn handle_incoming_messages(&mut self, board: &mut B, msgs: &mut Messages)

Implementors§