|
|
|
|
@ -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");
|
|
|
|
|
}
|
|
|
|
|
|