|
|
|
|
@ -3215,6 +3215,11 @@ void payload_OK_only()
|
|
|
|
|
Serial1.print(" MQ ");
|
|
|
|
|
Serial1.println(sensorValue); //,0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
blink(50);
|
|
|
|
|
delay(50);
|
|
|
|
|
blink(50);
|
|
|
|
|
|
|
|
|
|
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());
|
|
|
|
|
|