From ebfb67114213d10a3e25709f997861cf52d1065c Mon Sep 17 00:00:00 2001 From: Christopher Young Date: Thu, 17 Nov 2016 19:14:33 -0500 Subject: [PATCH] Rename ry835ai.go to gps.go. --- Makefile | 2 +- main/gen_gdl90.go | 5 +++-- main/{ry835ai.go => gps.go} | 4 ++-- web/plates/status-help.html | 1 - 4 files changed, 6 insertions(+), 6 deletions(-) rename main/{ry835ai.go => gps.go} (99%) diff --git a/Makefile b/Makefile index d79980de..57261b92 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ all: xgen_gdl90: go get -t -d -v ./main ./test ./godump978 ./uatparse - go build $(BUILDINFO) -p 4 main/gen_gdl90.go main/traffic.go main/ry835ai.go main/network.go main/managementinterface.go main/sdr.go main/ping.go main/uibroadcast.go main/monotonic.go main/datalog.go main/equations.go + go build $(BUILDINFO) -p 4 main/gen_gdl90.go main/traffic.go main/gps.go main/network.go main/managementinterface.go main/sdr.go main/ping.go main/uibroadcast.go main/monotonic.go main/datalog.go main/equations.go xdump1090: git submodule update --init diff --git a/main/gen_gdl90.go b/main/gen_gdl90.go index 7b54bf1b..fc46f404 100755 --- a/main/gen_gdl90.go +++ b/main/gen_gdl90.go @@ -257,7 +257,7 @@ func makeOwnshipReport() bool { msg[12] = msg[12] | 0x09 // "Airborne" + "True Track" } - msg[13] = byte(0x80 | (mySituation.NACp & 0x0F)) //Set NIC = 8 and use NACp from ry835ai.go. + msg[13] = byte(0x80 | (mySituation.NACp & 0x0F)) //Set NIC = 8 and use NACp from gps.go. gdSpeed := uint16(0) // 1kt resolution. if isGPSGroundTrackValid() { @@ -1342,7 +1342,8 @@ func main() { //FIXME: Only do this if data logging is enabled. initDataLog() - initRY835AI() + // Start the GPS external sensor monitoring. + initGPS() // Start the heartbeat message loop in the background, once per second. go heartBeatSender() diff --git a/main/ry835ai.go b/main/gps.go similarity index 99% rename from main/ry835ai.go rename to main/gps.go index ce688d18..d0ee90eb 100644 --- a/main/ry835ai.go +++ b/main/gps.go @@ -4,7 +4,7 @@ that can be found in the LICENSE file, herein included as part of this header. - ry835ai.go: GPS functions, GPS init, AHRS status messages, other external sensor monitoring. + gps.go: GPS functions, GPS init, AHRS status messages, other external sensor monitoring. */ package main @@ -2009,7 +2009,7 @@ func pollGPS() { } } -func initRY835AI() { +func initGPS() { mySituation.mu_GPS = &sync.Mutex{} mySituation.mu_GPSPerf = &sync.Mutex{} satelliteMutex = &sync.Mutex{} diff --git a/web/plates/status-help.html b/web/plates/status-help.html index 8ec44d6d..01207d09 100755 --- a/web/plates/status-help.html +++ b/web/plates/status-help.html @@ -6,7 +6,6 @@

Devices must be manually enabled on the Settings page.