15 #include "generated/airframe.h"
17 #if CHIMU_DOWNLINK_IMMEDIATE
55 uint8_t rate[12] = {
CHIMU_STX,
CHIMU_STX, 0x06,
CHIMU_BROADCAST,
MSG10_UARTSETTINGS, 0x05, 0xff, 0x79, 0x00, 0x00, 0x01, 0x76 };
68 for (
int i = 0; i < 7; i++) {
73 for (
int i = 0; i < 7; i++) {
90 if (CHIMU_DATA.
m_MsgID == 0x03) {
108 #if CHIMU_DOWNLINK_IMMEDIATE
static void stateSetNedToBodyEulers_f(struct FloatEulers *ned_to_body_eulers)
Set vehicle body attitude from euler angles (float).
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
Dispatcher to register actual AHRS implementations.
CHIMU_attitude_data m_attitude
#define AHRS_COMP_ID_CHIMU
INS_FORMAT ins_roll_neutral
struct AhrsChimu ahrs_chimu
#define MSG10_UARTSETTINGS
#define INS_ROLL_NEUTRAL_DEFAULT
void CHIMU_Checksum(unsigned char *data, unsigned char buflen)
void * periph
pointer to parent implementation
void ahrs_register_impl(AhrsEnableOutput enable)
Register an AHRS implementation.
void ahrs_chimu_register(void)
void CHIMU_Init(CHIMU_PARSER_DATA *pstData)
Device independent GPS code (interface)
unsigned char CHIMU_Parse(unsigned char btData, unsigned char bInputType, CHIMU_PARSER_DATA *pstData)
#define InsSend(_dat, _len)
get_byte_t get_byte
get a new char
#define INS_PITCH_NEUTRAL_DEFAULT
static const struct usb_device_descriptor dev
#define DefaultChannel
SITL.
static bool_t ahrs_chimu_enable_output(bool_t enable)
API to get/set the generic vehicle states.
volatile uint8_t new_ins_attitude
static uint8_t ahrs_chimu_id
CHIMU_PARSER_DATA CHIMU_DATA
void ahrs_chimu_init(void)
Common code for AP and FBW telemetry.
arch independent LED (Light Emitting Diodes) API
char_available_t char_available
check if a new character is available
Device independent INS code.
INS_FORMAT ins_pitch_neutral