28 #include "../config/hott.h"
32 #define HOTTV4_TEXT_MODE_REQUEST_ID 0x7f
33 #define HOTTV4_BINARY_MODE_REQUEST_ID 0x80
35 #define HOTTV4_BUTTON_DEC 0xEB
36 #define HOTTV4_BUTTON_INC 0xED
37 #define HOTTV4_BUTTON_SET 0xE9
38 #define HOTTV4_BUTTON_NIL 0x0F
39 #define HOTTV4_BUTTON_NEXT 0xEE
40 #define HOTTV4_BUTTON_PREV 0xE7
42 #define HOTT_EAM_OFFSET_HEIGHT 500
43 #define HOTT_EAM_OFFSET_M2S 72
44 #define HOTT_EAM_OFFSET_M3S 120
45 #define HOTT_EAM_OFFSET_TEMPERATURE 20
47 #define HOTT_GPS_ALTITUDE_OFFSET 500
77 #define HOTT_TEXT_MODE_REQUEST_ID 0x7f
78 #define HOTT_BINARY_MODE_REQUEST_ID 0x80
83 #define HOTT_TELEMETRY_NO_SENSOR_ID 0x80
86 #define HOTT_TELEMETRY_VARIO_SENSOR_ID 0x89
89 #define HOTT_TELEMETRY_GPS_SENSOR_ID 0x8a
92 #define HOTT_TELEMETRY_AIRESC_SENSOR_ID 0x8c
95 #define HOTT_TELEMETRY_GAM_SENSOR_ID 0x8d
98 #define HOTT_TELEMETRY_EAM_SENSOR_ID 0x8e
101 #define HOTT_EAM_SENSOR_TEXT_ID 0xE0 // Electric Air Module ID
102 #define HOTT_GPS_SENSOR_TEXT_ID 0xA0 // GPS Module ID
105 #define HOTT_TEXTMODE_MSG_TEXT_LEN 168
206 #define HOTT_VARIO_MSG_TEXT_LEN 21
uint8_t alarm_invers1
Definition: hott.h:281
uint8_t climbrate10s_L
Definition: hott.h:245
uint8_t speed_H
Definition: hott.h:467
uint8_t version
Definition: hott.h:485
uint8_t airesc_sensor_id
Definition: hott.h:433
bool hottTelemetryEnabled
Definition: hott.h:499
uint8_t alarm_invers1
Definition: hott.h:144
uint8_t current_L
Definition: hott.h:457
portSharing_e
Definition: serial.h:41
uint8_t main_voltage_L
Definition: hott.h:190
uint8_t speed_H
Definition: hott.h:195
uint8_t gps_time_s
Definition: hott.h:413
uint8_t batt1_voltage_L
Definition: hott.h:317
uint8_t altitude_H
Definition: hott.h:184
uint8_t cell1
Definition: hott.h:165
uint8_t temperature2
Definition: hott.h:176
uint8_t batt2_voltage_L
Definition: hott.h:320
uint8_t cell6
Definition: hott.h:170
uint8_t gps_time_m
Definition: hott.h:412
uint8_t main_voltage_H
Definition: hott.h:333
uint8_t altitude_H
Definition: hott.h:327
uint8_t input_v_min_H
Definition: hott.h:452
uint8_t esc_temp
Definition: hott.h:455
uint32_t lastMessagesPreparedAt
Definition: hott.h:491
uint8_t cell6_L
Definition: hott.h:307
uint8_t free_char3
Definition: hott.h:423
uint8_t rpm_H
Definition: hott.h:182
uint8_t pos_NS_dm_H
Definition: hott.h:382
uint8_t bec_v
Definition: hott.h:470
uint8_t rpm_L
Definition: hott.h:181
uint8_t climbrate_H
Definition: hott.h:186
uint8_t altitude_min_L
Definition: hott.h:239
uint8_t cell7_L
Definition: hott.h:308
uint8_t speed_L
Definition: hott.h:194
uint8_t version
Definition: hott.h:252
uint8_t gps_fix_char
Definition: hott.h:404
uint8_t cell3
Definition: hott.h:167
hottEamAlarm2Flag_e
Definition: hott.h:61
uint8_t altitude_L
Definition: hott.h:326
uint8_t home_direction
Definition: hott.h:406
uint8_t fuel_procent
Definition: hott.h:177
uint8_t cell4_H
Definition: hott.h:312
uint8_t motor_temp_max
Definition: hott.h:479
#define HOTT_VARIO_MSG_TEXT_LEN
Definition: hott.h:206
uint8_t input_v_H
Definition: hott.h:450
uint8_t general_error_number
Definition: hott.h:200
uint8_t pos_EW_sec_H
Definition: hott.h:390
void configureHoTTTelemetryPort(void)
uint8_t main_voltage_L
Definition: hott.h:332
uint8_t speed_max_H
Definition: hott.h:469
uint8_t climbrate_L
Definition: hott.h:185
uint8_t gps_speed_H
Definition: hott.h:378
uint8_t rpm_L
Definition: hott.h:343
uint8_t batt_cap_L
Definition: hott.h:192
uint8_t rpm_H
Definition: hott.h:462
uint8_t msl_altitude_H
Definition: hott.h:417
uint8_t start_byte
Definition: hott.h:208
uint8_t warning_beeps
Definition: hott.h:120
uint8_t angle_nick
Definition: hott.h:408
uint8_t input_v_min_L
Definition: hott.h:451
uint8_t batt_cap_L
Definition: hott.h:453
uint8_t climbrate10s_H
Definition: hott.h:246
uint8_t batt_cap_H
Definition: hott.h:193
uint8_t alarm_invers1
Definition: hott.h:371
uint8_t stop_byte
Definition: hott.h:203
uint8_t batt_cap_H
Definition: hott.h:336
HOTT_GPS_MSG_t hottGPSMessage
Definition: hott.h:501
uint8_t electric_min
Definition: hott.h:346
uint8_t motor_timing
Definition: hott.h:482
uint8_t alarm_invers1
Definition: hott.h:233
uint8_t alarm_invers2
Definition: hott.h:154
uint8_t current_L
Definition: hott.h:188
uint8_t pos_NS_sec_H
Definition: hott.h:384
uint8_t min_cell_volt_num
Definition: hott.h:197
uint8_t start_byte
Definition: hott.h:356
uint8_t rpm_H
Definition: hott.h:344
uint8_t free_char3
Definition: hott.h:250
uint8_t cell6_H
Definition: hott.h:314
struct system_config system
Definition: config.h:99
uint8_t pwm
Definition: hott.h:475
uint8_t warning_beeps
Definition: hott.h:259
uint8_t hottMsgRemainingBytesToSendCount
Definition: hott.h:495
uint8_t pos_EW_sec_L
Definition: hott.h:389
uint8_t speed_H
Definition: hott.h:350
uint8_t motor_temp
Definition: hott.h:478
void hott_init(struct hott *self, struct system_calls *system, struct battery *bat)
uint8_t motor_rpm_H
Definition: hott.h:481
uint8_t climbrate3s_L
Definition: hott.h:243
uint8_t climbrate_L
Definition: hott.h:398
uint8_t current_H
Definition: hott.h:189
uint8_t current_H
Definition: hott.h:458
void checkHoTTTelemetryState(void)
uint8_t altitude_L
Definition: hott.h:395
uint8_t warning_beeps
Definition: hott.h:210
uint8_t temperature1
Definition: hott.h:175
uint8_t pos_NS
Definition: hott.h:380
uint8_t altitude_L
Definition: hott.h:183
uint8_t cell4
Definition: hott.h:168
uint8_t stop_byte
Definition: hott.h:114
uint8_t speed_max_L
Definition: hott.h:468
uint8_t pos_NS_sec_L
Definition: hott.h:383
uint8_t altitude_max_L
Definition: hott.h:237
uint8_t cell4_L
Definition: hott.h:305
uint8_t bec_current
Definition: hott.h:472
uint8_t sensor_id
Definition: hott.h:143
uint8_t batt1_L
Definition: hott.h:171
bool hottIsSending
Definition: hott.h:493
uint8_t main_voltage_H
Definition: hott.h:191
uint8_t home_distance_H
Definition: hott.h:393
uint8_t cell3_H
Definition: hott.h:311
struct HOTT_VARIO_MSG_s HOTT_VARIO_MSG_t
uint8_t cell1_L
Definition: hott.h:302
uint8_t electric_sec
Definition: hott.h:347
uint8_t version
Definition: hott.h:202
uint8_t fill1
Definition: hott.h:109
serialPort_t * hottPort
Definition: hott.h:497
uint8_t free_char1
Definition: hott.h:248
struct HOTT_EAM_MSG_s HOTT_EAM_MSG_t
uint8_t alarm_invers2
Definition: hott.h:291
uint8_t rpm2_L
Definition: hott.h:198
uint8_t warning_beeps
Definition: hott.h:358
uint8_t alarm_invers1
Definition: hott.h:447
uint8_t batt2_L
Definition: hott.h:173
uint8_t start_byte
Definition: hott.h:118
void freeHoTTTelemetryPort(void)
uint8_t sensor_id
Definition: hott.h:232
uint8_t angle_compass
Definition: hott.h:409
uint8_t gps_speed_L
Definition: hott.h:377
uint8_t temp2
Definition: hott.h:324
uint8_t input_v_L
Definition: hott.h:449
uint8_t rpm2_H
Definition: hott.h:199
uint8_t msg_txt[HOTT_TEXTMODE_MSG_TEXT_LEN]
Definition: hott.h:111
uint8_t pos_EW_dm_H
Definition: hott.h:388
uint8_t motor_timing_adv
Definition: hott.h:483
uint8_t stop_byte
Definition: hott.h:486
uint8_t alarm_invers2
Definition: hott.h:373
uint8_t cell2
Definition: hott.h:166
uint8_t rpm_L
Definition: hott.h:461
uint32_t lastHoTTRequestCheckAt
Definition: hott.h:490
uint8_t current_L
Definition: hott.h:329
struct serial_port_config * portConfig
Definition: hott.h:498
uint8_t msl_altitude_L
Definition: hott.h:416
uint8_t batt2_voltage_H
Definition: hott.h:321
uint8_t pos_EW
Definition: hott.h:386
hottEamAlarm1Flag_e
Definition: hott.h:49
uint8_t motor_rpm_L
Definition: hott.h:480
uint8_t bec_min_v
Definition: hott.h:471
uint8_t alarm_invers2
Definition: hott.h:448
uint8_t climbrate_H
Definition: hott.h:399
uint8_t altitude_L
Definition: hott.h:235
uint8_t warning_beeps
Definition: hott.h:434
uint8_t motor_highest_current
Definition: hott.h:484
uint8_t * hottMsg
Definition: hott.h:494
struct HOTT_AIRESC_MSG_s HOTT_AIRESC_MSG_t
uint8_t vario_sensor_id
Definition: hott.h:209
uint32_t getHoTTTelemetryProviderBaudRate(void)
uint8_t text_msg[HOTT_VARIO_MSG_TEXT_LEN]
Definition: hott.h:247
uint8_t bec_temp
Definition: hott.h:476
uint8_t hottMsgCrc
Definition: hott.h:496
uint8_t bec_temp_max
Definition: hott.h:477
uint8_t stop_byte
Definition: hott.h:428
uint8_t speed_L
Definition: hott.h:466
uint32_t lastHottAlarmSoundTime
Definition: hott.h:492
uint8_t sensor_id
Definition: hott.h:446
uint8_t bec_current_max_L
Definition: hott.h:473
uint8_t cell3_L
Definition: hott.h:304
uint8_t esc_max_temp
Definition: hott.h:456
uint8_t start_byte
Definition: hott.h:257
uint8_t climbrate3s
Definition: hott.h:401
uint8_t pressure
Definition: hott.h:201
uint8_t start_byte
Definition: hott.h:432
uint8_t pos_NS_dm_L
Definition: hott.h:381
void hott_process_data(struct hott *self)
uint8_t fuel_ml_L
Definition: hott.h:179
uint8_t home_distance_L
Definition: hott.h:392
uint8_t batt1_voltage_H
Definition: hott.h:318
uint8_t pos_EW_dm_L
Definition: hott.h:387
uint8_t free_char1
Definition: hott.h:421
uint8_t current_H
Definition: hott.h:330
uint8_t free_char2
Definition: hott.h:249
uint8_t version
Definition: hott.h:424
uint8_t cell2_L
Definition: hott.h:303
uint8_t angle_roll
Definition: hott.h:407
uint8_t climbrate_H
Definition: hott.h:242
uint8_t climbrate3s
Definition: hott.h:341
uint8_t min_cell_volt
Definition: hott.h:196
Definition: system_calls.h:200
uint8_t rpm_max_L
Definition: hott.h:463
uint8_t warning_beeps
Definition: hott.h:110
uint8_t cell5_H
Definition: hott.h:313
uint8_t stop_byte
Definition: hott.h:351
uint8_t compass_direction
Definition: hott.h:251
uint8_t sensor_id
Definition: hott.h:370
uint8_t altitude_H
Definition: hott.h:396
uint8_t climbrate3s_H
Definition: hott.h:244
uint8_t climbrate_L
Definition: hott.h:338
uint8_t batt_cap_L
Definition: hott.h:335
struct HOTT_GAM_MSG_s HOTT_GAM_MSG_t
uint8_t cell1_H
Definition: hott.h:309
uint8_t gps_satelites
Definition: hott.h:403
uint8_t batt1_H
Definition: hott.h:172
uint8_t sensor_id
Definition: hott.h:280
uint8_t cell2_H
Definition: hott.h:310
uint8_t start_byte
Definition: hott.h:108
struct battery_config bat
Definition: config.h:96
uint8_t flight_direction
Definition: hott.h:376
uint8_t current_max_L
Definition: hott.h:459
uint8_t stop_byte
Definition: hott.h:253
uint8_t batt_cap_H
Definition: hott.h:454
uint8_t altitude_min_H
Definition: hott.h:240
uint8_t cell5
Definition: hott.h:169
uint8_t gps_time_h
Definition: hott.h:411
uint8_t current_max_H
Definition: hott.h:460
HOTT_EAM_MSG_t hottEAMMessage
Definition: hott.h:502
uint8_t climbrate_L
Definition: hott.h:241
#define HOTT_TEXTMODE_MSG_TEXT_LEN
Definition: hott.h:105
portSharing_e hottPortSharing
Definition: hott.h:500
uint8_t altitude_max_H
Definition: hott.h:238
uint8_t gps_sensor_id
Definition: hott.h:357
uint8_t climbrate_H
Definition: hott.h:339
uint8_t speed_L
Definition: hott.h:349
uint8_t climbrate3s
Definition: hott.h:187
uint8_t cell5_L
Definition: hott.h:306
struct HOTT_GPS_MSG_s HOTT_GPS_MSG_t
uint8_t gam_sensor_id
Definition: hott.h:119
uint8_t throttle
Definition: hott.h:465
uint8_t bec_current_max_H
Definition: hott.h:474
uint8_t gps_time_sss
Definition: hott.h:414
uint8_t free_char2
Definition: hott.h:422
uint8_t fuel_ml_H
Definition: hott.h:180
uint8_t rpm_max_H
Definition: hott.h:464
uint8_t vibration
Definition: hott.h:419
uint8_t temp1
Definition: hott.h:323
uint8_t cell7_H
Definition: hott.h:315
uint8_t eam_sensor_id
Definition: hott.h:258
uint8_t altitude_H
Definition: hott.h:236
uint8_t batt2_H
Definition: hott.h:174