Skip to content

Commit

Permalink
increase precision for pressure and OAT in SENS logging
Browse files Browse the repository at this point in the history
  • Loading branch information
iltis42 committed May 19, 2024
1 parent 4bb4e1a commit 3efc766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ void readSensors(void *pvParameters){
char log[SSTRLEN];
sprintf( log, "$SENS;");
int pos = strlen(log);
sprintf( log+pos, "%ld;%ld;%.1f;%.1f;%.1f;%.1f;%.3f;%.3f;%.3f;%.3f;%.3f;%.3f", _millis, _millis - _gps_millis, bp, tp, dynamicP, T, IMU::getGliderAccelX(), IMU::getGliderAccelY(), IMU::getGliderAccelZ(),
sprintf( log+pos, "%ld;%ld;%.3f;%.3f;%.3f;%.2f;%.3f;%.3f;%.3f;%.3f;%.3f;%.3f", _millis, _millis - _gps_millis, bp, tp, dynamicP, T, IMU::getGliderAccelX(), IMU::getGliderAccelY(), IMU::getGliderAccelZ(),
IMU::getGliderGyroX(), IMU::getGliderGyroY(), IMU::getGliderGyroZ() );
if( compass ){
pos=strlen(log);
Expand Down

0 comments on commit 3efc766

Please sign in to comment.