ICSPACE20 launch ready
This is code that is ready for launching on ICSPACE20
- Hardcode all the Lora keys into flash so that it never has to receive an rx from ground stations to tx data. Uses ADR instead of OTAA.
- Updated gps drivers. It is much more reliable with better fault handling. It is a C port of the SparkFun U-blox library along with custom settings which we have successfully used so far.
- Updated geofence driver to make it more readable and uses more standardised C structures
- Saves Geofence location to eeprom with every fix. The next morning, if the device does not get a gps fix early in the morning, it will use the same lora regional settings as its last setting and transmit(without gps info i.e. longitude = 0, latitude = 0).
- Tx Frame count is saved to eeprom so it only increments, even if it looses power over night. It will not reset to zero if it looses power.