Wykres commitów

817 Commity (mode-c-detect)

Autor SHA1 Wiadomość Data
Christopher Young a82f376ad0 Typo fix. 2017-06-05 16:37:32 -04:00
Christopher Young e9e552a149 Use GPSTrueCourse in GDL90 packet as heading when gyro heading not available.
#612
2017-06-05 16:29:28 -04:00
Christopher Young ca4ae22c42 Change float32 types to float64 types to match AHRS library outputs. 2017-06-05 16:19:45 -04:00
Christopher Young 215b6034d6 Typo fix. 2017-06-05 15:06:11 -04:00
Christopher Young 92da285c55 Add isAHRSInvalidValue(). 2017-06-05 15:03:19 -04:00
Christopher Young ac021ebe6a Conslidate 'ahrs.Invalid' constant references. 2017-06-05 14:55:25 -04:00
Christopher Young e43caad938 Typo fix. 2017-06-05 14:48:10 -04:00
Eric Westphal 586d951582 Save sensor orientation for pseudo-installed units. 2017-06-01 17:33:18 -04:00
Christopher Young 0a60929cab Typo fix. 2017-05-31 15:37:14 -04:00
Christopher Young f4144710e9 Update comments. 2017-05-31 15:34:57 -04:00
Christopher Young c0a79700b8 Change calcGPSValidity() to isGPSGroundTrackValid(). Replace existing isGPSGroundTrackValid() function. 2017-05-31 15:33:19 -04:00
Christopher Young 9839e88e71 Merge remote-tracking branch 'origin/master' into ahrs_dev 2017-05-31 15:21:37 -04:00
Eric Westphal db8d2f3e7f Add a bit more AHRS logging. 2017-05-29 20:32:50 -04:00
Eric Westphal e421d160b7 Base AHRS GPS Validity on NACp. 2017-05-29 15:56:16 -04:00
Eric Westphal c96f3d4844 Extra AHRS logging from external sources. 2017-05-29 15:53:06 -04:00
Eric Westphal fcc9322a57 Remove minor unneeded logging. 2017-05-29 15:44:34 -04:00
Christopher Young 053d60110f Typo fix. 2017-05-25 21:48:23 -04:00
Christopher Young 506db50fb2 Merge remote-tracking branch 'origin/master' into ahrs_dev 2017-05-24 21:44:11 -04:00
Christopher Young c3e4d613ca Remove full speed defaults.
#599, #595, #593.
2017-05-24 21:42:11 -04:00
Christopher Young daee7316f5 Switch from "BAL" mode to "MS" PWM modes. #599, #595, #593. 2017-05-24 13:25:52 -04:00
Christopher Young 4c854999bb Reduce number of fan modes to 10 from 256. Add five second run-up at startup. #599, #595, #593. 2017-05-24 13:24:46 -04:00
Eric Westphal ac386cb0a1 Add AHRS setting defaults to defaultConfig. 2017-05-21 21:51:40 -04:00
Eric Westphal 5aefc145ac Initial commit - user can set G limits for own aircraft. 2017-05-20 07:35:40 -04:00
Eric Westphal 9ebe32e6e0 Move SetConfig into AHRSProvider. 2017-05-17 19:41:01 -04:00
Eric Westphal 52e61ca48c Merge remote-tracking branch 'cyoung/ahrs_dev' into eric 2017-05-17 18:26:56 -04:00
Eric Westphal 8aeb5d285b Web UI G-Meter uses mySituation min/max G Load. 2017-05-17 17:55:42 -04:00
Eric Westphal e8273544ae mySituation tracks min/max G Load. 2017-05-17 17:55:42 -04:00
Christopher Young 0678955b01 Merge remote-tracking branch 'origin/master' into ahrs_dev 2017-05-17 17:18:30 -04:00
Christopher Young f2c311db6d If temperature rises after ramping to 100% PWM, then stop controlling the fan and set it to full ON.
#599, #595, #593.
2017-05-17 17:18:00 -04:00
Christopher Young 0d146d1747 Set GDL90 traffic alert bit always when bearing/distance is not available. #580, #582. 2017-05-17 15:25:14 -04:00
Christopher Young 83f0c6843f Suppress detected ownship traffic target, but don't use received data for GDL90 ownship message.
#590.
2017-05-17 15:12:22 -04:00
Eric Westphal a08d269e4c Merge remote-tracking branch 'cyoung/ahrs_dev' into eric 2017-05-16 10:50:19 -04:00
Christopher Young 3db11bd09d Add goflying submodule. Change imports. 2017-05-15 22:22:32 -04:00
Eric Westphal be84ec785c Merge remote-tracking branch 'cyoung/ahrs_dev' into eric 2017-05-15 07:55:23 -04:00
Eric Westphal ea657208c0 Merge remote-tracking branch 'cyoung/ahrs_dev' into ahrs_dev 2017-05-14 09:44:15 -04:00
Eric Westphal d84a3a0199 Merge branch 'invalid' into eric 2017-05-14 09:25:48 -04:00
Eric Westphal 7add14badf Invalidate GDL90 UDP values when AHRS data invalid. 2017-05-14 09:25:11 -04:00
Eric Westphal 84eea16eed Merge branch 'invalid' into eric 2017-05-14 08:17:26 -04:00
Christopher Young c6e96b5d09 Merge remote-tracking branch 'origin/master' into ahrs_dev
# Conflicts:
#	Makefile
#	main/equations.go
#	main/gen_gdl90.go
2017-05-13 12:37:06 -04:00
Christopher Young ae03336a0b Reduce CPU temperature target to 50ºC. #593. 2017-05-13 12:16:20 -04:00
Christopher Young eebb040e1e Remove GPS power save mode. 2017-05-13 12:15:42 -04:00
Christopher Young b423c4e48e Change pinout. Increase PWM frequency. Decrease min duty cycle.
#593.
2017-05-13 12:11:31 -04:00
Christopher Young 29c86d0343 Formatting.
#593.
2017-05-13 10:33:09 -04:00
Eric Westphal 70236a95da Show --- on web UI when AHRS values invalid. 2017-05-13 08:40:19 -04:00
Eric Westphal 338f1cc934 AHRS settings in the UI 2017-05-12 20:40:53 -04:00
Luke Palmer 01cc01f8fa Rework fan PWM control 2017-05-11 00:32:45 -04:00
Christopher Young d7ca5b0376 Undo merge typo. 2017-05-10 09:42:20 -04:00
Christopher Young 17b719f755 Merge remote-tracking branch 'origin/master' into ahrs_dev
# Conflicts:
#	main/gps.go
#	main/traffic.go
2017-05-10 09:27:22 -04:00
Eric Westphal 449043bb4a Refactor rotation matrix creation function to westphae/goflying. 2017-05-08 21:21:37 -04:00
Christopher Young 7d7c2abe35 Gofmt. Typo fix. Comment change. 2017-04-21 14:16:21 -04:00
cyoung 1934d858de Merge pull request #586 from kjablonski/master
Enable Galileo and updates to stratux-help
2017-04-21 14:08:39 -04:00
kjablonski e3fcadb4ba Update gps.go
Fixed undeclared variable updatespeed
2017-04-21 06:57:18 -05:00
kjablonski a8bd9a28f9 Update gps.go
Added logic to only slow down to 2Hz for UBX8 using Galileo
2017-04-20 21:42:45 -05:00
Christopher Young 176cf42f2e Blink ACT LED ten times per second when there is a system error.
#567.
2017-04-19 17:04:12 -04:00
Christopher Young c0b6e9a93b Set "Maintenance Req'd" bit in GDL90 heartbeat when there exists a system error.
#567.
2017-04-19 16:49:35 -04:00
Christopher Young b431187d7a Use isGPSValid(). 2017-04-19 16:01:29 -04:00
Christopher Young fe7dc97c19 Clean up typos and formatting. 2017-04-19 15:57:25 -04:00
Christopher Young 2645f98293 Cleanup. 2017-04-19 15:51:49 -04:00
Christopher Young 9e12f69318 Add comments on units and constants.
#580, #582.
2017-04-06 11:28:56 -04:00
Christopher Young f564f2bb6b Remove redundant distance calculation. 2017-04-06 11:27:03 -04:00
Christopher Young 93321a4f8f Reset Distance, Bearing, and BearingDist_valid if GPS data becomes invalid.
#580, #582.
2017-04-06 11:26:51 -04:00
Christopher Young 5d5f165218 Formatting.
Use gofmt after edits. #580, #582.
2017-04-06 11:24:46 -04:00
cyoung dfee391e66 Merge pull request #582 from ChiefPilot/master
Remove hardcoded alert flag on traffic report and replace with simple…
2017-04-06 11:24:01 -04:00
Eric Westphal fc438c0b30 mySituation AHRS and Baro variables now float32 for iOS. 2017-04-05 20:30:16 -04:00
Christopher Young 1fca793b2c Merge remote-tracking branch 'origin/master' into ahrs_dev
# Conflicts:
#	main/gen_gdl90.go
2017-04-04 20:55:57 -04:00
Christopher Young 744939d940 Add log comment on CPU profile option. 2017-04-04 20:55:03 -04:00
Christopher Young a6ded9a5c0 Add -cpuprofile command line option. 2017-04-04 20:52:22 -04:00
Christopher Young 171ab4a21e Merge fix. 2017-04-04 16:28:44 -04:00
Christopher Young 29b959afa9 Merge remote-tracking branch 'origin/master' into ahrs_dev
# Conflicts:
#	main/gen_gdl90.go
#	main/gps.go
#	main/managementinterface.go
#	main/network.go
#	web/js/main.js
#	web/plates/developer.html
#	web/plates/gps.html
#	web/plates/js/developer.js
#	web/plates/js/gps.js
#	web/plates/js/settings.js
#	web/plates/js/status.js
#	web/plates/status-help.html
#	web/plates/status.html
#	web/plates/traffic-help.html
2017-04-04 13:16:32 -04:00
Brad Benson 24d20e7cdb Remove hardcoded alert flag on traffic report and replace with simple logic to set it only if a target is within 2nm. This addresses issue #580 . 2017-04-03 14:10:12 -05:00
Eric Westphal 23df9c9c2e Slip/skid indicates correctly in UDP; limit UI slip/skid to 10 deg max. 2017-04-02 10:26:23 -04:00
Eric Westphal b9ebc3b39e Sensor values in arrays instead of scalars. 2017-04-01 19:21:12 -04:00
Eric Westphal a2580d4593 AHRS auto-level working. 2017-04-01 14:02:12 -04:00
Eric Westphal 1961a3cc8c Remove some old comments. 2017-04-01 09:19:01 -04:00
Eric Westphal effa8da5a9 Decompose rotation matrix into x, y, z basis vectors. 2017-04-01 09:14:13 -04:00
Eric Westphal 18af334813 Extract sensor rotation matrix creation into function. 2017-04-01 08:27:45 -04:00
Eric Westphal 6220a2dfe3 Change Situation field names to more explanatory scheme. 2017-03-30 19:20:49 -04:00
Christopher Young a11b0b9be4 Formatting.
Run gofmt on modified files.
2017-03-28 11:57:32 -04:00
Christopher Young 89b848c3e5 Fix nil pointer dereference when sensor is not connected/initialized and webUI sensor option is disabled.
2017/03/28 13:43:00 wrote settings.
2017/03/28 13:43:01 http: panic serving 192.168.10.12:52012: runtime
error: invalid memory address or nil pointer dereference
goroutine 83 [running]:
net/http.(*conn).serve.func1(0x10ab6ae0, 0x73826140, 0x10d8c708)
	/root/go-1.5.1/src/net/http/server.go:1287 +0x9c
main.handleSettingsSetRequest(0x72ec00b0, 0x10d93580, 0x10db0620)
	/root/stratux-westphae/main/managementinterface.go:286 +0x1620
net/http.HandlerFunc.ServeHTTP(0x5d2ecc, 0x72ec00b0, 0x10d93580,
0x10db0620)
	/root/go-1.5.1/src/net/http/server.go:1422 +0x34
net/http.(*ServeMux).ServeHTTP(0x10960dc0, 0x72ec00b0, 0x10d93580,
0x10db0620)
	/root/go-1.5.1/src/net/http/server.go:1699 +0x164
net/http.serverHandler.ServeHTTP(0x109c4300, 0x72ec00b0, 0x10d93580,
0x10db0620)
	/root/go-1.5.1/src/net/http/server.go:1862 +0x190
net/http.(*conn).serve(0x10ab6ae0)
	/root/go-1.5.1/src/net/http/server.go:1361 +0xbfc
created by net/http.(*Server).Serve
	/root/go-1.5.1/src/net/http/server.go:1910 +0x360
2017/03/28 13:43:01 http: panic serving 192.168.10.12:52013: runtime
error: invalid memory address or nil pointer dereference
goroutine 58 [running]:
net/http.(*conn).serve.func1(0x1098b4a0, 0x73826140, 0x10de8228)
	/root/go-1.5.1/src/net/http/server.go:1287 +0x9c
main.handleSettingsSetRequest(0x72ec00b0, 0x10d93680, 0x10db0690)
	/root/stratux-westphae/main/managementinterface.go:286 +0x1620
net/http.HandlerFunc.ServeHTTP(0x5d2ecc, 0x72ec00b0, 0x10d93680,
0x10db0690)
	/root/go-1.5.1/src/net/http/server.go:1422 +0x34
net/http.(*ServeMux).ServeHTTP(0x10960dc0, 0x72ec00b0, 0x10d93680,
0x10db0690)
	/root/go-1.5.1/src/net/http/server.go:1699 +0x164
net/http.serverHandler.ServeHTTP(0x109c4300, 0x72ec00b0, 0x10d93680,
0x10db0690)
	/root/go-1.5.1/src/net/http/server.go:1862 +0x190
net/http.(*conn).serve(0x1098b4a0)
	/root/go-1.5.1/src/net/http/server.go:1361 +0xbfc
created by net/http.(*Server).Serve
	/root/go-1.5.1/src/net/http/server.go:1910 +0x360
2017-03-28 11:54:27 -04:00
kjablonski 992367e50a Updates to gps.go
tweaks after testing on stratux
2017-03-27 21:49:01 -05:00
kjablonski aaf2025968 Update gps.go 2017-03-26 21:59:56 -05:00
kjablonski 1d33f79e04 More Galileo Updates
Updated sv numbers and added text to indicated Galileo in solution E#
2017-03-26 21:50:14 -05:00
kjablonski 0207ede47d Update gps.go
Added support for Galileo GNSS constellation
2017-03-26 19:15:31 -05:00
Eric Westphal 8ce402a33f Add AHRS status indicators to web UI. 2017-03-09 21:43:26 -05:00
Eric Westphal 5f8718c96a Reorder AHRS updates. 2017-03-09 21:41:45 -05:00
Eric Westphal cd314682eb Better orientation routine. 2017-03-09 21:40:21 -05:00
Eric Westphal d2526efc7c Slightly smarter sensor failure detection. 2017-03-08 18:10:13 -05:00
Eric Westphal 36595433be AHRSProvider calcs supplemental AHRS info instead of sensor. 2017-03-08 17:16:29 -05:00
Eric Westphal 3e43c1f69e AHRSLogger logs only if disk usage < 95%. 2017-03-05 19:07:01 -05:00
Eric Westphal 5667c1a871 All logs go to /root/ for FlightBox. 2017-03-05 18:56:11 -05:00
Eric Westphal f1ff15031f Add UI switch to record AHRS logs. 2017-03-05 18:34:25 -05:00
Eric Westphal 1344515c93 Separate UI switches for BMP and IMU connected. 2017-03-05 17:47:38 -05:00
Eric Westphal c34592e347 Refactor ahrs.InitializeSimple to separate logging from initialization. 2017-03-05 09:16:50 -05:00
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