Wykres commitów

640 Commity (usb_log)

Autor SHA1 Wiadomość Data
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
Christopher Young ce1617af93 Remove further remnants of replay logging. 2016-03-26 17:24:08 -04:00
Christopher Young c6c8c22b63 Stratux plugin beginning. 2016-03-26 17:23:08 -04:00
Christopher Young 480426cdd1 Remove further remnants of replay logging. 2016-03-26 17:19:59 -04:00
Christopher Young e0f82b0a29 Data logging graceful shutdown. 2016-03-26 17:15:59 -04:00
Christopher Young 0199d49238 Move dump1090 terminal logging to datalog package. Remove remnants of replay logging. 2016-03-26 17:12:26 -04:00
Christopher Young fa28ac210c Remove UAT and ES replay logging. Add datalog functions for UAT and ES messages. 2016-03-26 16:49:57 -04:00
Christopher Young cb113cb804 Remove AHRS replay log. 2016-03-26 16:37:33 -04:00
Christopher Young aa2bd06fd0 Remove GPS replay log. 2016-03-26 16:34:02 -04:00
Christopher Young bcf20249e8 Don't log situation or traffic data unless globalSettings.ReplayLog is true. 2016-03-25 11:58:44 -04:00
Christopher Young 32097e3b61 Debug output cleanup. 2016-03-24 17:28:00 -04:00
Christopher Young a86314e883 Cleanup. 2016-03-24 17:26:59 -04:00
Christopher Young ce566ae5d3 Use stratuxClock to check timestamp age. 2016-03-24 12:59:29 -04:00
Christopher Young fbc7c6f168 Typo. 2016-03-24 12:13:08 -04:00
Christopher Young bd4f4c8743 Log status. 2016-03-24 10:51:12 -04:00
Christopher Young 5680908301 Track the last NMEA message in SituationData. 2016-03-24 10:37:24 -04:00
Christopher Young 937bbecd28 Refactoring and cleanup. 2016-03-24 10:23:29 -04:00
Christopher Young 854b96f608 More data logger boilerplate. Add to Makefile and init in main(). 2016-03-24 09:33:11 -04:00
Christopher Young 67d62184d3 Save GPSTime in SituationData struct. 2016-03-24 08:59:34 -04:00
Christopher Young bcef2ba823 Improve main logger goroutine. 2016-03-24 01:14:48 -04:00
Christopher Young 275c1740f0 Export all possible status fields. 2016-03-24 00:29:08 -04:00
Christopher Young 0a26cfc240 Export all possible SituationData fields. 2016-03-24 00:26:56 -04:00
Christopher Young 934c24ee71 Generalized logData(), added test code. 2016-03-24 00:23:12 -04:00
Christopher Young 80f1007a6a Add struct .String() marshaling. Insert data function. 2016-03-23 23:08:00 -04:00
Christopher Young e12611e8d4 Initial commit: data logger functions. 2016-03-23 12:31:13 -04:00
Christopher Young 9754f19be2 Hide more debug printing. 2016-03-23 09:19:11 -04:00
Christopher Young f1ce8a75bc Hide more debug printing. 2016-03-23 09:18:28 -04:00
Christopher Young b8c17e0460 Checking for specific hardware builds. 2016-03-22 11:43:00 -04:00
Christopher Young 1a808ca591 Redefine "connected"/"recent" clients = recently pingable hosts. 2016-03-21 20:32:24 -04:00
Christopher Young 65537dbdc8 Issue a warning and disable features when FF broadcast messages are received.
Fixes #332.
2016-03-21 16:31:56 -04:00
Christopher Young a93501f8f4 Debug output. 2016-03-21 16:16:12 -04:00
Christopher Young b2eb382c1a Remove DHCP lease expiry code.
Fixes #325.
2016-03-20 00:56:21 -04:00
Joseph Poirier dbca0fb0b0 auto init on package import 2016-03-16 06:58:01 -05:00
Christopher Young d3ee8dce97 Comment update. 2016-03-15 22:41:47 -04:00
Joseph Poirier 9d2d4850af sdr: fix type 2016-03-14 15:49:00 -05:00
Joseph Poirier c5aacf0fbd sdr: capture state locally prior to processing 2016-03-14 15:47:33 -05:00
Joseph Poirier 529b453ba2 sdr: replace Scan due to a report that it was still blocking, split stderr and stdout 2016-03-14 02:23:03 -05:00
Joseph Poirier 336d17d615 fix stray curley brace 2016-03-13 00:09:31 -06:00
Allan Feldman 5939c0c368 fix a bad merge which deleted a brace 2016-03-12 18:19:07 -08:00
Allan Feldman cf94e0c79f updated shutdown to use a separate thread to kill dump1090 2016-03-12 18:13:03 -08:00
Joseph Poirier dea3374242 sdr: handle premature dump1090 process exit 2016-03-12 16:58:11 -06:00
Joseph Poirier 10c9f73e2a fix 1090 shutdown hang, add shutdown completed messages 2016-03-11 19:29:46 -06:00
Christopher Young 4e452956dc Typos. 2016-03-10 15:03:38 -05:00
Christopher Young 66c29aa9a6 RO Partition rebuild from WebUI. 2016-03-10 14:57:54 -05:00
Christopher Young e356194eb2 Add "System Errors" to main status page. 2016-03-10 14:41:30 -05:00
Christopher Young ac5a054e7d Logic error. 2016-03-10 13:29:07 -05:00
Christopher Young e5026f66c1 Add HardwareBuild to globalStatus - only used for FlightBox currently. 2016-03-10 13:09:25 -05:00
Christopher Young e6bb6ce477 Add system-wide errors concept for display in WebUI. 2016-03-10 13:06:14 -05:00
Christopher Young dbe8ed5c3a Change default settings: GPS enabled. 2016-03-10 12:34:06 -05:00
Christopher Young 2e621cb426 Cleanup. 2016-03-10 12:33:03 -05:00
Christopher Young e4d74e221c Only show some debug output depending on globalSettings.DEBUG. 2016-03-10 10:20:46 -05:00
Christopher Young 796d0a2632 /view_logs page.
Fixes #232.
2016-03-07 23:51:53 -05:00
Christopher Young 3fa36963f0 Fix variable out of scope. 2016-03-07 21:36:30 -05:00
Christopher Young 1308e74587 Roll back webserver, use Go as webserver. 2016-03-07 21:33:28 -05:00
Christopher Young bcf7bbb053 Roll back webserver, use Go as webserver. 2016-03-07 21:29:35 -05:00
Joseph Poirier f0179b0c06 sdr: comments and more idiomatic code 2016-03-07 19:53:50 -06:00
Christopher Young d1d00d5bfb Cleanup. 2016-03-07 20:14:44 -05:00
Christopher Young 9bdef48b4b Cleanup. a+x /var/log/stratux default permissions. 2016-03-07 19:49:46 -05:00
cyoung e1a41f773f Merge pull request #266 from cyoung/separate_httpd
use standalone httpd service / move stratux services to port 8080
2016-03-07 19:20:28 -05:00
cyoung bf0efb18de Merge pull request #303 from jpoirier/development
sdr: comment reflects behavior
2016-03-03 00:13:32 -05:00
Joseph Poirier 3640db4230 sdr: comment reflects behavior 2016-03-02 23:05:52 -06:00
cyoung 83eda624ce Merge pull request #302 from jpoirier/development
sdr: remove erroneous comment
2016-03-02 21:34:08 -05:00
Joseph Poirier 35f27f71ea sdr: remove erroneous comment 2016-03-02 20:27:12 -06:00
cyoung 4c144b07f9 Merge pull request #301 from jpoirier/development
sdr: some refactoring
2016-03-02 21:25:33 -05:00
Joseph Poirier 04fd251aca sdr: update comment 2016-03-02 20:22:50 -06:00
Joseph Poirier 1c08a12fff sdr: some refactoring 2016-03-02 20:02:33 -06:00
Christopher Young d2a3f9433a Add 'Build' to status struct. 2016-02-28 22:29:40 -05:00
Christopher Young 1c99b26ab4 Typo fix (again). 2016-02-28 22:23:27 -05:00
Joseph Poirier 45b559e826 remove empty line 2016-02-28 21:04:40 -06:00
Joseph Poirier 77ff0daee6 fix spelling 2016-02-28 20:57:36 -06:00
Joseph Poirier 3716f4e845 fix conflict 2016-02-28 20:54:48 -06:00
Joseph Poirier 493097c626 sdr: when cmdStart fails use the proper shutdown procedure 2016-02-28 20:50:40 -06:00
Christopher Young a5a02ff4d5 Typo fix. 2016-02-28 21:41:40 -05:00
cyoung f6dc54cde4 Merge pull request #292 from AvSquirrel/new_dump1090
Incorporate dump1090-mutability; improved signal strength reporting; bug fixes
2016-02-28 21:37:42 -05:00
Joseph Poirier 5483a4c095 Merge branch 'master' into development 2016-02-28 11:20:04 -06:00
Joseph Poirier 6aed4e1cb2 modify comment, update gitignore file 2016-02-28 11:18:21 -06:00
AvSquirrel 769169d722 Revise dump1090 for CA/CF reporting. Clean up demo traffic type identification. 2016-02-28 01:33:27 +00:00
AvSquirrel 1a5172e596 Tower signal strength, other bug fixes 2016-02-27 08:35:17 +00:00
Joseph Poirier 73dd2d7025 remove trailing whitespace 2016-02-27 02:25:34 -06:00
AvSquirrel c3809c779e Add dump1090 heartbeat detection 2016-02-27 07:12:22 +00:00
Joseph Poirier 100afa42f2 comment update 2016-02-27 00:05:37 -06:00
AvSquirrel a9b631e732 Incorporate dump1090-mutability 2016-02-27 06:04:41 +00:00
Joseph Poirier d9a2667c18 add comment 2016-02-27 00:02:18 -06:00
Joseph Poirier 290ec802ad fix typo 2016-02-27 00:00:53 -06:00
Christopher Young 8f28239dd8 Typo fix. Addresses #267. 2016-02-27 00:55:14 -05:00
Joseph Poirier b9f18cdc2e comment update 2016-02-26 23:49:11 -06:00
Joseph Poirier e9271073e1 fix print statement 2016-02-26 23:46:39 -06:00
Joseph Poirier 5f2a0e6509 fix copy/paste error 2016-02-26 23:40:08 -06:00
AvSquirrel 374ea26c5e Allow NIC=0 UAT traffic. Tweaks to demo traffic. 2016-02-27 05:36:33 +00:00
Joseph Poirier 143f395cb4 formatting 2016-02-26 23:27:36 -06:00
Joseph Poirier 34e079d047 close process when dongle fails, ES read stdout/stderr simplified, update gitignore 2016-02-26 23:22:40 -06:00
AvSquirrel e8ba0a30a5 Simplify UAT power calculation 2016-02-27 02:42:56 +00:00
Christopher Young bc11d854e6 Typo fix. 2016-02-26 13:42:59 -05:00
Christopher Young f1f467249b Change some log prints to display only when globalSettings.DEBUG is true. 2016-02-26 13:37:45 -05:00
Christopher Young 1cee936266 Formatting. 2016-02-26 12:08:01 -05:00
cyoung 7007d18606 Merge pull request #285 from AvSquirrel/new_dump1090
Dump1090 improvements. Overhauled traffic parsing. UAT groundspeed and air/ground status bug fixes.
2016-02-26 11:35:09 -05:00
Ryan C. Braun 6594cdf5f4 Enhance Ping support, add RSSI and RS bit errors 2016-02-26 11:18:22 +00:00
Ryan C. Braun 6ae392af6d Merge branch 'master' of https://github.com/cyoung/stratux
Conflicts:
	main/gen_gdl90.go
	web/plates/js/settings.js
2016-05-04 05:50:52 +00:00
Ryan C. Braun e1e02a4bc7 Change network reconnect behavior from ping to dump1090 2016-05-04 05:45:18 +00:00
Ryan C. Braun 69a933efdd Merge branch 'master' of https://github.com/cyoung/stratux
Conflicts:
	Makefile
	main/traffic.go
2016-04-20 09:29:56 +00:00
Ryan C. Braun 91fd133271 First cut of uAvionix Ping changes 2016-04-20 08:59:55 +00:00
AvSquirrel 5d082e3292 Incorporate dump1090-mutability. UI signal strength and traffic improvements. 2016-02-25 05:53:35 +00:00
Joseph Poirier fb61a9df63 Merge branch 'master' into sdr_cleanup 2016-02-24 08:25:04 -06:00
Joseph Poirier c640418e80 add map type 2016-02-24 08:23:21 -06:00
Joseph Poirier 5e2209e906 small optimization and error handling comment 2016-02-24 08:18:40 -06:00
AvSquirrel 27dc75ca0e Wrong order in UAT max signal strength 2016-02-24 02:20:38 +00:00
AvSquirrel 404f2456e6 Exclude traffic signal from tower max signal calc 2016-02-24 02:01:35 +00:00
AvSquirrel bd36732e49 Enable UAT signal strength for traffic (downlink) messages 2016-02-23 07:00:16 +00:00
AvSquirrel 60c082b0a0 Cleanup. Comment out demo mode and most debug log message. 2016-02-23 06:41:52 +00:00
AvSquirrel 62fec20bee Dump traffic list to log each second 2016-02-23 05:51:52 +00:00
AvSquirrel 2360f90861 Overhaul of makeTrafficReportMsg and parseDownlinkReport. Needs testing. 2016-02-23 05:45:39 +00:00
Joseph Poirier 0d5807cb23 fix for dual assigned dongles, remove wall of text 2016-02-22 13:01:11 -06:00
Joseph Poirier bdd8025921 comment formatting, again 2016-02-22 11:14:30 -06:00
Joseph Poirier 3f0e5b6cb0 comment formatting 2016-02-22 11:12:01 -06:00
Joseph Poirier 41da5d9346 fix range value 2016-02-22 11:02:03 -06:00
Joseph Poirier 8f60404ede fix copy and paste 2016-02-22 10:36:41 -06:00
Joseph Poirier b91b1ce06c fixes to handle all dongle scenarios, uat config fix back to print name 2016-02-22 10:34:51 -06:00
Joseph Poirier 6c35cd164f fixes after review 2016-02-22 07:37:44 -06:00
AvSquirrel 93a6dc9b4b Add fields for NACp and signal strength; cleanup 2016-02-22 07:39:20 +00:00
Joseph Poirier 8579891b05 fix type error 2016-02-21 21:41:30 -06:00
Joseph Poirier bec0cef610 rework the dongle and settings handling code, fixes #239 2016-02-21 21:28:53 -06:00
Joseph Poirier 862151cea6 regex updates and device fix 2016-02-21 14:02:57 -06:00
Joseph Poirier 0ff1b5c16f fix rES hasID typo 2016-02-21 11:00:12 -06:00
Joseph Poirier ff9a5bec02 final UAT and ES struct fixes 2016-02-21 10:57:16 -06:00
Joseph Poirier 483567f186 UAT and ES struct fixes 2016-02-21 10:55:16 -06:00
Joseph Poirier 8fc7b9f81b fix typo 2016-02-21 10:44:55 -06:00
Joseph Poirier e9221e5097 cleanup and idiomatic code in prep for #239 2016-02-21 10:40:14 -06:00
AvSquirrel 17454c4276 Mutex bug fix 2016-02-21 12:02:47 +00:00
AvSquirrel ac69e7825a Add 1090 emitter category 2016-02-21 09:44:26 +00:00
AvSquirrel abf5869a57 New dump1090 format on port 30006 2016-02-21 07:06:58 +00:00
AvSquirrel 6492dc7788 Show traffic source in web UI 2016-02-19 06:09:34 +00:00
bradanlane 36393d859b use standalone httpd service / move stratux services to port 8080 2016-02-18 14:37:10 -05:00
cyoung 7a2e49867a Merge pull request #264 from AvSquirrel/traffic-ui
Bug fixes for traffic UI and setting GPS time
2016-02-18 14:02:22 -05:00
AvSquirrel 25dc8e617d Bug fix for setting GPS time from RMC messages 2016-02-18 11:53:43 -06:00
cyoung 3a96f04394 Merge pull request #261 from yihchun/master
Fixed a bug from #248
2016-02-18 09:59:30 -05:00