fix sensor_combined_s temperature indexing error

This commit is contained in:
Mark Whitehorn 2016-03-17 20:09:20 -06:00 committed by Lorenz Meier
parent 6ac641956a
commit 7dde4cb55b
1 changed files with 3 additions and 3 deletions

View File

@ -1581,9 +1581,9 @@ int sdlog2_thread_main(int argc, char *argv[])
log_msg.body.log_IMU.mag_x = buf.sensor.magnetometer_ga[i * 3 + 0];
log_msg.body.log_IMU.mag_y = buf.sensor.magnetometer_ga[i * 3 + 1];
log_msg.body.log_IMU.mag_z = buf.sensor.magnetometer_ga[i * 3 + 2];
log_msg.body.log_IMU.temp_gyro = buf.sensor.gyro_temp[i * 3 + 0];
log_msg.body.log_IMU.temp_acc = buf.sensor.accelerometer_temp[i * 3 + 0];
log_msg.body.log_IMU.temp_mag = buf.sensor.magnetometer_temp[i * 3 + 0];
log_msg.body.log_IMU.temp_gyro = buf.sensor.gyro_temp[i];
log_msg.body.log_IMU.temp_acc = buf.sensor.accelerometer_temp[i];
log_msg.body.log_IMU.temp_mag = buf.sensor.magnetometer_temp[i];
LOGBUFFER_WRITE_AND_COUNT(IMU);
}