kopia lustrzana https://github.com/cyoung/stratux
Add goflying submodule. Change imports.
rodzic
cab2a81c26
commit
3db11bd09d
|
@ -1,3 +1,6 @@
|
|||
[submodule "dump1090"]
|
||||
path = dump1090
|
||||
url = https://github.com/AvSquirrel/dump1090
|
||||
[submodule "goflying"]
|
||||
path = goflying
|
||||
url = https://github.com/westphae/goflying
|
||||
|
|
2
Makefile
2
Makefile
|
@ -13,8 +13,6 @@ all:
|
|||
|
||||
xgen_gdl90:
|
||||
go get -t -d -v ./main ./test ./godump978 ./uatparse ./sensors
|
||||
go get -u github.com/westphae/goflying/ahrs
|
||||
go get -u github.com/westphae/goflying/ahrsweb
|
||||
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 main/sensors.go main/cputemp.go
|
||||
|
||||
fancontrol:
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit ba2ef8b155f74b3e7108b98b5ddbc92826b0cec3
|
|
@ -9,10 +9,10 @@ import (
|
|||
|
||||
"../sensors"
|
||||
|
||||
"../goflying/ahrs"
|
||||
"../goflying/ahrsweb"
|
||||
"github.com/kidoman/embd"
|
||||
_ "github.com/kidoman/embd/host/all"
|
||||
"github.com/westphae/goflying/ahrs"
|
||||
"github.com/westphae/goflying/ahrsweb"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"errors"
|
||||
"time"
|
||||
|
||||
"../goflying/bmp280"
|
||||
"github.com/kidoman/embd"
|
||||
"github.com/westphae/goflying/bmp280"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/westphae/goflying/mpu9250"
|
||||
"../goflying/mpu9250"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -56,7 +56,7 @@ func (m *MPU9250) Read() (T int64, G1, G2, G3, A1, A2, A3, M1, M2, M3 float64, G
|
|||
)
|
||||
data = new(mpu9250.MPUData)
|
||||
|
||||
for data.N==0 && i < 5 {
|
||||
for data.N == 0 && i < 5 {
|
||||
data = <-m.mpu.CAvg
|
||||
T = data.T.UnixNano()
|
||||
G1 = data.G1
|
||||
|
|
Ładowanie…
Reference in New Issue