Same as extended for comparison

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

@ -1,5 +1,6 @@
// code for Pico or Pro Micro or STM32 on the CubeSat Simulator STEM Payload board // code for Pico or Pro Micro or STM32 on the CubeSat Simulator STEM Payload board
// works wih CubeSatSim software v1.3.2 or later // works wih CubeSatSim software v1.3.2 or later
// extra sensors can be added in payload_extension.cpp
#include <Wire.h> #include <Wire.h>
#include <Adafruit_Sensor.h> #include <Adafruit_Sensor.h>
@ -59,6 +60,9 @@ bool show_gps = true; // set to false to not see all messages
float flon = 0.0, flat = 0.0, flalt = 0.0; float flon = 0.0, flat = 0.0, flalt = 0.0;
void get_gps(); void get_gps();
extern void payload_setup();
extern void payload_loop();
void setup() { void setup() {
#ifdef ARDUINO_ARCH_RP2040 #ifdef ARDUINO_ARCH_RP2040
@ -162,7 +166,7 @@ void setup() {
Serial.println(((float)eeprom_word_read(3)) / 100.0, DEC); Serial.println(((float)eeprom_word_read(3)) / 100.0, DEC);
#endif #endif
} }
/**/ payload_setup();
} }
void loop() { void loop() {
@ -292,6 +296,8 @@ void loop() {
led_set(blueLED, LOW); led_set(blueLED, LOW);
} }
payload_loop();
// Serial1.println(" "); // Serial1.println(" ");
Serial1.println(sensor_end_flag); Serial1.println(sensor_end_flag);
Serial.println(" "); Serial.println(" ");

Loading…
Cancel
Save

Powered by TurnKey Linux.