45 #include <sys/types.h> 49 #define SMARTPORT_POLL_1 0x1B 50 #define SMARTPORT_POLL_2 0x34 51 #define SMARTPORT_POLL_3 0x95 52 #define SMARTPORT_POLL_4 0x16 53 #define SMARTPORT_POLL_5 0xB7 54 #define SMARTPORT_POLL_6 0x00 55 #define SMARTPORT_POLL_7 0x83 56 #define SMARTPORT_POLL_8 0xBA 57 #define SMARTPORT_SENSOR_ID_SP2UR 0xC6 // Sensor ID 6 60 #define SMARTPORT_ID_RSSI 0xf101 61 #define SMARTPORT_ID_RXA1 0xf102 // supplied by RX 62 #define SMARTPORT_ID_RXA2 0xf103 // supplied by RX 63 #define SMARTPORT_ID_BATV 0xf104 64 #define SMARTPORT_ID_SWR 0xf105 // Standing Wave Ratio 65 #define SMARTPORT_ID_T1 0x0400 66 #define SMARTPORT_ID_T2 0x0410 67 #define SMARTPORT_ID_RPM 0x0500 68 #define SMARTPORT_ID_FUEL 0x0600 69 #define SMARTPORT_ID_ALT 0x0100 70 #define SMARTPORT_ID_VARIO 0x0110 //VSPEED 71 #define SMARTPORT_ID_ACCX 0x0700 72 #define SMARTPORT_ID_ACCY 0x0710 73 #define SMARTPORT_ID_ACCZ 0x0720 74 #define SMARTPORT_ID_CURR 0x0200 75 #define SMARTPORT_ID_VFAS 0x0210 //Volt per Cell 76 #define SMARTPORT_ID_CELLS 0x0300 77 #define SMARTPORT_ID_GPS_LON_LAT 0x0800 78 #define SMARTPORT_ID_GPS_ALT 0x0820 79 #define SMARTPORT_ID_GPS_SPD 0x0830 80 #define SMARTPORT_ID_GPS_CRS 0x0840 81 #define SMARTPORT_ID_GPS_TIME 0x0850 82 #define SMARTPORT_ID_DIY_FIRST 0x5000 83 #define SMARTPORT_ID_DIY_LAST 0x50ff //We have 256 possible ID's for custom values :) 84 #define SMARTPORT_ID_DIY_NAVSTATE 0x5000 85 #define SMARTPORT_ID_DIY_GPSFIX 0x5001 void sPort_send_GPS_LAT(int uart)
void sPort_send_NAV_STATE(int uart)
void sPort_send_GPS_SPD(int uart)
void sPort_send_data(int uart, uint16_t id, uint32_t data)
Sends one data id/value pair.
void sPort_send_SPD(int uart)
void sPort_send_GPS_ALT(int uart)
void sPort_send_GPS_CRS(int uart)
void sPort_send_GPS_info(int uart)
void sPort_update_topics(void)
void sPort_send_CUR(int uart)
void sPort_send_GPS_LON(int uart)
void sPort_send_GPS_FIX(int uart)
void sPort_send_ALT(int uart)
void sPort_send_FUEL(int uart)
void sPort_send_BATV(int uart)
bool sPort_init(void)
Initializes the uORB subscriptions.
void sPort_send_flight_mode(int uart)
void sPort_send_VSPD(int uart, float speed)
void sPort_send_GPS_TIME(int uart)