27#include "modules/loggers/logger_utils"
32#define LogFormatHeader "%.5f,%ld,%ld,%ld,%ld,%ld,%ld"
33#define LogFormatVect3 ",%ld,%ld,%ld"
36#define LogFormatHeader "%.5f,%d,%d,%d,%d,%d,%d"
37#define LogFormatVect3 ",%d,%d,%d"
41#ifndef LOGGER_CONTROL_EFFECTIVENESS_FILE_PATH
42#define LOGGER_CONTROL_EFFECTIVENESS_FILE_PATH /data/ftp/internal_000/control_eff
49#ifndef LOGGER_CONTROL_EFFECTIVENESS_COMMANDS
50#define LOGGER_CONTROL_EFFECTIVENESS_COMMANDS TRUE
53#ifndef LOGGER_CONTROL_EFFECTIVENESS_ACTUATORS
54#define LOGGER_CONTROL_EFFECTIVENESS_ACTUATORS FALSE
57#ifndef LOGGER_CONTROL_EFFECTIVENESS_POS
58#define LOGGER_CONTROL_EFFECTIVENESS_POS FALSE
61#ifndef LOGGER_CONTROL_EFFECTIVENESS_SPEED
62#define LOGGER_CONTROL_EFFECTIVENESS_SPEED FALSE
65#ifndef LOGGER_CONTROL_EFFECTIVENESS_AIRSPEED
66#define LOGGER_CONTROL_EFFECTIVENESS_AIRSPEED FALSE
71#if LOGGER_CONTROL_EFFECTIVENESS_COMMANDS
75#if LOGGER_CONTROL_EFFECTIVENESS_ACTUATORS
86#if LOGGER_CONTROL_EFFECTIVENESS_COMMANDS
91#if LOGGER_CONTROL_EFFECTIVENESS_ACTUATORS
96#if LOGGER_CONTROL_EFFECTIVENESS_POS
99#if LOGGER_CONTROL_EFFECTIVENESS_SPEED
102#if LOGGER_CONTROL_EFFECTIVENESS_AIRSPEED
137#if LOGGER_CONTROL_EFFECTIVENESS_COMMANDS
144#if LOGGER_CONTROL_EFFECTIVENESS_ACTUATORS
151#if LOGGER_CONTROL_EFFECTIVENESS_POS
157#if LOGGER_CONTROL_EFFECTIVENESS_SPEED
163#if LOGGER_CONTROL_EFFECTIVENESS_AIRSPEED
Hardware independent code for commands handling.
int32_t p
in rad/s with INT32_RATE_FRAC
int32_t r
in rad/s with INT32_RATE_FRAC
int32_t q
in rad/s with INT32_RATE_FRAC
vector in East North Up coordinates
static struct EnuCoor_i * stateGetPositionEnu_i(void)
Get position in local ENU coordinates (int).
static struct Int32Rates * stateGetBodyRates_i(void)
Get vehicle body angular rate (int).
static struct Int32Vect3 * stateGetAccelBody_i(void)
Get acceleration in Body coordinates (int).
static struct EnuCoor_i * stateGetSpeedEnu_i(void)
Get ground speed in local ENU coordinates (int).
static float stateGetAirspeed_f(void)
Get airspeed (float).
void logger_control_effectiveness_periodic(void)
Log the values to file.
#define LOGGER_CONTROL_EFFECTIVENESS_FILE_PATH
void logger_control_effectiveness_start(void)
Write the log header line according to the enabled parts.
static FILE * pprzLogFile
void logger_control_effectiveness_stop(void)
Log data required to compute control effectiveness.
#define LogOpen(_file, _path, _name)
#define LogFileIsOpen(_file)
Hardware independent API for actuators (servos, motor controllers).
static const ShellCommand commands[]
API to get/set the generic vehicle states.
Architecture independent timing functions.
static float get_sys_time_float(void)
Get the time in seconds since startup.