From 9ded5bee0f966c2a999689064ca6a616e27a7939 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 4 Jul 2022 08:57:51 -0400 Subject: [PATCH] Update cubesatsim.ino --- cubesatsim/cubesatsim.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index f493f76d..267de899 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -1682,7 +1682,7 @@ void read_payload() // print_string(str); if (bmePresent) // sprintf(str, "%4.2f %6.2f %6.2f %5.2f ", - sprintf(str, "%.2f %.2f %.2f %.2f ", + sprintf(str, "%.1f %.2f %.1f %.2f ", bme.readTemperature(), bme.readPressure() / 100.0, bme.readAltitude(SEALEVELPRESSURE_HPA), bme.readHumidity()); else sprintf(str, "OK BME280 0.0 0.0 0.0 0.0 "); @@ -1692,7 +1692,7 @@ void read_payload() mpu6050.update(); // sprintf(str, " MPU6050 %5.2f %5.2f %5.2f %5.2f %5.2f %5.2f ", - sprintf(str, " MPU6050 %.2f %.2f %.2f %.2f %.2f %.2f ", + sprintf(str, " MPU6050 %.1f %.1f %.1f %.1f %.1f %.1f ", mpu6050.getGyroX(), mpu6050.getGyroY(), mpu6050.getGyroZ(), mpu6050.getAccX(), mpu6050.getAccY(), mpu6050.getAccZ()); strcat(payload_str, str);