33#include "pprzlink/messages.h"
40bool log_temod_started;
48#define TEMOD_I2C_DEV i2c0
52#define TEMOD_TYPE TEMOD_I2C_R1
55#define TEMOD_SLAVE_ADDR 0xF0
62 log_temod_started =
false;
99 if (!log_temod_started) {
100 sdLogWriteLog(
pprzLogFile,
"TEMOD: Temp(degC) GPS_fix TOW(ms) Week Lat(1e7deg) Lon(1e7deg) HMSL(mm) gspeed(cm/s) course(1e7deg) climb(cm/s)\n");
101 log_temod_started =
true;
107 gps.lla_pos.lat,
gps.lla_pos.lon,
gps.hmsl,
Common code for AP and FBW telemetry.
struct GpsState gps
global GPS state
Device independent GPS code (interface).
bool i2c_receive(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint16_t len)
Submit a read only transaction.
@ I2CTransSuccess
transaction successfully finished by I2C driver
@ I2CTransFailed
transaction failed
@ I2CTransDone
transaction set to done by user level
I2C transaction structure.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
arch independent LED (Light Emitting Diodes) API
static FILE * pprzLogFile
SdioError sdLogWriteLog(const FileDes fd, const char *fmt,...)
void temod_periodic(void)
struct i2c_transaction tmd_trans
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.