NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
hott.h File Reference
#include "../config/hott.h"
Include dependency graph for hott.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  HOTT_TEXTMODE_MSG
 
struct  HOTT_GAM_MSG_s
 
struct  HOTT_VARIO_MSG_s
 
struct  HOTT_EAM_MSG_s
 
struct  HOTT_GPS_MSG_s
 
struct  HOTT_AIRESC_MSG_s
 
struct  hott
 

Macros

#define HOTTV4_RXTX   4
 
#define HOTTV4_TEXT_MODE_REQUEST_ID   0x7f
 
#define HOTTV4_BINARY_MODE_REQUEST_ID   0x80
 
#define HOTTV4_BUTTON_DEC   0xEB
 
#define HOTTV4_BUTTON_INC   0xED
 
#define HOTTV4_BUTTON_SET   0xE9
 
#define HOTTV4_BUTTON_NIL   0x0F
 
#define HOTTV4_BUTTON_NEXT   0xEE
 
#define HOTTV4_BUTTON_PREV   0xE7
 
#define HOTT_EAM_OFFSET_HEIGHT   500
 
#define HOTT_EAM_OFFSET_M2S   72
 
#define HOTT_EAM_OFFSET_M3S   120
 
#define HOTT_EAM_OFFSET_TEMPERATURE   20
 
#define HOTT_GPS_ALTITUDE_OFFSET   500
 
#define HOTT_TEXT_MODE_REQUEST_ID   0x7f
 
#define HOTT_BINARY_MODE_REQUEST_ID   0x80
 
#define HOTT_TELEMETRY_NO_SENSOR_ID   0x80
 
#define HOTT_TELEMETRY_VARIO_SENSOR_ID   0x89
 
#define HOTT_TELEMETRY_GPS_SENSOR_ID   0x8a
 
#define HOTT_TELEMETRY_AIRESC_SENSOR_ID   0x8c
 
#define HOTT_TELEMETRY_GAM_SENSOR_ID   0x8d
 
#define HOTT_TELEMETRY_EAM_SENSOR_ID   0x8e
 
#define HOTT_EAM_SENSOR_TEXT_ID   0xE0
 
#define HOTT_GPS_SENSOR_TEXT_ID   0xA0
 
#define HOTT_TEXTMODE_MSG_TEXT_LEN   168
 
#define HOTT_VARIO_MSG_TEXT_LEN   21
 

Typedefs

typedef struct HOTT_GAM_MSG_s HOTT_GAM_MSG_t
 
typedef struct HOTT_VARIO_MSG_s HOTT_VARIO_MSG_t
 
typedef struct HOTT_EAM_MSG_s HOTT_EAM_MSG_t
 
typedef struct HOTT_GPS_MSG_s HOTT_GPS_MSG_t
 
typedef struct HOTT_AIRESC_MSG_s HOTT_AIRESC_MSG_t
 

Enumerations

enum  hottEamAlarm1Flag_e {
  HOTT_EAM_ALARM1_FLAG_NONE = 0, HOTT_EAM_ALARM1_FLAG_MAH = (1 << 0), HOTT_EAM_ALARM1_FLAG_BATTERY_1 = (1 << 1), HOTT_EAM_ALARM1_FLAG_BATTERY_2 = (1 << 2),
  HOTT_EAM_ALARM1_FLAG_TEMPERATURE_1 = (1 << 3), HOTT_EAM_ALARM1_FLAG_TEMPERATURE_2 = (1 << 4), HOTT_EAM_ALARM1_FLAG_ALTITUDE = (1 << 5), HOTT_EAM_ALARM1_FLAG_CURRENT = (1 << 6),
  HOTT_EAM_ALARM1_FLAG_MAIN_VOLTAGE = (1 << 7)
}
 
enum  hottEamAlarm2Flag_e {
  HOTT_EAM_ALARM2_FLAG_NONE = 0, HOTT_EAM_ALARM2_FLAG_MS = (1 << 0), HOTT_EAM_ALARM2_FLAG_M3S = (1 << 1), HOTT_EAM_ALARM2_FLAG_ALTITUDE_DUPLICATE = (1 << 2),
  HOTT_EAM_ALARM2_FLAG_MS_DUPLICATE = (1 << 3), HOTT_EAM_ALARM2_FLAG_M3S_DUPLICATE = (1 << 4), HOTT_EAM_ALARM2_FLAG_UNKNOWN_1 = (1 << 5), HOTT_EAM_ALARM2_FLAG_UNKNOWN_2 = (1 << 6),
  HOTT_EAM_ALARM2_FLAG_ON_SIGN_OR_TEXT_ACTIVE = (1 << 7)
}
 

Functions

void hott_init (struct hott *self, struct system_calls *system, struct battery *bat)
 
void hott_process_data (struct hott *self)
 
void checkHoTTTelemetryState (void)
 
void configureHoTTTelemetryPort (void)
 
void freeHoTTTelemetryPort (void)
 
uint32_t getHoTTTelemetryProviderBaudRate (void)
 

Macro Definition Documentation

#define HOTT_BINARY_MODE_REQUEST_ID   0x80
#define HOTT_EAM_OFFSET_HEIGHT   500
#define HOTT_EAM_OFFSET_M2S   72
#define HOTT_EAM_OFFSET_M3S   120
#define HOTT_EAM_OFFSET_TEMPERATURE   20
#define HOTT_EAM_SENSOR_TEXT_ID   0xE0
#define HOTT_GPS_ALTITUDE_OFFSET   500
#define HOTT_GPS_SENSOR_TEXT_ID   0xA0
#define HOTT_TELEMETRY_AIRESC_SENSOR_ID   0x8c
#define HOTT_TELEMETRY_EAM_SENSOR_ID   0x8e
#define HOTT_TELEMETRY_GAM_SENSOR_ID   0x8d
#define HOTT_TELEMETRY_GPS_SENSOR_ID   0x8a
#define HOTT_TELEMETRY_NO_SENSOR_ID   0x80
#define HOTT_TELEMETRY_VARIO_SENSOR_ID   0x89
#define HOTT_TEXT_MODE_REQUEST_ID   0x7f
#define HOTT_TEXTMODE_MSG_TEXT_LEN   168
#define HOTT_VARIO_MSG_TEXT_LEN   21
#define HOTTV4_BINARY_MODE_REQUEST_ID   0x80
#define HOTTV4_BUTTON_DEC   0xEB
#define HOTTV4_BUTTON_INC   0xED
#define HOTTV4_BUTTON_NEXT   0xEE
#define HOTTV4_BUTTON_NIL   0x0F
#define HOTTV4_BUTTON_PREV   0xE7
#define HOTTV4_BUTTON_SET   0xE9
#define HOTTV4_RXTX   4
#define HOTTV4_TEXT_MODE_REQUEST_ID   0x7f

Typedef Documentation

Enumeration Type Documentation

Enumerator
HOTT_EAM_ALARM1_FLAG_NONE 
HOTT_EAM_ALARM1_FLAG_MAH 
HOTT_EAM_ALARM1_FLAG_BATTERY_1 
HOTT_EAM_ALARM1_FLAG_BATTERY_2 
HOTT_EAM_ALARM1_FLAG_TEMPERATURE_1 
HOTT_EAM_ALARM1_FLAG_TEMPERATURE_2 
HOTT_EAM_ALARM1_FLAG_ALTITUDE 
HOTT_EAM_ALARM1_FLAG_CURRENT 
HOTT_EAM_ALARM1_FLAG_MAIN_VOLTAGE 
Enumerator
HOTT_EAM_ALARM2_FLAG_NONE 
HOTT_EAM_ALARM2_FLAG_MS 
HOTT_EAM_ALARM2_FLAG_M3S 
HOTT_EAM_ALARM2_FLAG_ALTITUDE_DUPLICATE 
HOTT_EAM_ALARM2_FLAG_MS_DUPLICATE 
HOTT_EAM_ALARM2_FLAG_M3S_DUPLICATE 
HOTT_EAM_ALARM2_FLAG_UNKNOWN_1 
HOTT_EAM_ALARM2_FLAG_UNKNOWN_2 
HOTT_EAM_ALARM2_FLAG_ON_SIGN_OR_TEXT_ACTIVE 

Function Documentation

void checkHoTTTelemetryState ( void  )
void configureHoTTTelemetryPort ( void  )
void freeHoTTTelemetryPort ( void  )
uint32_t getHoTTTelemetryProviderBaudRate ( void  )
void hott_init ( struct hott self,
struct system_calls system,
struct battery bat 
)
void hott_process_data ( struct hott self)