Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
hott.c File Reference

Graupner HOTT telemetry control module. More...

#include "hott/hott.h"
#include "mcu_periph/sys_time.h"
#include "mcu_periph/uart.h"
+ Include dependency graph for hott.c:

Go to the source code of this file.

Macros

#define HOTT_TEXT_MODE_REQUEST_ID   0x7f
 
#define HOTT_BINARY_MODE_REQUEST_ID   0x80
 
#define HOTT_TELEMETRY_GPS_SENSOR_ID   0x8A
 
#define HOTT_TELEMETRY_VARIO_SENSOR_ID   0x89
 

Functions

static void hott_msgs_init (void)
 Initializes a HoTT GPS message (Receiver answer type !Not Smartbox) More...
 
static void hott_enable_transmitter (void)
 
static void hott_enable_receiver (void)
 
void hott_init (void)
 RC init function. More...
 
void hott_periodic (void)
 
static void hott_send_msg (int8_t *buffer, int16_t len)
 
static void hott_send_telemetry_data (void)
 
static void hott_check_serial_data (uint32_t tnow)
 
static void hott_periodic_event (uint32_t tnow)
 
void hott_event (void)
 RC event function. More...
 

Variables

static uint32_t hott_event_timer
 
static bool hott_telemetry_is_sending = false
 
static uint16_t hott_telemetry_sendig_msgs_id = 0
 
static int8_thott_msg_ptr = 0
 
static int16_t hott_msg_len = 0
 

Detailed Description

Graupner HOTT telemetry control module.

Definition in file hott.c.

Macro Definition Documentation

◆ HOTT_BINARY_MODE_REQUEST_ID

#define HOTT_BINARY_MODE_REQUEST_ID   0x80

Definition at line 45 of file hott.c.

◆ HOTT_TELEMETRY_GPS_SENSOR_ID

#define HOTT_TELEMETRY_GPS_SENSOR_ID   0x8A

Definition at line 49 of file hott.c.

◆ HOTT_TELEMETRY_VARIO_SENSOR_ID

#define HOTT_TELEMETRY_VARIO_SENSOR_ID   0x89

Definition at line 51 of file hott.c.

◆ HOTT_TEXT_MODE_REQUEST_ID

#define HOTT_TEXT_MODE_REQUEST_ID   0x7f

Definition at line 44 of file hott.c.

Function Documentation

◆ hott_check_serial_data()

static void hott_check_serial_data ( uint32_t  tnow)
static

◆ hott_enable_receiver()

static void hott_enable_receiver ( void  )
static

Definition at line 117 of file hott.c.

References FALSE, TRUE, and uart_periph_set_mode().

Referenced by hott_send_telemetry_data().

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

◆ hott_enable_transmitter()

static void hott_enable_transmitter ( void  )
static

Definition at line 111 of file hott.c.

References FALSE, TRUE, and uart_periph_set_mode().

Referenced by hott_send_telemetry_data().

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

◆ hott_event()

void hott_event ( void  )

RC event function.

Definition at line 291 of file hott.c.

References hott_event_timer, hott_periodic_event(), SysTimeTimer, and SysTimeTimerStart.

+ Here is the call graph for this function:

◆ hott_init()

void hott_init ( void  )

RC init function.

Definition at line 123 of file hott.c.

References hott_msgs_init().

+ Here is the call graph for this function:

◆ hott_msgs_init()

static void hott_msgs_init ( void  )
static

Initializes a HoTT GPS message (Receiver answer type !Not Smartbox)

Definition at line 91 of file hott.c.

References hott_init_eam_msg(), and hott_init_gam_msg().

Referenced by hott_init().

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

◆ hott_periodic()

void hott_periodic ( void  )

◆ hott_periodic_event()

static void hott_periodic_event ( uint32_t  tnow)
static

Definition at line 274 of file hott.c.

References get_sys_time_usec(), hott_check_serial_data(), hott_msg_ptr, hott_send_telemetry_data(), and hott_telemetry_is_sending.

Referenced by hott_event().

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

◆ hott_send_msg()

static void hott_send_msg ( int8_t buffer,
int16_t  len 
)
static

Definition at line 161 of file hott.c.

References hott_msg_len, hott_msg_ptr, hott_telemetry_is_sending, hott_telemetry_sendig_msgs_id, and TRUE.

Referenced by hott_check_serial_data().

+ Here is the caller graph for this function:

◆ hott_send_telemetry_data()

static void hott_send_telemetry_data ( void  )
static

Definition at line 169 of file hott.c.

References hott_enable_receiver(), hott_enable_transmitter(), hott_msg_len, hott_msg_ptr, hott_telemetry_is_sending, hott_telemetry_sendig_msgs_id, uart_char_available(), uart_getch(), and uart_put_byte().

Referenced by hott_periodic_event().

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

Variable Documentation

◆ hott_event_timer

uint32_t hott_event_timer
static

Definition at line 53 of file hott.c.

Referenced by hott_event().

◆ hott_msg_len

int16_t hott_msg_len = 0
static

Definition at line 73 of file hott.c.

Referenced by hott_send_msg(), and hott_send_telemetry_data().

◆ hott_msg_ptr

int8_t* hott_msg_ptr = 0
static

Definition at line 71 of file hott.c.

Referenced by hott_periodic_event(), hott_send_msg(), and hott_send_telemetry_data().

◆ hott_telemetry_is_sending

bool hott_telemetry_is_sending = false
static

◆ hott_telemetry_sendig_msgs_id

uint16_t hott_telemetry_sendig_msgs_id = 0
static

Definition at line 55 of file hott.c.

Referenced by hott_periodic(), hott_send_msg(), and hott_send_telemetry_data().