Sam Hatfield
249279c56e
Added python parser for raw pico tracker data.
...
I haven't rigorously tested it, but the fact that the data starts in
Montpelier on the 25th, and it correctly decodes the APRS test longitude of
'<*e7' to -72.75 degrees is promising.
2015-08-01 00:10:59 +01:00
Richard Meadows
eb1ad8d872
UBSEDS9 pre-flight
2015-07-25 02:20:30 +01:00
Richard Meadows
cdb58d037c
Backlog is once per hour
2015-07-25 02:03:14 +01:00
Richard Meadows
efd465b420
Make backlog pointer null pointerness more obvious
2015-07-25 01:54:56 +01:00
Richard Meadows
aa757ef05d
Add backlog_read testcase
2015-07-25 01:54:24 +01:00
Richard Meadows
9e1a7c0c71
Invalidate bad backlog items as they're read from memory
2015-07-25 01:53:54 +01:00
Richard Meadows
2f977f9740
Set watchdog max_idle limits for flight
2015-07-24 23:20:51 +01:00
Richard Meadows
ec4829ea43
Enabled aprs parameters for flight
2015-07-24 23:18:16 +01:00
Richard Meadows
5960908457
Updated and ran location_aprs_file tc
2015-07-24 23:17:00 +01:00
Richard Meadows
87aa64e81d
Fix location_aprs_file test case for integer params
2015-07-24 23:09:26 +01:00
Richard Meadows
f2f39bad79
[Ooops] Fix logical error from eaa6469
2015-07-24 22:57:13 +01:00
Richard Meadows
1f0e8e1900
location.c now deals in integer only (apart from the point in poly itself), fix testcases to match
2015-07-24 22:56:16 +01:00
Richard Meadows
eaa64690b7
Timeout and retries on gps position and time. Lock and wait for hardware reset after 5 tries
2015-07-24 20:25:57 +01:00
Richard Meadows
8cff9a91fd
Pass lon/lat to geofence update functions as 100 nanodeg int32_t instead of float
2015-07-22 22:56:33 +01:00
Richard Meadows
3165b5dbbd
Use telemetry geofence. Run fence every five minutes
2015-07-22 22:39:48 +01:00
Richard Meadows
2be1e3344e
Added no telemetry geofence for China, NK and Yemen. Added test case
2015-07-22 22:33:51 +01:00
Richard Meadows
276d50f82f
Telemetry wakeup is delayed until the battery reaches 3.3V.
...
Ensures we have the battery capacity (the 3.3 - 3V region) before the voltage watchdog cuts off the 1.8V rail
2015-07-21 19:36:16 +01:00
Richard Meadows
fa5a7d623e
[Ooops] Added sequence number to aprs telemetry
2015-07-19 21:56:48 +01:00
Richard Meadows
5f996d5dc9
Fix xosc error for earlier change to double edged gps timepulse events.
...
Xosc measurement now takes 0.5s, resolution is 4Hz again
2015-07-19 00:00:38 +01:00
Richard Meadows
b8c382ba9f
Enlarge the no-aprs zones so even with lower resolution aprs is never active within no-aprs countries
2015-07-18 23:55:26 +01:00
Richard Meadows
b7009de48b
Added checksum to backlog
2015-07-18 22:58:28 +01:00
Richard Meadows
7acb3d82e7
Now this saves some startup time on the pips. We can actually shortern them with the time we've saved
...
In future potentially keep the si in standby mode rather than shutdown mode. This saves startup time, but could be a reliabilty issue as the si isn't getting a full hw reset each cycle. Probably don't bother, it doesn't matter that much
2015-07-18 22:58:11 +01:00
Richard Meadows
2df3eaf783
Pre-calculate si settings for each frequency. Apparently this only shaves 2 ms off the startup time but hey
2015-07-18 22:30:57 +01:00
Richard Meadows
a734ffef5b
Added crc32 and test case
2015-07-18 21:25:52 +01:00
Richard Meadows
7cef644d4c
Tested and improved gps baud error test
2015-07-18 17:37:48 +01:00
Richard Meadows
413e116707
Added backlog replay threshold, currently one day
2015-07-18 17:03:45 +01:00
Richard Meadows
93dd085729
Tidy compilation warning
2015-07-18 16:55:58 +01:00
Richard Meadows
f6a5aea1fe
Added pre-flight note about hardware watchdog
2015-07-18 16:55:20 +01:00
Richard Meadows
b543316b42
Interrupt on both edges of the gps timepulse to ensure we hit the hardware watchdog often enough. Also control the external WDI line as an awake/asleep trigger for debugging.
...
This introduces a uncertainty of ±0.5s on the internal time, but we can ignore that for the moment
2015-07-18 16:53:25 +01:00
Richard Meadows
f7221454f0
Reduce resolution of APRS outlines
2015-07-18 16:34:28 +01:00
Richard Meadows
84b243b772
[Ooops] Fixed underflow
2015-07-18 13:29:27 +01:00
Richard Meadows
7a94195d95
Culled various compiler warnings
2015-07-16 21:00:56 +00:00
Richard Meadows
d767cc405d
Implemented full internal time representation increment
2015-07-16 20:50:50 +00:00
Richard Meadows
bbdd0b68ee
Added note about `MAXIDLE` values, set to conservative value of 0xFFFF
2015-07-16 20:32:18 +00:00
Richard Meadows
c40105dacb
Improved gps error handling, more work to do here however
2015-07-16 20:19:35 +00:00
Richard Meadows
c2118dbdc4
Only `ticks` value in cron interrupt handler, keep internal time representation out of the ISRs
2015-07-16 19:45:06 +00:00
Richard Meadows
5dc81aa104
Also use GPS_GCLK define for loopback test
2015-07-15 21:14:02 +00:00
Richard Meadows
1ec501566a
Semaphore to stop internal time representation incrementing mid-update
2015-07-14 21:41:04 +00:00
Richard Meadows
ea2f7b5c27
Moved gps usart over to glck1 (txco). Should be more stable. Added (untested) test case to check baud rate accuaracy
2015-07-14 20:46:03 +00:00
Richard Meadows
f3b0510d76
[Ooops] Start aprs backlog with time like DDHHmmz, not DDHHss that would be silly
2015-07-12 15:05:30 +01:00
Richard Meadows
4baae8e99e
Fixed solar adc reading
2015-07-12 15:02:59 +01:00
Richard Meadows
cca08c4a78
Differentiate init for testcase runs. For testcases don't init regular interrupts that could get in the way
2015-07-12 14:54:20 +01:00
Richard Meadows
0ae86affac
Update aprs rf_test for new interface
2015-07-12 14:52:43 +01:00
Richard Meadows
cd46495152
Fixed a couple of APRS timing/format issues. APRS txes after rtty, on 144.8 when geofence is disabled
2015-07-12 00:17:04 +01:00
Richard Meadows
c3ce6a5bae
[Ooops] Add include
2015-07-11 20:17:58 +01:00
Richard Meadows
90363c6b6e
Added APRS_USE_GEOFENCE flag
2015-07-11 20:17:46 +01:00
Richard Meadows
5aea2ccd50
Improved RSID with new si filter profile, leave some time for si startup
2015-07-11 20:07:30 +01:00
Richard Meadows
a518ed92f9
Added write to the si modem DSM_CTRL register, allow even deviation values (potentially could lead to spurs but probs not)
2015-07-11 12:51:34 +01:00
Richard Meadows
f1babfd5a8
Updated README, added some note to pre-flight checklist
2015-07-05 21:20:30 +01:00
Richard Meadows
9b2e462e81
Added solar power to telemetry string
2015-07-05 20:51:00 +01:00
Richard Meadows
351a949401
Enable low power mode when solar panels attached
2015-07-05 20:49:07 +01:00
Richard Meadows
1f812b5a00
[bugfix] lat, lon and altitude should all be signed values!
2015-07-05 20:48:31 +01:00
Richard Meadows
f01361ff37
Re-instate kick
2015-07-04 20:58:03 +01:00
Richard Meadows
5d6d35d9dc
Increase the frequency of the internal watchdog gclk so we don't get massive lag when kicking it. Also fix up varous timing issues / speed things up
2015-07-04 20:47:58 +01:00
Richard Meadows
7b48a48881
Re-arranged cron a little, tasks now run after comms runs. Watchdog still being triggered for gps get position etc. Maybe need to wake on both edges of timepulse?
2015-07-04 00:39:33 +01:00
Richard Meadows
28d1d18541
Longer pips
2015-07-03 23:44:22 +01:00
Richard Meadows
08e3d30c25
Brought up gps on new hw, various bugfix, pre-calculate telemetry timer counts and more
2015-07-03 23:40:47 +01:00
Richard Meadows
b65216498d
Telemetry less often when solar power is off
2015-07-03 15:01:23 +01:00
Richard Meadows
cde21d13f9
Added solar to adc, adc now runs on interrupt, added test case. TODO adc paramter tuning
2015-07-03 12:46:33 +01:00
Richard Meadows
4429c0670d
Added backlog recording and playback over aprs
2015-07-01 22:07:35 +01:00
Richard Meadows
1c9385b612
Added backlog unit and test case. Also mem_erase_all testcase
2015-07-01 19:17:55 +01:00
Richard Meadows
c5d780b0eb
Add base-91 telemetry to aprs
2015-06-30 17:18:00 +01:00
Richard Meadows
879e64e4ef
Today I learnt some c-foo
2015-06-30 16:23:53 +01:00
Richard Meadows
a834db5f1f
Fix point_in_poly. We need to interpolate along diagonal boarder lines which is kinda going to need floating point
2015-06-29 22:08:31 +01:00
Richard Meadows
88087381eb
Added a new test case that allows us to plot points processed on the ARM CM0+ back in the ipython notebook
2015-06-29 22:06:58 +01:00
Richard Meadows
af531b09fe
Added mem write all test case
2015-06-29 19:54:01 +01:00
Richard Meadows
879f20ad3e
location_aprs test now uses pre-defined list of interesting locations
2015-06-29 19:53:05 +01:00
Richard Meadows
df1423c581
Call the watchdog in idle loops
2015-06-28 23:20:55 +01:00
Richard Meadows
ebafb09f98
Tidied spi.c. We're only ever going to use master mode
2015-06-28 23:05:22 +01:00
Richard Meadows
c1c5d8b4eb
Display runtime for test cases
2015-06-28 22:39:18 +01:00
Richard Meadows
f58cc8f417
New test case for whole memory
2015-06-28 22:26:33 +01:00
Richard Meadows
48eebb798a
Memory checks exact JEDEC ID
2015-06-28 20:07:28 +01:00
Richard Meadows
fc9713cb08
Added tests for memory, new test make now adds #inlcude to tmain.c
2015-06-28 20:06:45 +01:00
Richard Meadows
ed27b1c0b2
Added makefile for making new tcs
2015-06-28 19:13:15 +01:00
Richard Meadows
68aca94548
Added optional gdb info for tests
2015-06-28 18:50:33 +01:00
Richard Meadows
b7d51b7f62
Can now run individual test cases on hw
2015-06-28 18:46:04 +01:00
Richard Meadows
a4b336c1b5
Updated various sercom definitions
2015-06-28 17:37:57 +01:00
Richard Meadows
b63c6ca88d
Droped timepulse handler priority to allow GPS functions to run in handler
2015-06-28 00:25:40 +01:00
Richard Meadows
66d0efb318
Initial implementation of memory drivers
2015-06-28 00:24:17 +01:00
Richard Meadows
c7d9054c3d
Align gps timepulse with the top of the utc second
2015-06-27 19:16:19 +01:00
Richard Meadows
4dde7ed37c
Refactor. System now runs on a "cron" architecture that is aligned to UTC
2015-06-27 19:06:18 +01:00
Richard Meadows
6e584b2ad3
Added rf tests, confirmed aprs deviation and added notes
2015-06-26 12:15:30 +01:00
Richard Meadows
c5a01bab25
Fixed APRS pre-emphasis using custom FIR filter. Not sure on the deviation yet but it looks good in audacity
2015-06-26 01:37:26 +01:00
Richard Meadows
4fb5a30e5f
Added slightly different string when testing
2015-06-26 01:36:25 +01:00
Richard Meadows
28c044f95f
Added altitude to aprs geofence. APRS always enabled below 200m
2015-06-25 19:49:47 +01:00
Richard Meadows
3cda2aba21
Use aprs deviation define
2015-06-25 19:42:10 +01:00
Richard Meadows
e96b3eda63
Use a marco define to set APRS deviation. TODO: different deviations for mark/space
2015-06-25 18:53:42 +01:00
Richard Meadows
42f03fc16f
Set APRS deviation to a sensible value
2015-06-25 18:23:04 +01:00
Richard Meadows
45ada71f11
Doubled the frequency of GCLK1. Doubles the resoultion of the tcxo error measurement
2015-06-25 18:17:15 +01:00
Richard Meadows
5186d5f3df
Switched tc5 aprs to 16-bit mode to reduce error. Reduced pre-scaler
2015-06-25 18:16:24 +01:00
Richard Meadows
158e8e618a
Patched up the mess the adc code is in, added ADC definitions for new hw in hw_config
2015-06-25 17:15:31 +01:00
Richard Meadows
e7602eab03
Refactored SI406X defines to SI4xxx
2015-06-25 16:47:13 +01:00
Richard Meadows
31edebc9e0
RF power set in hw_config, full power for APRS. RF tests in separate file, aprs shuts stops on error correctly
2015-06-25 16:41:35 +01:00
Richard Meadows
9f6aa97ba4
Made separate init file
2015-06-25 13:28:50 +01:00
Richard Meadows
4f33da8740
Started new watchdog and init process.
2015-06-24 22:44:07 +01:00
Richard Meadows
3e87c0b877
Updated hw_config for new 0.98x.x hw
2015-06-24 21:37:57 +01:00
Richard Meadows
3dcff46eb0
ascii arrrt
2015-06-21 13:33:33 +01:00
Richard Meadows
5c1c88fdc1
Added more things to clock map
2015-06-21 13:32:41 +01:00
Richard Meadows
6436e6b6eb
Attempt to tidy markdown
2015-06-21 13:22:13 +01:00
Richard Meadows
8ee45d952e
Changed interrupt priorities to make telemetry symbol timing the top interrupt
2015-06-21 13:20:51 +01:00