10 #include "firmwares/fixedwing/main_fbw.h"
18 #error "currently only compatible with uBlox GPS modules"
23 #ifndef ARDUIMU_I2C_DEV
24 #define ARDUIMU_I2C_DEV i2c0
30 #define ArduIMU_SLAVE_ADDR 0x22
34 #include "pprzlink/messages.h"
#define INS_PITCH_NEUTRAL_DEFAULT
#define INS_ROLL_NEUTRAL_DEFAULT
void ArduIMU_periodicGPS(void)
void IMU_Daten_verarbeiten(void)
void ArduIMU_periodic(void)
float ArduIMU_data[NB_DATA]
ArduIMU simulation.
Common code for AP and FBW telemetry.
#define V_CTL_THROTTLE_SLEW
struct GpsState gps
global GPS state
Device independent GPS code (interface)
uint32_t tow
GPS time of week in ms.
int32_t hmsl
height above mean sea level (MSL) in mm
struct LlaCoor_i lla_pos
position in LLA (lat,lon: deg*1e7; alt: mm over ellipsoid)
int32_t course
GPS course over ground in rad*1e7, [0, 2*Pi]*1e7 (CW/north)
struct NedCoor_i ned_vel
speed NED in cm/s
uint16_t gspeed
norm of 2d ground speed in cm/s
uint16_t speed_3d
norm of 3d speed in cm/s
uint8_t num_sv
number of sat in fix
struct GpsUbx gps_ubx[GPS_UBX_NB]
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
bool i2c_transmit(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len)
Submit a write only transaction.
bool i2c_receive(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint16_t len)
Submit a read only transaction.
I2C transaction structure.
int32_t lat
in degrees*1e7
int32_t alt
in millimeters above WGS84 reference ellipsoid
int32_t lon
in degrees*1e7
static void stateSetNedToBodyEulers_f(uint16_t id, struct FloatEulers *ned_to_body_eulers)
Set vehicle body attitude from euler angles (float).
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
int8_t gps_daten_versendet_msg1
int8_t gps_daten_versendet_msg2
int8_t gps_daten_abgespeichert
int8_t imu_daten_angefordert
static int16_t recievedData[NB_DATA]
#define ArduIMU_SLAVE_ADDR
struct i2c_transaction ardu_gps_trans
struct i2c_transaction ardu_ins_trans
API to get/set the generic vehicle states.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
int int32_t
Typedef defining 32 bit int type.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
signed char int8_t
Typedef defining 8 bit char type.