Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
#include <stdbool.h>
#include "state.h"
#include "subsystems/gps.h"
#include "subsystems/ahrs.h"
#include "generated/airframe.h"
#include "ins_module.h"
#include "imu_chimu.h"
#include "led.h"
Go to the source code of this file.
Functions | |
static bool_t | ahrs_chimu_enable_output (bool_t enable) |
void | ahrs_chimu_register (void) |
void | ahrs_chimu_init (void) |
void | parse_ins_msg (void) |
Variables | |
CHIMU_PARSER_DATA | CHIMU_DATA |
INS_FORMAT | ins_roll_neutral |
INS_FORMAT | ins_pitch_neutral |
static uint8_t | ahrs_chimu_id = AHRS_COMP_ID_CHIMU |
struct AhrsChimu | ahrs_chimu |
|
static |
Definition at line 37 of file ahrs_chimu_uart.c.
References ahrs_chimu, and AhrsChimu::is_enabled.
Referenced by ahrs_chimu_register().
void ahrs_chimu_init | ( | void | ) |
Definition at line 49 of file ahrs_chimu_uart.c.
References ahrs_chimu, CHIMU_BROADCAST, CHIMU_Checksum(), CHIMU_Init(), CHIMU_STX, FALSE, ins_pitch_neutral, INS_PITCH_NEUTRAL_DEFAULT, ins_roll_neutral, INS_ROLL_NEUTRAL_DEFAULT, InsSend, InsUartSend1, AhrsChimu::is_aligned, AhrsChimu::is_enabled, MSG00_PING, MSG09_ESTIMATOR, MSG10_UARTSETTINGS, new_ins_attitude, and TRUE.
Referenced by ahrs_chimu_register().
void ahrs_chimu_register | ( | void | ) |
Definition at line 43 of file ahrs_chimu_uart.c.
References ahrs_chimu_enable_output(), ahrs_chimu_init(), and ahrs_register_impl().
|
inline |
Definition at line 83 of file ahrs_chimu_uart.c.
References ahrs_chimu, ahrs_chimu_id, link_device::char_available, CHIMU_Parse(), DefaultChannel, DefaultDevice, dev, CHIMU_attitude_data::euler, link_device::get_byte, InsLinkDevice, AhrsChimu::is_aligned, AhrsChimu::is_enabled, LED_TOGGLE, CHIMU_PARSER_DATA::m_attitude, CHIMU_PARSER_DATA::m_MsgID, new_ins_attitude, link_device::periph, CHIMU_Euler::phi, CHIMU_Euler::psi, stateSetNedToBodyEulers_f(), CHIMU_Euler::theta, and TRUE.
struct AhrsChimu ahrs_chimu |
Definition at line 35 of file ahrs_chimu_uart.c.
Referenced by ahrs_chimu_enable_output(), ahrs_chimu_init(), and parse_ins_msg().
|
static |
Definition at line 33 of file ahrs_chimu_uart.c.
Referenced by parse_ins_msg().
CHIMU_PARSER_DATA CHIMU_DATA |
Definition at line 28 of file ahrs_chimu_uart.c.
INS_FORMAT ins_pitch_neutral |
Definition at line 31 of file ahrs_chimu_uart.c.
Referenced by ahrs_chimu_init().
INS_FORMAT ins_roll_neutral |
Definition at line 30 of file ahrs_chimu_uart.c.
Referenced by ahrs_chimu_init().