pull/294/head
Alan Johnston 2 years ago committed by GitHub
parent 45fd6742d0
commit c0b5a01759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,5 @@
// Use this template for adding additional sensors
// put your library includes here
#include "Adafruit_SI1145.h"
#include <Adafruit_LIS3MDL.h>
@ -46,15 +45,12 @@ void payload_loop() {
Serial1.print(uv.readVisible()); // Serial1 sends the sensor data to the Pi Zero for transmission
Serial1.print(" ");
Serial1.print(uv.readIR());
// Serial1.print(" ");
Serial.print(" SI ");
Serial.print(uv.readVisible()); // Serial sends the sensor data to the Serial Monitor for debugging
Serial.print(" ");
Serial.print(uv.readIR());
// Serial.print(" ");
} else
{
} else {
Serial1.print(" SI 0.0 0.0");
Serial.print(" SI 0.0 0.0");
}
@ -68,8 +64,7 @@ void payload_loop() {
Serial1.print(" LI ");
Serial.print(magRawAbs);
} else
{
} else {
Serial1.print(" LI 0.0");
Serial.print(" LI 0.0");
}

Loading…
Cancel
Save

Powered by TurnKey Linux.