37 #ifndef FILE_LOGGER_PATH
38 #define FILE_LOGGER_PATH /data/video/usb
64 "counter,gyro_unscaled_p,gyro_unscaled_q,gyro_unscaled_r,accel_unscaled_x,accel_unscaled_y,accel_unscaled_z,mag_unscaled_x,mag_unscaled_y,mag_unscaled_z,COMMAND_THRUST,COMMAND_ROLL,COMMAND_PITCH,COMMAND_YAW,qi,qx,qy,qz\n"
87 fprintf(
file_logger,
"%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d\n",
static struct Int32Quat * stateGetNedToBodyQuat_i(void)
Get vehicle body attitude quaternion (int).
void file_logger_periodic(void)
Log the values to a csv file.
struct Int32Vect3 mag_unscaled
unscaled magnetometer measurements
int32_t r
in rad/s with INT32_RATE_FRAC
struct Int32Rates gyro_unscaled
unscaled gyroscope measurements
void file_logger_stop(void)
Stop the logger an nicely close the file.
struct Imu imu
global IMU state
Inertial Measurement Unit interface.
API to get/set the generic vehicle states.
File logger for Linux based autopilots.
General stabilization interface for rotorcrafts.
int32_t stabilization_cmd[COMMANDS_NB]
Stabilization commands.
#define FILE_LOGGER_PATH
Set the default File logger path to the USB drive.
int32_t p
in rad/s with INT32_RATE_FRAC
struct Int32Vect3 accel_unscaled
unscaled accelerometer measurements
static FILE * file_logger
The file pointer.
int32_t q
in rad/s with INT32_RATE_FRAC
void file_logger_start(void)
Start the file logger and open a new file.