Changed project to make use of symlinks for the INO file.

This commit is contained in:
jakeg00dwin 2024-09-26 16:37:36 -07:00
parent ec1e504edf
commit 2f9fb1202d
3 changed files with 7 additions and 8 deletions

1
multi-tracker.ino Symbolic link
View File

@ -0,0 +1 @@
./src/main.cpp

View File

@ -1,7 +0,0 @@
#include "stdio.h"
int main(int argc, char **argv)
{
printf("Hello!\n");
return 0;
}

View File

@ -9,6 +9,9 @@
#include <TinyGPS++.h> // Library to handle GPS data #include <TinyGPS++.h> // Library to handle GPS data
#include <SoftwareSerial.h> // Software serial for GPS communication #include <SoftwareSerial.h> // Software serial for GPS communication
#include <RH_RF95.h> // #include <RH_RF95.h> //
//#include "Radio/Radio.h"
#include "inc/board_config.h"
// MAGNETOMETER (LIS2MDL) CONFIGURATION // MAGNETOMETER (LIS2MDL) CONFIGURATION
@ -61,7 +64,6 @@ NodeId node = {
}; };
uint8_t reciver_buffer[RF95_BUF_SZ]; uint8_t reciver_buffer[RF95_BUF_SZ];
void Radio_setup(void) { void Radio_setup(void) {
pinMode(RFM95_RST, OUTPUT); pinMode(RFM95_RST, OUTPUT);
digitalWrite(RFM95_RST, HIGH); digitalWrite(RFM95_RST, HIGH);
@ -79,6 +81,7 @@ void Radio_setup(void) {
rf95.setTxPower(RF95_MIN_DB, false); rf95.setTxPower(RF95_MIN_DB, false);
} }
void Radio_reset(void) { void Radio_reset(void) {
digitalWrite(RFM95_RST, LOW); digitalWrite(RFM95_RST, LOW);
delay(10); delay(10);
@ -119,6 +122,8 @@ int Radio_SendData() {
rf95.setModeIdle(); rf95.setModeIdle();
} }
int Radio_ReceiveData() { int Radio_ReceiveData() {
//Set radio into RX mode. //Set radio into RX mode.
rf95.setModeRx(); rf95.setModeRx();