Firmware
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
MavlinkStreamHighLatency2 Class Reference
Inheritance diagram for MavlinkStreamHighLatency2:
MavlinkStream ListNode< MavlinkStream *>

Public Member Functions

const char * get_name () const
 
uint16_t get_id ()
 
unsigned get_size ()
 Get maximal total messages size on update.
 
bool const_rate ()
 
- Public Member Functions inherited from MavlinkStream
 MavlinkStream (Mavlink *mavlink)
 
 MavlinkStream (const MavlinkStream &)=delete
 
MavlinkStreamoperator= (const MavlinkStream &)=delete
 
 MavlinkStream (MavlinkStream &&)=delete
 
MavlinkStreamoperator= (MavlinkStream &&)=delete
 
void set_interval (const int interval)
 Get the interval. More...
 
int get_interval ()
 Get the interval. More...
 
int update (const hrt_abstime &t)
 Update subscriptions and send message if necessary. More...
 
virtual unsigned get_size_avg ()
 Get the average message size. More...
 
bool first_message_sent () const
 
void reset_last_sent ()
 Reset the time of last sent to 0. More...
 
- Public Member Functions inherited from ListNode< MavlinkStream *>
void setSibling (MavlinkStream * sibling)
 
const MavlinkStreamgetSibling () const
 

Static Public Member Functions

static const char * get_name_static ()
 
static uint16_t get_id_static ()
 
static MavlinkStreamnew_instance (Mavlink *mavlink)
 

Protected Member Functions

 MavlinkStreamHighLatency2 (Mavlink *mavlink)
 
bool send (const hrt_abstime t)
 
void reset_analysers (const hrt_abstime t)
 
bool write_airspeed (mavlink_high_latency2_t *msg)
 
bool write_attitude_sp (mavlink_high_latency2_t *msg)
 
bool write_battery_status (mavlink_high_latency2_t *msg)
 
bool write_estimator_status (mavlink_high_latency2_t *msg)
 
bool write_fw_ctrl_status (mavlink_high_latency2_t *msg)
 
bool write_geofence_result (mavlink_high_latency2_t *msg)
 
bool write_global_position (mavlink_high_latency2_t *msg)
 
bool write_mission_result (mavlink_high_latency2_t *msg)
 
bool write_tecs_status (mavlink_high_latency2_t *msg)
 
bool write_vehicle_status (mavlink_high_latency2_t *msg)
 
bool write_vehicle_status_flags (mavlink_high_latency2_t *msg)
 
bool write_wind_estimate (mavlink_high_latency2_t *msg)
 
void update_data ()
 Function to collect/update data for the streams at a high rate independant of actual stream rate. More...
 
void update_airspeed ()
 
void update_tecs_status ()
 
void update_battery_status ()
 
void update_global_position ()
 
void update_gps ()
 
void update_vehicle_status ()
 
void update_wind_estimate ()
 
void set_default_values (mavlink_high_latency2_t &msg) const
 

Additional Inherited Members

- Protected Attributes inherited from MavlinkStream
Mavlink *const _mavlink
 
int _interval {1000000}
 if set to negative value = unlimited rate
 
- Protected Attributes inherited from ListNode< MavlinkStream *>
MavlinkStream_sibling
 

Member Function Documentation

§ const_rate()

bool MavlinkStreamHighLatency2::const_rate ( )
inlinevirtual
Returns
true if steam rate shouldn't be adjusted

Reimplemented from MavlinkStream.

§ update_data()

void MavlinkStreamHighLatency2::update_data ( )
protectedvirtual

Function to collect/update data for the streams at a high rate independant of actual stream rate.

This function is called at every iteration of the mavlink module.

Reimplemented from MavlinkStream.


The documentation for this class was generated from the following files: