37 #include "autopilot.h"
40 #include "subsystems/chibios-libopencm3/sdLog.h"
41 #include "subsystems/chibios-libopencm3/chibios_sdlog.h"
49 #ifndef MF_DAQ_POWER_INIT
50 #define MF_DAQ_POWER_INIT TRUE
53 #if !(defined MF_DAQ_POWER_PORT) && !(defined MF_DAQ_POWER_PIN)
54 INFO(
"MF_DAQ power pin is not defined")
61 #if (defined MF_DAQ_POWER_PORT) && (defined MF_DAQ_POWER_PIN)
71 DOWNLINK_SEND_MF_DAQ_STATE(
extra_pprz_tp, EXTRA_DOWNLINK_DEVICE,
99 if (pprzLogFile != -1) {
102 DOWNLINK_SEND_ALIVE(
pprzlog_tp, chibios_sdlog, 16, MD5SUM);
127 DOWNLINK_SEND_MF_DAQ_STATE(
pprzlog_tp, chibios_sdlog,
int32_t north
in centimeters
static struct FloatEulers * stateGetNedToBodyEulers_f(void)
Get vehicle body attitude euler angles (float).
void mf_daq_send_state(void)
uint16_t autopilot_flight_time
flight time in seconds.
Handling of messages coming from ground and other A/Cs.
static struct LlaCoor_f * stateGetPositionLla_f(void)
Get position in LLA coordinates (float).
int32_t east
in centimeters
struct UtmCoor_i utm_pos
position in UTM (north,east: cm; alt: mm over ellipsoid)
#define meteo_france_DAQ_SetPower(_x)
uint8_t zone
UTM zone number.
int32_t hmsl
height above mean sea level in mm
uint32_t tow
GPS time of week in ms.
Device independent GPS code (interface)
static struct NedCoor_f * stateGetAccelNed_f(void)
Get acceleration in NED coordinates (float).
struct pprzlog_transport pprzlog_tp
Communication module with the Data Acquisition board from Meteo France.
static struct FloatRates * stateGetBodyRates_f(void)
Get vehicle body angular rate (float).
#define DefaultChannel
SITL.
void parse_mf_daq_msg(void)
API to get/set the generic vehicle states.
int32_t course
GPS course over ground in rad*1e7, [0, 2*Pi]*1e7 (CW/north)
#define MF_DAQ_POWER_INIT
static struct EnuCoor_f * stateGetSpeedEnu_f(void)
Get ground speed in local ENU coordinates (float).
static struct FloatVect2 * stateGetHorizontalWindspeed_f(void)
Get horizontal windspeed (float).
Common code for AP and FBW telemetry.
uint8_t dl_buffer[MSG_SIZE]
void mf_daq_send_report(void)
uint16_t gspeed
norm of 2d ground speed in cm/s
float values[MF_DAQ_SIZE]
struct NedCoor_i ned_vel
speed NED in cm/s
struct GpsState gps
global GPS state
void gpio_setup_output(uint32_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as outputs.