|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
36 #include "generated/airframe.h"
41 #define IMU_UM6_BUFFER_LENGTH 32
42 #define IMU_UM6_DATA_OFFSET 5
43 #define IMU_UM6_LONG_DELAY 4000000
45 #define IMU_UM6_COMMUNICATION_REG 0x00
46 #define IMU_UM6_MISC_CONFIG_REG 0x01
47 #define IMU_UM6_GET_FIRMWARE_CMD 0xAA
48 #define IMU_UM6_ZERO_GYROS_CMD 0xAC
49 #define IMU_UM6_RESET_EKF_CMD 0xAD
50 #define IMU_UM6_GET_DATA 0xAE
51 #define IMU_UM6_SET_ACCEL_REF 0xAF
52 #define IMU_UM6_SET_MAG_REF 0xB0
54 #define IMU_UM6_GYRO_PROC 0x5C
55 #define IMU_UM6_ACCEL_PROC 0x5E
56 #define IMU_UM6_MAG_PROC 0x60
57 #define IMU_UM6_EULER 0x62
58 #define IMU_UM6_QUAT 0x64
VIC slots used for the LPC2148 define name e g gps UART1_VIC_SLOT e g modem SPI1_VIC_SLOT SPI1 in mcu_periph spi_arch c or spi_slave_hs_arch c(and some others not using the SPI peripheral yet..) I2C0_VIC_SLOT 8 mcu_periph/i2c_arch.c I2C1_VIC_SLOT 9 mcu_periph/i2c_arch.c USB_VIC_SLOT 10 usb
struct UM6Packet UM6_packet
void UM6_packet_parse(uint8_t c)
uint8_t uart_getch(struct uart_periph *p)
struct FloatEulers UM6_eulers
void UM6_packet_read_message(void)
int uart_char_available(struct uart_periph *p)
Check UART for available chars in receive buffer.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
volatile uint8_t UM6_imu_available
uint8_t msg_buf[IMU_UM6_BUFFER_LENGTH]
struct FloatQuat UM6_quat
enum UM6Status UM6_status
static void imu_um6_event(void)
void imu_um6_publish(void)
void imu_um6_periodic(void)
#define IMU_UM6_BUFFER_LENGTH