PX4 Firmware
PX4 Autopilot Software http://px4.io
frsky_data.h File Reference
#include <stdbool.h>
Include dependency graph for frsky_data.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  adc_linkquality
 

Functions

bool frsky_init (void)
 Initializes the uORB subscriptions. More...
 
void frsky_deinit (void)
 
void frsky_update_topics (void)
 
void frsky_send_frame1 (int uart)
 Sends frame 1 (every 200ms): acceleration values, barometer altitude, temperature, battery voltage & current. More...
 
void frsky_send_frame2 (int uart)
 Sends frame 2 (every 1000ms): GPS course, latitude, longitude, ground speed, GPS altitude, remaining battery level. More...
 
void frsky_send_frame3 (int uart)
 Sends frame 3 (every 5000ms): GPS date & time. More...
 
bool frsky_parse_host (uint8_t *sbuf, int nbytes, struct adc_linkquality *v)
 

Detailed Description

Author
Stefan Rado px4@s.nosp@m.rado.nosp@m.nia.n.nosp@m.et

FrSky telemetry implementation.

Definition in file frsky_data.h.

Function Documentation

◆ frsky_deinit()

void frsky_deinit ( void  )

Definition at line 92 of file frsky_data.cpp.

References subscription_data.

Referenced by frsky_telemetry_thread_main().

Here is the caller graph for this function:

◆ frsky_init()

bool frsky_init ( void  )

Initializes the uORB subscriptions.

Definition at line 81 of file frsky_data.cpp.

Referenced by frsky_telemetry_thread_main().

Here is the caller graph for this function:

◆ frsky_parse_host()

bool frsky_parse_host ( uint8_t *  sbuf,
int  nbytes,
struct adc_linkquality v 
)

Definition at line 277 of file frsky_data.cpp.

References adc_linkquality::ad1, adc_linkquality::ad2, DATA, data, adc_linkquality::linkq, and state.

Referenced by frsky_telemetry_thread_main().

Here is the caller graph for this function:

◆ frsky_send_frame1()

void frsky_send_frame1 ( int  uart)

Sends frame 1 (every 200ms): acceleration values, barometer altitude, temperature, battery voltage & current.

Definition at line 161 of file frsky_data.cpp.

References sensor_combined_s::accelerometer_m_s2, vehicle_air_data_s::baro_alt_meter, frsky_subscription_data_s::battery_status_sub, battery_status_s::current_a, vehicle_gps_position_s::fix_type, frac, FRSKY_ID_ACCEL_X, FRSKY_ID_ACCEL_Y, FRSKY_ID_ACCEL_Z, FRSKY_ID_BARO_ALT_AP, FRSKY_ID_BARO_ALT_BP, FRSKY_ID_CURRENT, FRSKY_ID_TEMP1, FRSKY_ID_TEMP2, FRSKY_ID_VFAS, frsky_send_data(), frsky_send_startstop(), uORB::SubscriptionData< T >::get(), get_telemetry_flight_mode(), gps, vehicle_status_s::nav_state, vehicle_gps_position_s::satellites_used, frsky_subscription_data_s::sensor_combined_sub, frsky_subscription_data_s::vehicle_air_data_sub, frsky_subscription_data_s::vehicle_gps_position_sub, frsky_subscription_data_s::vehicle_status_sub, and battery_status_s::voltage_v.

Referenced by frsky_telemetry_thread_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ frsky_send_frame2()

◆ frsky_send_frame3()

void frsky_send_frame3 ( int  uart)

Sends frame 3 (every 5000ms): GPS date & time.

Definition at line 261 of file frsky_data.cpp.

References FRSKY_ID_GPS_DAY_MONTH, FRSKY_ID_GPS_HOUR_MIN, FRSKY_ID_GPS_SEC, FRSKY_ID_GPS_YEAR, frsky_send_data(), frsky_send_startstop(), uORB::SubscriptionData< T >::get(), vehicle_gps_position_s::time_utc_usec, and frsky_subscription_data_s::vehicle_gps_position_sub.

Referenced by frsky_telemetry_thread_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ frsky_update_topics()

void frsky_update_topics ( void  )

Definition at line 147 of file frsky_data.cpp.

References frsky_subscription_data_s::battery_status_sub, frsky_subscription_data_s::sensor_combined_sub, uORB::SubscriptionData< T >::update(), frsky_subscription_data_s::vehicle_air_data_sub, frsky_subscription_data_s::vehicle_global_position_sub, frsky_subscription_data_s::vehicle_gps_position_sub, and frsky_subscription_data_s::vehicle_status_sub.

Referenced by frsky_telemetry_thread_main().

Here is the call graph for this function:
Here is the caller graph for this function: