|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
63 chk_rec = (packet_buffer[packet_length - 2] << 8) | packet_buffer[packet_length - 1];
71 for (
int i = 0; i < packet_length; i++) {
72 chk += packet_buffer[i];
79 for (
int i = 0; i < packet_length; i++) {
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
#define IMU_UM6_COMMUNICATION_REG
#define IMU_UM6_GYRO_PROC
uint16_t UM6_calculate_checksum(uint8_t packet_buffer[], uint8_t packet_length)
#define IMU_UM6_RESET_EKF_CMD
#define VECT3_SMUL(_vo, _vi, _s)
#define IMU_UM6_SET_ACCEL_REF
struct Int32Vect3 accel
accelerometer measurements in m/s^2 in BFP with INT32_ACCEL_FRAC
#define RATES_SMUL(_ro, _ri, _s)
void imu_um6_publish(void)
void UM6_packet_read_message(void)
struct FloatVect3 UM6_mag
#define EULERS_SMUL(_eo, _ei, _s)
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
abstract IMU interface providing fixed point interface
struct FloatEulers UM6_eulers
#define ACCELS_BFP_OF_REAL(_ef, _ei)
#define IMU_UM6_ZERO_GYROS_CMD
#define RATES_BFP_OF_REAL(_ri, _rf)
struct FloatRates UM6_rate
uint8_t buf_out[IMU_UM6_BUFFER_LENGTH]
void imu_scale_accel(struct Imu *_imu)
Architecture independent timing functions.
#define IMU_UM6_SET_MAG_REF
uint8_t msg_buf[IMU_UM6_BUFFER_LENGTH]
void uart_put_byte(struct uart_periph *p, long fd, uint8_t data)
Uart transmit implementation.
#define QUAT_BFP_OF_REAL(_qi, _qf)
struct FloatQuat UM6_quat
struct UM6Packet UM6_packet
bool UM6_verify_chk(uint8_t packet_buffer[], uint8_t packet_length)
struct Imu imu
global IMU state
void imu_um6_periodic(void)
void imu_scale_gyro(struct Imu *_imu)
void UM6_packet_parse(uint8_t c)
enum UM6Status UM6_status
struct FloatVect3 UM6_accel
#define IMU_UM6_MISC_CONFIG_REG
struct Int32Vect3 mag
magnetometer measurements scaled to 1 in BFP with INT32_MAG_FRAC
#define EULERS_BFP_OF_REAL(_ei, _ef)
void UM6_send_packet(uint8_t *packet_buffer, uint8_t packet_length)
void imu_scale_mag(struct Imu *_imu)
#define IMU_UM6_DATA_OFFSET
#define IMU_UM6_ACCEL_PROC
#define MAGS_BFP_OF_REAL(_ef, _ei)
struct Int32Rates gyro
gyroscope measurements in rad/s in BFP with INT32_RATE_FRAC
#define IMU_UM6_BUFFER_LENGTH