ICSPACE24
This is for the launch of ICSPACE24. It will be launched from Felixstowe when the weather is good.
Few bug fixes and new features
- Fixed bug where first packet after boot did not have any data. Now every packet will have data
- Send playback data only from the last 15 days, instead of the last n saved positions
- Use different source of randomness for the rand()
- Timestamps of saved positions are sent as a delta of the current time(time in the metadata of TTN packet). Saves 1 byte per timestamp. Therefore increasing number of past positions sent per packet from 12 to 13
- Use different datarates depending on region. Sends on DR5 over EU and DR4 over rest of world. Try hard to stick to TTN airtime limits
- Make GPS send 0s when it does not get a fix. So that the time deltas can be correctly calculated.
- Put in hardware watchdog
- Ensure both the FIRST and LAST gps fixes of day are saved to EEPROM. Only First fix used to be saved.
- Cleaned up the implemention of
bsp.c
- MCU never goes in to low power mode, even when not transmitting or polling sensors. This is to ensure it is always servicing the watchdog.