15 #include "generated/airframe.h"
17 #if CHIMU_DOWNLINK_IMMEDIATE
19 #include "pprzlink/messages.h"
53 uint8_t rate[12] = {
CHIMU_STX,
CHIMU_STX, 0x06,
CHIMU_BROADCAST,
MSG10_UARTSETTINGS, 0x05, 0xff, 0x79, 0x00, 0x00, 0x01, 0x76 };
66 for (
int i = 0; i < 7; i++) {
71 for (
int i = 0; i < 7; i++) {
84 while (
dev->char_available(
dev->periph)) {
106 #if CHIMU_DOWNLINK_IMMEDIATE
void ahrs_register_impl(AhrsEnableOutput enable)
Register an AHRS implementation.
Dispatcher to register actual AHRS implementations.
#define AHRS_COMP_ID_CHIMU
INS_FORMAT ins_pitch_neutral
void ahrs_chimu_register(void)
INS_FORMAT ins_roll_neutral
void ahrs_chimu_init(void)
struct AhrsChimu ahrs_chimu
CHIMU_PARSER_DATA CHIMU_DATA
static bool ahrs_chimu_enable_output(bool enable)
#define INS_PITCH_NEUTRAL_DEFAULT
#define INS_ROLL_NEUTRAL_DEFAULT
Common code for AP and FBW telemetry.
Device independent GPS code (interface)
static void stateSetNedToBodyEulers_f(struct FloatEulers *ned_to_body_eulers)
Set vehicle body attitude from euler angles (float).
void CHIMU_Checksum(unsigned char *data, unsigned char buflen)
unsigned char CHIMU_Parse(unsigned char btData, unsigned char bInputType, CHIMU_PARSER_DATA *pstData)
void CHIMU_Init(CHIMU_PARSER_DATA *pstData)
CHIMU_attitude_data m_attitude
#define MSG10_UARTSETTINGS
Device independent INS code.
volatile uint8_t new_ins_attitude
#define InsSend(_dat, _len)
arch independent LED (Light Emitting Diodes) API
API to get/set the generic vehicle states.
static const struct usb_device_descriptor dev
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.