kopia lustrzana https://github.com/cyoung/stratux
Don't add one little change before pushing
rodzic
7ee7a83a87
commit
ddaf673006
4
Makefile
4
Makefile
|
@ -13,8 +13,8 @@ all:
|
|||
make xgen_gdl90
|
||||
|
||||
xgen_gdl90:
|
||||
go get -t -d -v ./main ./test ./linux-mpu9150/mpu ./godump978 ./mpu6050 ./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/uibroadcast.go main/monotonic.go main/datalog.go main/equations.go
|
||||
go get -t -d -v ./main ./test ./linux-mpu9150/mpu ./godump978 ./mpu ./uatparse
|
||||
go build $(BUILDINFO) -p 4 main/gen_gdl90.go main/traffic.go main/ry83Xai.go main/network.go main/managementinterface.go main/sdr.go main/uibroadcast.go main/monotonic.go main/datalog.go main/equations.go
|
||||
|
||||
xdump1090:
|
||||
git submodule update --init
|
||||
|
|
|
@ -27,7 +27,7 @@ import (
|
|||
"os"
|
||||
"os/exec"
|
||||
|
||||
"../mpu6050"
|
||||
"../mpu"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -1365,7 +1365,7 @@ func initBMP180() error {
|
|||
|
||||
//TODO westphae: set up myMPU as MPU6050 or MPU9250, depending on which exists
|
||||
func initMPU() error {
|
||||
myMPU = mpu.NewMPU6050() //TODO: error checking.
|
||||
myMPU, _ = mpu.NewMPU6050() //TODO: error checking.
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -40,10 +40,10 @@ type MPU6050 struct {
|
|||
}
|
||||
|
||||
// New returns a handle to a MPU6050 sensor.
|
||||
func NewMPU6050() *MPU6050 {
|
||||
func NewMPU6050() (*MPU6050, error) {
|
||||
n := &MPU6050{poll: pollDelay}
|
||||
n.startUp()
|
||||
return n
|
||||
return n, nil
|
||||
}
|
||||
|
||||
func (d *MPU6050) startUp() error {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"../mpu6050"
|
||||
"../mpu"
|
||||
"fmt"
|
||||
"net"
|
||||
"time"
|
||||
|
|
Ładowanie…
Reference in New Issue