diff --git a/main/gen_gdl90.go b/main/gen_gdl90.go index 9f5c140a..7b54bf1b 100755 --- a/main/gen_gdl90.go +++ b/main/gen_gdl90.go @@ -430,9 +430,7 @@ func makeStratuxStatus() []byte { } // Valid/Enabled: AHRS Enabled portion. - if globalSettings.AHRS_Enabled { - msg[12] = 1 << 0 - } + // msg[12] = 1 << 0 // Valid/Enabled: last bit unused. @@ -991,7 +989,6 @@ type settings struct { GPS_Enabled bool NetworkOutputs []networkConnection SerialOutputs map[string]serialConnection - AHRS_Enabled bool DisplayTrafficSource bool DEBUG bool ReplayLog bool @@ -1056,7 +1053,6 @@ func defaultSettings() { {Conn: nil, Ip: "", Port: 4000, Capability: NETWORK_GDL90_STANDARD | NETWORK_AHRS_GDL90}, // {Conn: nil, Ip: "", Port: 49002, Capability: NETWORK_AHRS_FFSIM}, } - globalSettings.AHRS_Enabled = false globalSettings.DEBUG = false globalSettings.DisplayTrafficSource = false globalSettings.ReplayLog = false //TODO: 'true' for debug builds. diff --git a/main/managementinterface.go b/main/managementinterface.go index 6aa28f82..13473928 100755 --- a/main/managementinterface.go +++ b/main/managementinterface.go @@ -274,8 +274,6 @@ func handleSettingsSetRequest(w http.ResponseWriter, r *http.Request) { globalSettings.Ping_Enabled = val.(bool) case "GPS_Enabled": globalSettings.GPS_Enabled = val.(bool) - case "AHRS_Enabled": - globalSettings.AHRS_Enabled = val.(bool) case "DEBUG": globalSettings.DEBUG = val.(bool) case "DisplayTrafficSource": diff --git a/main/ry835ai.go b/main/ry835ai.go index a582dac0..a9db11ff 100644 --- a/main/ry835ai.go +++ b/main/ry835ai.go @@ -1938,7 +1938,7 @@ func gpsAttitudeSender() { for { <-timer.C myGPSPerfStats = make([]gpsPerfStats, 0) // reinitialize statistics on disconnect / reconnect - for globalSettings.GPS_Enabled && globalStatus.GPS_connected /*&& globalSettings.GPSAttitude_Enabled*/ && !(globalSettings.AHRS_Enabled) { + for globalSettings.GPS_Enabled && globalStatus.GPS_connected { <-timer.C if mySituation.Quality == 0 || !calcGPSAttitude() { diff --git a/notes/app-vendor-integration.md b/notes/app-vendor-integration.md index 67c52eb2..2f49f78e 100644 --- a/notes/app-vendor-integration.md +++ b/notes/app-vendor-integration.md @@ -130,7 +130,6 @@ Stratux makes available a webserver to retrieve statistics which may be useful t "Capability": 2 } ], - "AHRS_Enabled": false, "DEBUG": false, "ReplayLog": true, "PPM": 0, diff --git a/web/plates/js/settings.js b/web/plates/js/settings.js index 52b18099..135f6a09 100755 --- a/web/plates/js/settings.js +++ b/web/plates/js/settings.js @@ -6,7 +6,7 @@ function SettingsCtrl($rootScope, $scope, $state, $location, $window, $http) { $scope.$parent.helppage = 'plates/settings-help.html'; - var toggles = ['UAT_Enabled', 'ES_Enabled', 'Ping_Enabled', 'GPS_Enabled', 'AHRS_Enabled', 'DisplayTrafficSource', 'DEBUG', 'ReplayLog']; + var toggles = ['UAT_Enabled', 'ES_Enabled', 'Ping_Enabled', 'GPS_Enabled', 'DisplayTrafficSource', 'DEBUG', 'ReplayLog']; var settings = {}; for (i = 0; i < toggles.length; i++) { settings[toggles[i]] = undefined; @@ -26,7 +26,6 @@ function SettingsCtrl($rootScope, $scope, $state, $location, $window, $http) { $scope.ES_Enabled = settings.ES_Enabled; $scope.Ping_Enabled = settings.Ping_Enabled; $scope.GPS_Enabled = settings.GPS_Enabled; - $scope.AHRS_Enabled = settings.AHRS_Enabled; $scope.DisplayTrafficSource = settings.DisplayTrafficSource; $scope.DEBUG = settings.DEBUG; $scope.ReplayLog = settings.ReplayLog; diff --git a/web/plates/js/status.js b/web/plates/js/status.js index e71be5f7..a8e0aacc 100644 --- a/web/plates/js/status.js +++ b/web/plates/js/status.js @@ -109,7 +109,6 @@ function StatusCtrl($rootScope, $scope, $state, $http, $interval) { $scope.visible_es = true; } $scope.visible_gps = settings.GPS_Enabled; - $scope.visible_ahrs = settings.AHRS_Enabled; }, function (response) { // nop }); diff --git a/web/plates/settings.html b/web/plates/settings.html index 5387c4a7..52d5dc77 100755 --- a/web/plates/settings.html +++ b/web/plates/settings.html @@ -28,12 +28,6 @@ -
- -
- -
-
@@ -214,30 +208,5 @@ - - - - -