Wykres commitów

874 Commity (master)

Autor SHA1 Wiadomość Data
Eric Westphal 043f334dc2 More robust initialization of baro ewma for ROC calc. 2017-03-05 09:13:18 -05:00
cyoung 0360e506ec Use netMutex to protect dhcpLeases, pingResponse, and outSockets. 2017-03-03 11:00:05 -05:00
Eric Westphal 3d0ce092ab Re-run sensor calibration when caged. 2017-02-27 20:59:05 -05:00
Eric Westphal 787250b95f Slightly better location for stopping AHRS. 2017-02-27 20:58:45 -05:00
Eric Westphal cd6b708007 Better AHRS initialization behavior when sensors not yet calibrated. 2017-02-27 20:34:02 -05:00
Eric Westphal 4d31c3940c Initialize AHRSProvider using modified Reset interface. 2017-02-27 20:28:05 -05:00
Eric Westphal 4bd6544cc0 AHRS_Provider gets a Reset method. 2017-02-27 18:07:14 -05:00
Eric Westphal 34396a36e5 Fix panic and lack of reconnect when Sensors switch toggled. 2017-02-22 16:54:13 -05:00
Eric Westphal f39c58ca3d netMutex becomes RWMutex, protects some additional reads. 2017-02-22 15:10:15 -05:00
Eric Westphal 2ba3f136bb Change http status messages for go1.5.1 compatibility. 2017-02-17 11:11:27 -05:00
Eric Westphal f2cfe3344b Re-do sensor orientation setting method. 2017-02-16 16:57:30 -05:00
Eric Westphal e78afed4d4 Remove SensorLogger, some log messages. 2017-02-16 16:56:42 -05:00
Eric Westphal 2cf49218bd Increase GPS update cycle to 10Hz. 2017-02-15 16:10:52 -05:00
Eric Westphal 079dfc0e00 Increase AHRS calculation cycle to 20Hz for 10Hz GPS updates. 2017-02-15 16:09:09 -05:00
Eric Westphal 9b180e2f25 AHRS tracks GPS time separately from sensor time. 2017-02-13 16:01:43 -05:00
Eric Westphal a5aa50f44f AHRS logging uses AHRSProvider built-in logging. 2017-02-13 15:15:45 -05:00
Eric Westphal 261dd637e0 Missing continue. 2017-02-13 14:26:29 -05:00
Keith Tschohl 71a9c06a29 Add parsing of UAT SIL, SDA, NACv, and In capability to verbose logs 2017-02-13 04:26:15 +00:00
Keith Tschohl 318e883db5 Add emergency status to traffic msgs; additional UAT statistics; cleanup 2017-02-13 03:37:51 +00:00
Eric Westphal 99cdda2219 ahrsweb Kalman Listener Send fails more nicely. 2017-02-12 17:06:36 -05:00
Eric Westphal 5ab394b31d Add Cage button to Attitude Indicator/AHRS. 2017-02-12 17:06:03 -05:00
Eric Westphal 59da452770 Add mutex to pingResponse map to prevent panics with Go>1.5. 2017-02-11 15:20:47 -05:00
Eric Westphal d17e218324 gdl90Report uses Gyro_heading. 2017-02-10 16:45:55 -05:00
Keith Tschohl 950c0594bf Disable sqlite logs when using UAT playback 2017-02-10 06:28:22 +00:00
Keith Tschohl f423f2c74e Determine UAT version. Proper decoding of callsign vs Mode 3/A code 2017-02-10 06:17:27 +00:00
Keith Tschohl 4201bb1ec3 Fix UAT track calculation when one velocity component = 0 2017-02-10 03:55:26 +00:00
Eric Westphal ba0440c49b Validate sensor calibration. 2017-02-07 21:35:59 -05:00
cyoung a37d0f9ae3 Merge branch 'master' into developer_mode_add_loghandling 2017-02-02 22:28:16 -05:00
cyoung 490e3d9900 Merge pull request #557 from AvSquirrel/10Hz-gps
GPS configuration and detection improvements
2017-01-30 00:27:24 -05:00
Eric Westphal 5e0f586f8a Lighten logging, longer timeout for GPS. 2017-01-21 12:39:06 -05:00
Eric Westphal 0e14b82ddb Show CPU load on UI status page. 2017-01-16 22:25:26 -05:00
Eric Westphal b1351af740 A little more logging. 2017-01-16 18:25:53 -05:00
Eric Westphal 3c16945c92 Set orientation of AHRS sensor in UI. 2017-01-16 18:22:57 -05:00
Eric Westphal 352c9eb79c sensorAttitudeSender is a little more robust. 2017-01-08 23:01:34 -05:00
Eric Westphal b6fef3ca9a sensors.go gets sensor orientation from globalSettings. 2017-01-08 12:11:51 -05:00
Eric Westphal af2ea7196b Make pressure reader work again. 2017-01-08 10:14:24 -05:00
Eric Westphal a6642353d7 Add Enable_Sensors to settings UI 2017-01-07 08:05:37 -05:00
Eric Westphal 601efa9023 Start managementinterface earlier to avoid nil 2017-01-07 08:01:15 -05:00
Eric Westphal b615a0370b Move satelliteMutex into Situation alongside other Mutexes 2017-01-07 07:59:00 -05:00
Eric Westphal 9f9298734d Hack to avoid race condition, for now. 2017-01-05 23:01:00 -05:00
Eric Westphal 84e81bbd3b Correct multiplier for climb rate 2016-12-29 15:12:19 -06:00
Eric Westphal a3a811aa53 First working commit merging latest cyoung/master into westphae/dev 2016-12-29 06:33:11 -06:00
Keith Tschohl df22888465 Regression window tweaks 2016-12-26 15:54:05 +00:00
Keith Tschohl 7063c73ba7 Reset accuracy and NACp on GPS disconnect. Add sample rate to GPS UI page. 2016-12-26 07:30:46 +00:00
Keith Tschohl c84abec96f Report GPS position rate (Hz). Tweak gpsattitude filter. Cleanup. 2016-12-26 06:37:33 +00:00
Keith Tschohl 6544562913 Refined GPS detection. Updated gpsatttitude copyright notice 2016-12-25 19:00:01 +00:00
Keith Tschohl 529079368a 10 Hz default UBX config. Enable GLONASS multi-GNSS on UBX8 2016-12-25 08:36:40 +00:00
Jon Vadney 6198fc2ce3 add ability to set static ip from web ui when in dev mode 2016-12-25 07:03:56 +00:00
Jim Jacobsen 6de246d789 removed reopenLogFile it is unused 2016-12-20 22:57:09 -06:00
Christopher Young 3e663c89c8 Limit number of traffic target reports sent in a single packet. 2016-12-14 20:52:16 -05:00
Eric Westphal cd2aadc0e3 Modifications for compatibility with simple AHRS 2016-12-12 18:12:40 -05:00
Christopher Young ef56848715 Resolve conflicts. 2016-12-12 10:16:46 -05:00
Christopher Young 18de46745e Missing include. 2016-12-09 10:14:56 -05:00
Christopher Young 316cbf2329 Add DHCP lease directory write testing and webui error.
#500, #540.
2016-12-09 09:22:10 -05:00
Christopher Young 9e8d20e3da Use decoded ADS-B Out message from Ownship for Ownship 0x0A message data, if available. 2016-12-02 10:57:40 -05:00
Christopher Young c19d32353f Typo. 2016-11-27 14:46:26 -05:00
Christopher Young 5c70640eac Standardize TODOs. 2016-11-23 15:50:41 -05:00
Eric Westphal d1607e0729 Support the BMP280 2016-11-23 10:34:41 -05:00
Christopher Young ff7a7a2781 Undo a few non-webui related changes. #531. 2016-11-22 23:33:39 -05:00
Jim Jacobsen 1bf4de80a2 Move timer calls to bottom of routines, makes the web interface a lot more responsive 2016-11-23 03:14:45 +00:00
Christopher Young ebfb671142 Rename ry835ai.go to gps.go. 2016-11-17 19:14:33 -05:00
Christopher Young 360845b454 Misc cleanup. 2016-11-17 19:10:59 -05:00
Christopher Young d7498169ed Misc cleanup. 2016-11-17 19:02:55 -05:00
Christopher Young 0ed4c0bfb7 Remove globalSettings.AHRS_Enabled. 2016-11-17 19:01:03 -05:00
Christopher Young d60248b660 Remove globalStatus.RY835AI_connected. 2016-11-17 18:56:15 -05:00
Christopher Young bc830b0a4e Remove mpu6050 references. 2016-11-17 18:49:18 -05:00
Christopher Young 6c50a96347 Remove 'AHRS_GDL90_Enabled' option. 2016-11-17 18:18:16 -05:00
cyoung a473cca229 Merge pull request #527 from cyoung/master
Merge master.
2016-11-17 18:10:42 -05:00
Christopher Young 564bf93c63 Cleanup. #526. 2016-11-17 12:46:48 -05:00
Christopher Young 57e7c6d0a9 Formatting.
#526.
2016-11-17 12:43:47 -05:00
Christopher Young 12df162b25 Manual merge. 2016-11-17 12:42:24 -05:00
Jim Jacobsen 7a801c6a06 oops again 2016-11-17 07:41:10 +00:00
Jim Jacobsen 2b3d06eafa Fixed JSON call 2016-11-17 07:25:36 +00:00
Jim Jacobsen 3a5a5e5048 GDL90 JSON interface stratux changes 2016-11-17 07:09:18 +00:00
Christopher Young a777e7d462 Manual merge. 2016-11-16 16:15:30 -05:00
Christopher Young 73d7cdbe1d weatherRawUpdate uibroadcast - send UATFrame as received. 2016-10-24 17:28:57 -04:00
Christopher Young 386be11b8c Subscribe /jsonio socket for situation updates. 2016-10-24 16:05:30 -04:00
Christopher Young f5ebf4c43d Use uibroadcast.SendJSON(). 2016-10-24 15:40:30 -04:00
Christopher Young a949bda34f Add mySituation uibroadcast. 2016-10-24 15:38:05 -04:00
Christopher Young 504d97ec7a Add SendJSON() to uibroadcaster. 2016-10-24 15:36:54 -04:00
Christopher Young 27206c0751 Formatting. 2016-10-24 15:28:44 -04:00
Christopher Young d433881b0b Formatting. 2016-10-24 15:27:48 -04:00
Christopher Young 04ee9d8b1b Formatting. 2016-10-24 15:22:57 -04:00
Jim Jacobsen 7239e81418 Initial support for NEXRAD data, added support for JSON types 2016-10-23 23:38:13 -05:00
Jim Jacobsen 601e21c564 Added logfile truncation and download buttons to developer mdoe screen 2016-10-23 11:04:18 -05:00
Jim Jacobsen 1e9cff43c8 This saves developermode to settings when it is activated 2016-10-20 20:52:11 +00:00
Christopher Young 20ada0a9d7 Cleanup. 2016-10-18 20:29:31 -04:00
Christopher Young 32f0054f72 Formatting. 2016-10-18 20:27:14 -04:00
cyoung 2679c03472 Merge pull request #504 from jamez70/developer_mode_flag_handling
Developer mode flag handling
2016-10-18 20:19:04 -04:00
Jim Jacobsen 463ecafc38 Fixed bug with help of cyoung found with running on native linux, which may show itself on the RaspberryPi at some point 2016-10-17 22:30:43 -05:00
Christopher Young ce5fe35bb7 Add current UAT/ES tracked targets count in globalStatus. 2016-10-04 23:50:44 -04:00
Jim Jacobsen bb00189e94 Added developer mode toggle by clicking on version 7 times within 3 seconds 2016-10-02 22:17:09 -05:00
Jim Jacobsen 2a76788405 Added developer menu item in addition 2016-10-01 21:03:04 -05:00
Jim Jacobsen 9f1fd88485 Added developer mode handing from /etc/stratux.conf instead, then this allows options in the status and settings pages. Would like to add a menu option for this in the future though 2016-10-01 19:59:41 -05:00
Christopher Young 8929116f00 Formatting. 2016-10-01 11:48:27 -04:00
cyoung d67f2fe1db Merge pull request #492 from jamez70/allow_static_ip_hosts
Added ability to have static IP hosts
2016-10-01 11:47:04 -04:00
Christopher Young 8f3ca19aca Add GPRMC date sanity checking. Add 'RealTime' monotonic ticker, set once by GPS time. 2016-09-29 18:30:26 -04:00
Jim Jacobsen bab827d492 Added ability to have static IP hosts 2016-09-27 23:56:17 -05:00
cyoung 2d03dde95a Merge pull request #471 from uavionix/master
Disable logging when Ping receives data
2016-09-27 17:21:04 -04:00
Christopher Young 8cef443497 Change green (ACT) LED default behavior on RPi - off = stratux not running, on = stratux running. 2016-09-26 14:34:41 -04:00
Jim Jacobsen f099336823 Fixed typo, and added TAF.AMD 2016-09-24 18:23:39 -05:00
Jim Jacobsen 2f2c3d27a3 Added UAT statistics to the status page 2016-09-24 12:17:46 -05:00
cyoung a951ea9afb Merge pull request #488 from AvSquirrel/ubx-zeroalt-fix
Workaround to allow negative GPS HAE on ublox-7. Fixes #487.
2016-09-21 09:04:25 -04:00
Christopher Young dc62a3abba Make HardwareBuild checking for updates case insensitive. 2016-09-19 18:27:19 -04:00
Christopher Young 30fe7295c4 Add automatic serialout when /dev/serialout0 is present.
/dev/serialout0 created by either inserting a CP2102-based
USB-to-Serial dongle or by symlink.
2016-09-19 12:21:39 -04:00
Keith Tschohl 9939ba986a Ignore PUBX,00 'HAE' field if it is equal to 0 2016-09-17 03:56:22 +00:00
Eric Westphal c3f002577f add ahrsweb kalman_listener for inflight monitoring of kalman filter 2016-09-16 13:36:45 -04:00
Eric Westphal 5acbcbfc32 improve ahrs kalman filter stability 2016-09-16 13:36:11 -04:00
Eric Westphal 91ed08583d Fix mapping of 9250 axes to ahrs kalman measurement 2016-09-16 13:34:44 -04:00
Eric Westphal 6e622e3abb Integrate non-control Kalman approach 2016-09-11 20:33:26 -04:00
Eric Westphal 9127c3a132 Round groundspeed 2016-09-11 20:32:10 -04:00
Eric Westphal f6880436ba Merge remote-tracking branch 'origin/master' into dev 2016-09-11 06:37:44 -04:00
Eric Westphal ea353387d9 Fix FPS from FPM 2016-09-07 22:00:28 -04:00
Christopher Young 0177402f00 Write only a single file for updates - fixes reboot loop issues.
Files with spaces and special characters were causing reboot loops.
2016-08-24 10:25:27 -04:00
Ryan C. Braun e93b90197c Remove unused fmt from imports 2016-08-20 15:05:35 -05:00
Ryan C. Braun 3cd58d20d8 Disable logging of Ping data reception 2016-08-09 14:36:01 -05:00
cyoung ff79aa5555 Merge pull request #463 from egid/egid-cleanup-426
Clean out clock UI
2016-08-05 17:07:02 -04:00
cyoung 973f576a54 Merge pull request #461 from egid/egid-gps-tweak
GPS accuracy on Status page
2016-08-05 17:05:59 -04:00
Eric Gideon ee6ca139af add horizontal GPS precision to the "GPS solution" row on the status page 2016-07-23 13:16:20 -07:00
Eric Westphal 9faf95a90b Missed a few changes to pointers in ry83Xai 2016-07-21 21:57:51 -04:00
Eric Westphal 38cb2384d7 mpu.Calibrate takes a number of retries 2016-07-21 15:16:21 -04:00
Eric Westphal c27870d2a9 Make SituationData.GroundSpeed a float 2016-07-21 15:16:02 -04:00
Eric Westphal 38b0105187 Merge branch 'gdl90report' into dev 2016-07-19 07:48:35 -04:00
Eric Westphal bf30fa147c Provide invalid GDL90Report values if AHRS invalid 2016-07-19 06:40:57 -04:00
Eric Westphal 832054bd35 Rate of Climb uses simpler ewma assuming steady data updates 2016-07-19 00:43:45 -04:00
Eric Westphal be30aefa79 Catch GDL90Report network error, useful for troubleshooting 2016-07-18 22:49:30 -04:00
Eric Westphal a7bb43d6ba Switch GDL90 report to version 1, include other goodies 2016-07-18 22:45:14 -04:00
Eric Westphal 9d133a5855 Calculate rate of climb from bmp altitude measurements 2016-07-18 22:43:44 -04:00
Eric Westphal 3b21f9685a Some Kalman tuning 2016-07-15 11:39:10 -04:00
Eric Gideon 80b373a7a4 Remove clock / clock diff row from status template; also remove from js and go. 2016-07-15 01:28:30 -07:00
Eric Westphal 92001f1e35 First commit of AHRS Kalman Filter integration, untested 2016-07-15 01:31:45 -04:00
Eric Westphal ee8c98eb50 Missing BMP won't shut down entire AHRS; make room for BMP280 2016-07-15 00:12:16 -04:00
Eric Westphal c201bdc4d8 Suggestion for network 2016-07-15 00:10:38 -04:00
Eric Westphal d91a2a10e7 Use RY835AI or RY836AI; add more fields to GDL90 report 2016-07-14 21:38:15 -04:00
Christopher Young 77ecb0d6ad Merge remote-tracking branch 'origin/master' into uavionix
# Conflicts:
#	Makefile
#	image/mkimg.sh
#	selfupdate/makeupdate.sh
2016-07-14 15:45:34 -04:00
Eric Westphal ddaf673006 Don't add one little change before pushing 2016-07-13 20:49:07 -04:00
Eric Westphal 7ee7a83a87 Change MPU to interface to allow RY835AI or RY836AI (or ....) 2016-07-13 18:42:25 -04:00
Eric Westphal c3c49b7c36 Prep for extracting interface for mpu6050 2016-07-13 16:36:33 -04:00
Christopher Young 945c8bf6bc Don't start ffMonitor() - no longer needed. 2016-07-13 15:53:02 -04:00
Christopher Young b31ed721c3 Fix more log errors. 2016-07-09 14:05:40 -04:00
Christopher Young f62d83f47f Typo. 2016-07-09 14:01:36 -04:00
Christopher Young f8fa9f5fb4 Fix some log(0) errors. 2016-07-09 13:59:41 -04:00
Christopher Young f8269f5759 Make "GPS week out of scope" warning a debug message. 2016-06-30 11:51:56 -04:00
Christopher Young 0f001da912 Remove init.d files from gen_gdl90 process. 2016-06-24 16:48:48 -04:00
Christopher Young f4a36b2df7 Throw webUI error prompting user to update image if /etc/debian_version <8.0.
#448.
2016-06-24 16:10:34 -04:00
Christopher Young e180f79855 Start Canadian regs with "C-". Formatting.
#442.
2016-06-21 12:28:49 -04:00
AvSquirrel 6d19f57e0e Add decoding of Canadian tail numbers 2016-06-20 05:07:00 +00:00
AvSquirrel efaaa8777d Decode US civil Mode S codes to N numbers 2016-06-20 03:30:40 +00:00
AvSquirrel c5f2193b87 Change FF error message back per cyoung request 2016-06-19 03:12:43 +00:00
AvSquirrel 5dc2aec687 Merge remote-tracking branch 'upstream/master' into gpsattitude-june2016 2016-06-19 03:00:08 +00:00
Christopher Young 60ec38c5bb Change 'Data' in 'msg' struct from []byte to string for logging. 2016-06-10 15:12:32 -04:00
AvSquirrel c34c107f23 Comment cleanup. Remove bloat from UI status page. 2016-06-08 03:20:43 +00:00
AvSquirrel fbc2ee16d3 Add toggle for GDL90 AHRS output. Use GDL90 AHRS toggle for FF compatibility instead of disabling AHRS hardware. 2016-06-08 02:52:00 +00:00
AvSquirrel 065836ef4c Tweak filter width. Comment out a couple of debug messages 2016-06-08 01:47:19 +00:00
AvSquirrel e5a6046660 Set logfiles for non-FlightBox installations 2016-06-08 00:20:10 +00:00
AvSquirrel 3d4dec80a4 Add GPS attitude logging to sqlite log 2016-06-08 00:10:17 +00:00
AvSquirrel cbd117d216 Initial implementation of GPS attitude on v0.9 codebase. Needs debug. 2016-06-07 13:03:25 +00:00
cyoung 94d2467e22 Merge pull request #435 from AvSquirrel/ownship-testing
Intial prototype for ownship traffic suppression. Fixes #421.
2016-05-31 09:13:11 -04:00
Christopher Young 68e2d32f1d Move tower stats processing out of parseInput(). Remove unused ADSBTower.Messages_total. 2016-05-31 09:00:02 -04:00
Christopher Young 2132585f76 Remove products_last_minute comments. 2016-05-31 08:29:06 -04:00
cyoung 8f310d0afc Merge pull request #428 from AvSquirrel/uat-mutex
Additional UAT stability improvements (tower mutex, array bounds checks)
2016-05-31 08:26:50 -04:00
Christopher Young 404a4c9c05 FlightBox additions: log to /root. 2016-05-27 16:27:22 -04:00
Christopher Young 4313e02fc7 Cleanup old logging code. Comments. 2016-05-27 16:20:20 -04:00
Christopher Young 438a947aa5 Remove extra log message. 2016-05-27 00:18:48 -04:00
Christopher Young e81c640baf Fix fatal error when can't listen on :50113 UDP. 2016-05-26 23:48:13 -04:00
Christopher Young 751d211b38 Use only /dev/ping. Formatting. 2016-05-26 23:31:06 -04:00
cyoung 3843350432 Merge pull request #427 from uavionix/master
Initial
2016-05-26 23:15:41 -04:00
AvSquirrel 5be9ec80ef Comment out 'products_last_minute' references 2016-05-24 19:48:31 +00:00
AvSquirrel f1521d6e25 Initial commit of ADSBTower mutex protection (needs testing) 2016-05-24 19:39:11 +00:00
AvSquirrel 401c372ef4 Intial prototype for ownship traffic suppression 2016-05-20 03:28:41 +00:00
AvSquirrel 7940417f1c Add u-blox 8 to udev rules. Use generic descriptions for ublox 6/7. 2016-05-19 03:48:58 +00:00
Christopher Young 7881d6c53a Move away from ttyUSB0 and use udev-specific rules.
#416.
2016-05-17 17:17:01 -04:00
cyoung 29915cb62e Merge pull request #412 from AvSquirrel/gps-backend-working
GPS improvements: Satellite info; multi-GNSS support; UI updates
2016-05-16 17:58:01 -04:00
AvSquirrel a39a870378 Bug fix for GSA SBAS 'inSolution' marking. Update comments. 2016-05-16 02:17:01 +00:00
Christopher Young b9951241a5 GetTunerGain to confirm tuner gain setting. 2016-05-13 23:58:08 -04:00
Christopher Young 86859f32f5 Typo. 2016-05-13 22:57:33 -04:00
AvSquirrel fc1870af6a Length check for PUBX,03 messages. Add inSolution status to debug messages 2016-05-14 02:32:11 +00:00
AvSquirrel f02fdf102e Add mutex lock on handleSatellitesRequest 2016-05-14 01:44:13 +00:00
Christopher Young 2231ee4972 Remove null characters from serial string.
Fixes #413.
2016-05-13 21:42:05 -04:00
AvSquirrel 4fa44bb766 Clean up web UI formatting, update GPS help file 2016-05-08 21:55:48 +00:00
AvSquirrel c202e72c1d UBX config updates; comments; clean up debug messages 2016-05-08 20:41:49 +00:00
AvSquirrel 861debafbf Improve satellite counts for multiGNSS GSA messages 2016-05-08 16:36:05 +00:00
AvSquirrel 1d4de4571f Remove more debug mesages 2016-05-08 05:33:05 +00:00
AvSquirrel 65beb92208 Re-initialize on disconnect. Improvements for multi-GNSS 'in solution' counts. 2016-05-08 05:14:20 +00:00
AvSquirrel 653bb53cf6 Add UBX support. Enable GLONASS for M8N Neo. Reduce sampling to 5 Hz 2016-05-08 01:53:12 +00:00
AvSquirrel e71ede9007 Add GLONASS support to GSV parsing 2016-05-07 20:48:02 +00:00
AvSquirrel d692c4d732 Add satellite in solution indicator 2016-05-07 15:19:42 +00:00
AvSquirrel a00e4d2afa Remove debug messages 2016-05-07 06:27:53 +00:00
AvSquirrel 34791c638a Create JSON interface for satellite constellation. 2016-05-07 05:18:10 +00:00
AvSquirrel df720ee23e Create and populate 'Satellites' structure 2016-05-06 05:50:45 +00:00
AvSquirrel a8f7728b11 Parse GPGSV fields into local variables 2016-05-05 05:16:16 +00:00
AvSquirrel 883509b076 Create Satellites data structure 2016-05-05 04:01:10 +00:00
AvSquirrel 26fce60fd4 Parse satellites tracked from GPGSV messages 2016-05-05 03:28:28 +00:00
Christopher Young 0a62fd2d9a Don't assign struct val directly. 2016-05-03 09:50:59 -04:00
Christopher Young 6db8ba6fc0 Type fix. 2016-05-03 09:39:16 -04:00
Christopher Young 64f1ae1154 Add MessageQueueLen (messageQueue length) to networkConnection struct.
Debugging for #409.
2016-05-03 09:31:57 -04:00
Christopher Young d01bdfee43 Typo. 2016-05-03 09:12:49 -04:00
Christopher Young 141045bb0e Add displayable error when SQLite logging is behind. 2016-05-03 09:05:54 -04:00
cyoung 8043ff79fd Merge pull request #410 from AvSquirrel/logging
Graceful shutdown of SQLite logs
2016-05-03 08:53:53 -04:00
AvSquirrel 29948156d6 Additional stability improvements 2016-05-03 04:59:13 +00:00
AvSquirrel 57197c55eb Split out traffic source from DEBUG. Fix panic closing closed channel. 2016-05-03 04:40:51 +00:00
AvSquirrel 5478cdaeb8 Add comments and clean up debug messages 2016-05-03 03:50:42 +00:00
AvSquirrel aaf03acd8c Close datalog.go channels on sqlite shutdown 2016-05-03 03:02:44 +00:00
AvSquirrel 24a6da3da9 Added graceful shutdown for SQLite logging 2016-05-02 05:03:21 +00:00
AvSquirrel 2dd8a14d62 Status and settings logged only when replay log enabled 2016-05-01 20:02:56 +00:00
AvSquirrel 837d98de25 Avoid false positive isGPSValid() check at startup 2016-04-29 08:54:04 -05:00
AvSquirrel 313f16e433 Improved isGPSValid(); reordered GPS port priority 2016-04-29 03:18:34 +00:00
Christopher Young d8624016f6 Track startups in sqlite. 2016-04-22 16:10:56 -04:00
AvSquirrel d83ec11ea9 Remove /dev/ttyS0 from GPS initialization 2016-04-20 03:45:24 +00:00
Christopher Young da5f5d003d Remove unused code in comments. 2016-04-19 08:51:47 -04:00
Christopher Young 827bf13fde Comments update.
#390.
2016-04-19 08:37:22 -04:00
cyoung 6545c154c2 Merge pull request #390 from AvSquirrel/traffic-backend-working
Traffic backend updates
2016-04-19 08:28:36 -04:00
bradanlane 70269dd442 trigger reboot as a webservice and redirect webui to wait on the status page for the reboot to complete 2016-04-13 12:38:37 -04:00
AvSquirrel 955fd13195 Separate ES:30006 logging into its own SQLite table 2016-04-13 05:21:05 +00:00
AvSquirrel 8b9c89542f Add distance / bearing calculation. Don't log stale traffic. 2016-04-13 04:04:28 +00:00
AvSquirrel d407c513c9 Reduce SQLite traffic to 1/sec. Backend improvements from gpsattitude branch 2016-04-13 03:41:08 +00:00
Christopher Young acee114964 Fixed race condition that caused CPUTemp = -99.00ºC. 2016-04-12 11:13:48 -04:00
Christopher Young 23619fad1b Add disk usage webUI warning. 2016-04-12 10:59:07 -04:00
Christopher Young e8f8a27bc3 Formatting (gofmt). 2016-04-12 10:38:04 -04:00
cyoung 20c09340d7 Merge pull request #376 from AvSquirrel/ownship-track
Improve ownship track accuracy. Add disk usage to logs.
2016-04-12 10:37:20 -04:00
cyoung 3f495ef0b5 Merge pull request #386 from AvSquirrel/sqlite-timestamp-slice
SQLite logging - Change dataLogTimestamps[] to slice
2016-04-12 10:30:10 -04:00
Christopher Young d9e556acba Add old Pi2 AMA0. 2016-04-11 22:52:07 -04:00
cyoung 690a03f9d2 Merge pull request #375 from AvSquirrel/geometric-ownship-fix
Fix geometric ownship alt overflow
2016-04-11 17:15:11 -04:00
AvSquirrel 002105bb39 Change dataLogTimestamps from map to slice 2016-04-10 05:21:13 +00:00
Christopher Young fffe2b7505 Change hardware-specific /dev/ttyAMA0 to more general /dev/ttyS0. 2016-04-09 22:02:18 -04:00
AvSquirrel 859e8da9c2 Additional mutex lock for insertData() 2016-04-07 22:34:01 +00:00
AvSquirrel 0de359ec0e Remove extraneous LF 2016-04-07 08:27:07 +00:00
AvSquirrel 21bc97e9b6 Add disk usage / free space to log 2016-04-07 08:21:15 +00:00
AvSquirrel 1be1c9fdcf Improved binning for ownship track message 2016-04-07 06:31:50 +00:00
AvSquirrel be3e487267 Use float for GPS track. Rebin ownship track. 2016-04-07 05:24:12 +00:00
AvSquirrel d1ebc2df1d Fix geometric ownship alt overflow 2016-04-07 04:18:57 +00:00
AvSquirrel 64b20d2bca Testing more mutex protection for checkTimestamp() 2016-04-06 09:41:23 -05:00
AvSquirrel 23e2721c90 Add datalog mutex for timestamp 2016-04-06 03:01:10 +00:00
Christopher Young 5da86d919f Comment out debugging data. 2016-04-03 14:16:00 -04:00
Christopher Young 8545a9ba0d Fix bulkInsert query logic problem. Maximum rows based on column limitation (999). Issue warning if SQLite is taking too long. 2016-04-03 14:10:42 -04:00
Christopher Young 0b1ca4b2da Fix temporary fix for generic NMEA GPS - Satellites = SatellitesTracked = SatellitesSeen. 2016-04-03 13:42:38 -04:00
Christopher Young 9607311dbe Increase batch size to 1,000 up to a maximum query size 750,000 bytes. 2016-04-02 15:57:05 -04:00
Christopher Young da4eb3dfc8 Type fix. 2016-04-02 15:40:25 -04:00
Christopher Young 1b093ef1bb INSERT speed fixes. 2016-04-02 15:33:19 -04:00
Christopher Young 980977146e Remove debugging code. 2016-04-01 18:42:28 -04:00
Christopher Young 8cc6534761 Remove debugging code. 2016-04-01 18:33:01 -04:00
Christopher Young 62dd58b07f Use batched inserts instead of prepared statements. 2016-04-01 18:25:53 -04:00
Christopher Young f1f3977e5b Used prepared statements for SQLite inserts. 2016-04-01 15:42:46 -04:00
Christopher Young dbacc6b6e7 Move db writes to a separate goroutine. 2016-04-01 14:05:23 -04:00
Christopher Young 268ea23ce5 Use tmp variable to assign. 2016-04-01 08:40:09 -04:00
Christopher Young 2bfb5d8c33 Typo. 2016-04-01 08:36:10 -04:00
Christopher Young fdbde39e96 Extrapolate GPS timestamps with stratuxClock. 2016-04-01 08:34:37 -04:00
Christopher Young b87aa52044 Batch data writes.
This will be done as part of a system where the database file is
compressed and moved periodically.
2016-04-01 08:26:37 -04:00
Christopher Young 4e5513ce95 Send traffic update to logTraffic(). 2016-03-31 20:39:02 -04:00
Christopher Young 7ad31e9414 Temp. 2016-03-26 17:25:32 -04:00