Skip to content

Commit

Permalink
[fix] use either COMMAND_THRUST or COMMAND_THROTTLE, not both
Browse files Browse the repository at this point in the history
  • Loading branch information
gautierhattenberger committed Apr 5, 2018
1 parent 8e04ae0 commit bd103c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sw/airborne/modules/loggers/file_logger.c
Expand Up @@ -102,7 +102,7 @@ void file_logger_periodic(void)

/* Add and removed values here as wished to log */
#ifdef COMMAND_THRUST
fprintf(file_logger, "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d\n",
fprintf(file_logger, "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d\n",
counter,
imu.gyro_unscaled.p,
imu.gyro_unscaled.q,
Expand All @@ -114,7 +114,6 @@ void file_logger_periodic(void)
imu.mag_unscaled.y,
imu.mag_unscaled.z,
stabilization_cmd[COMMAND_THRUST],
stabilization_cmd[COMMAND_THROTTLE],
stabilization_cmd[COMMAND_ROLL],
stabilization_cmd[COMMAND_PITCH],
stabilization_cmd[COMMAND_YAW],
Expand Down

0 comments on commit bd103c1

Please sign in to comment.