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)) {
85 uint8_t ch = dev->get_byte(dev->periph);
88 if (CHIMU_DATA.
m_MsgID == 0x03) {
106 #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 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)
#define INS_PITCH_NEUTRAL_DEFAULT
static const struct usb_device_descriptor dev
API to get/set the generic vehicle states.
volatile uint8_t new_ins_attitude
CHIMU_PARSER_DATA CHIMU_DATA
void ahrs_chimu_init(void)
Common code for AP and FBW telemetry.
arch independent LED (Light Emitting Diodes) API
static bool ahrs_chimu_enable_output(bool enable)
Device independent INS code.
INS_FORMAT ins_pitch_neutral