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

Go to the source code of this file.

Macros

#define FRSKY_ID_GPS_ALT_BP   0x01
 
#define FRSKY_ID_TEMP1   0x02
 
#define FRSKY_ID_RPM   0x03
 
#define FRSKY_ID_FUEL   0x04
 
#define FRSKY_ID_TEMP2   0x05
 
#define FRSKY_ID_VOLTS   0x06
 
#define FRSKY_ID_GPS_ALT_AP   0x09
 
#define FRSKY_ID_BARO_ALT_BP   0x10
 
#define FRSKY_ID_GPS_SPEED_BP   0x11
 
#define FRSKY_ID_GPS_LONG_BP   0x12
 
#define FRSKY_ID_GPS_LAT_BP   0x13
 
#define FRSKY_ID_GPS_COURS_BP   0x14
 
#define FRSKY_ID_GPS_DAY_MONTH   0x15
 
#define FRSKY_ID_GPS_YEAR   0x16
 
#define FRSKY_ID_GPS_HOUR_MIN   0x17
 
#define FRSKY_ID_GPS_SEC   0x18
 
#define FRSKY_ID_GPS_SPEED_AP   0x19
 
#define FRSKY_ID_GPS_LONG_AP   0x1A
 
#define FRSKY_ID_GPS_LAT_AP   0x1B
 
#define FRSKY_ID_GPS_COURS_AP   0x1C
 
#define FRSKY_ID_BARO_ALT_AP   0x21
 
#define FRSKY_ID_GPS_LONG_EW   0x22
 
#define FRSKY_ID_GPS_LAT_NS   0x23
 
#define FRSKY_ID_ACCEL_X   0x24
 
#define FRSKY_ID_ACCEL_Y   0x25
 
#define FRSKY_ID_ACCEL_Z   0x26
 
#define FRSKY_ID_CURRENT   0x28
 
#define FRSKY_ID_VARIO   0x30
 
#define FRSKY_ID_VFAS   0x39
 
#define FRSKY_ID_VOLTS_BP   0x3A
 
#define FRSKY_ID_VOLTS_AP   0x3B
 

Functions

uint16_t get_telemetry_flight_mode (int px4_flight_mode)
 Map the PX4 flight mode (vehicle_status_s::nav_state) to the telemetry flight mode. More...
 

Macro Definition Documentation

◆ FRSKY_ID_ACCEL_X

#define FRSKY_ID_ACCEL_X   0x24

Definition at line 68 of file common.h.

Referenced by frsky_send_frame1().

◆ FRSKY_ID_ACCEL_Y

#define FRSKY_ID_ACCEL_Y   0x25

Definition at line 69 of file common.h.

Referenced by frsky_send_frame1().

◆ FRSKY_ID_ACCEL_Z

#define FRSKY_ID_ACCEL_Z   0x26

Definition at line 70 of file common.h.

Referenced by frsky_send_frame1().

◆ FRSKY_ID_BARO_ALT_AP

#define FRSKY_ID_BARO_ALT_AP   0x21

Definition at line 65 of file common.h.

Referenced by frsky_send_frame1().

◆ FRSKY_ID_BARO_ALT_BP

#define FRSKY_ID_BARO_ALT_BP   0x10

Definition at line 52 of file common.h.

Referenced by frsky_send_frame1().

◆ FRSKY_ID_CURRENT

#define FRSKY_ID_CURRENT   0x28

Definition at line 71 of file common.h.

Referenced by frsky_send_frame1().

◆ FRSKY_ID_FUEL

#define FRSKY_ID_FUEL   0x04

Definition at line 48 of file common.h.

Referenced by frsky_send_frame2().

◆ FRSKY_ID_GPS_ALT_AP

#define FRSKY_ID_GPS_ALT_AP   0x09

Definition at line 51 of file common.h.

Referenced by frsky_send_frame2().

◆ FRSKY_ID_GPS_ALT_BP

#define FRSKY_ID_GPS_ALT_BP   0x01

Definition at line 45 of file common.h.

Referenced by frsky_send_frame2().

◆ FRSKY_ID_GPS_COURS_AP

#define FRSKY_ID_GPS_COURS_AP   0x1C

Definition at line 64 of file common.h.

Referenced by frsky_send_frame2().

◆ FRSKY_ID_GPS_COURS_BP

#define FRSKY_ID_GPS_COURS_BP   0x14

Definition at line 56 of file common.h.

Referenced by frsky_send_frame2().

◆ FRSKY_ID_GPS_DAY_MONTH

#define FRSKY_ID_GPS_DAY_MONTH   0x15

Definition at line 57 of file common.h.

Referenced by frsky_send_frame3().

◆ FRSKY_ID_GPS_HOUR_MIN

#define FRSKY_ID_GPS_HOUR_MIN   0x17

Definition at line 59 of file common.h.

Referenced by frsky_send_frame3().

◆ FRSKY_ID_GPS_LAT_AP

#define FRSKY_ID_GPS_LAT_AP   0x1B

Definition at line 63 of file common.h.

Referenced by frsky_send_frame2().

◆ FRSKY_ID_GPS_LAT_BP

#define FRSKY_ID_GPS_LAT_BP   0x13

Definition at line 55 of file common.h.

Referenced by frsky_send_frame2().

◆ FRSKY_ID_GPS_LAT_NS

#define FRSKY_ID_GPS_LAT_NS   0x23

Definition at line 67 of file common.h.

Referenced by frsky_send_frame2().

◆ FRSKY_ID_GPS_LONG_AP

#define FRSKY_ID_GPS_LONG_AP   0x1A

Definition at line 62 of file common.h.

Referenced by frsky_send_frame2().

◆ FRSKY_ID_GPS_LONG_BP

#define FRSKY_ID_GPS_LONG_BP   0x12

Definition at line 54 of file common.h.

Referenced by frsky_send_frame2().

◆ FRSKY_ID_GPS_LONG_EW

#define FRSKY_ID_GPS_LONG_EW   0x22

Definition at line 66 of file common.h.

Referenced by frsky_send_frame2().

◆ FRSKY_ID_GPS_SEC

#define FRSKY_ID_GPS_SEC   0x18

Definition at line 60 of file common.h.

Referenced by frsky_send_frame2(), and frsky_send_frame3().

◆ FRSKY_ID_GPS_SPEED_AP

#define FRSKY_ID_GPS_SPEED_AP   0x19

Definition at line 61 of file common.h.

Referenced by frsky_send_frame2().

◆ FRSKY_ID_GPS_SPEED_BP

#define FRSKY_ID_GPS_SPEED_BP   0x11

Definition at line 53 of file common.h.

Referenced by frsky_send_frame2().

◆ FRSKY_ID_GPS_YEAR

#define FRSKY_ID_GPS_YEAR   0x16

Definition at line 58 of file common.h.

Referenced by frsky_send_frame3().

◆ FRSKY_ID_RPM

#define FRSKY_ID_RPM   0x03

Definition at line 47 of file common.h.

◆ FRSKY_ID_TEMP1

#define FRSKY_ID_TEMP1   0x02

Definition at line 46 of file common.h.

Referenced by frsky_send_frame1(), and sPort_send_flight_mode().

◆ FRSKY_ID_TEMP2

#define FRSKY_ID_TEMP2   0x05

Definition at line 49 of file common.h.

Referenced by frsky_send_frame1(), and sPort_send_GPS_info().

◆ FRSKY_ID_VARIO

#define FRSKY_ID_VARIO   0x30

Definition at line 72 of file common.h.

◆ FRSKY_ID_VFAS

#define FRSKY_ID_VFAS   0x39

Definition at line 73 of file common.h.

Referenced by frsky_send_frame1().

◆ FRSKY_ID_VOLTS

#define FRSKY_ID_VOLTS   0x06

Definition at line 50 of file common.h.

◆ FRSKY_ID_VOLTS_AP

#define FRSKY_ID_VOLTS_AP   0x3B

Definition at line 75 of file common.h.

◆ FRSKY_ID_VOLTS_BP

#define FRSKY_ID_VOLTS_BP   0x3A

Definition at line 74 of file common.h.

Function Documentation

◆ get_telemetry_flight_mode()

uint16_t get_telemetry_flight_mode ( int  px4_flight_mode)

Map the PX4 flight mode (vehicle_status_s::nav_state) to the telemetry flight mode.

Definition at line 94 of file frsky_telemetry.cpp.

Referenced by frsky_send_frame1(), and sPort_send_flight_mode().

Here is the caller graph for this function: