From 8549d793c450aff3b0ce18173665011077136402 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 29 Apr 2023 09:01:10 -0400 Subject: [PATCH] only send on Serial1 --- cubesatsim/cubesatsim.ino | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 7648c747..7bac5056 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -3030,7 +3030,7 @@ void payload_OK_only() // first_time = false; if (bmePresent) { - Serial.print("START_FLAGOK BME280 "); + Serial.print("OK BME280 "); Serial.print(bme.readTemperature()); Serial.print(" "); Serial.print(bme.readPressure() / 100.0F); @@ -3075,8 +3075,8 @@ void payload_OK_only() Serial.print(" "); Serial.print(Sensor3,2); Serial.print(" MQ "); - Serial.print(sensorValue); // ,0); - Serial.println(" END_FLAG"); + Serial.println(sensorValue); // ,0); + if (mpuPresent) { float rotation = sqrt(mpu6050.getGyroX()*mpu6050.getGyroX() + mpu6050.getGyroY()*mpu6050.getGyroY() + mpu6050.getGyroZ()*mpu6050.getGyroZ()); float acceleration = sqrt(mpu6050.getAccX()*mpu6050.getAccX() + mpu6050.getAccY()*mpu6050.getAccY() + mpu6050.getAccZ()*mpu6050.getAccZ()); @@ -3172,7 +3172,7 @@ void payload_OK_only() if (true) // always send payload data over serial { if (bmePresent) { - Serial1.print("OK BME280 "); + Serial1.print("START_FLAGOK BME280 "); Serial1.print(bme.readTemperature()); Serial1.print(" "); Serial1.print(bme.readPressure() / 100.0F); @@ -3217,8 +3217,8 @@ void payload_OK_only() Serial1.print(" "); Serial1.print(Sensor3,2); Serial1.print(" MQ "); - Serial1.println(sensorValue); //,0); - + Serial1.print(sensorValue); //,0); + Serial1.println("END_FLAG"); blink(50); delay(50);