kopia lustrzana https://github.com/cyoung/stratux
commit
e77028173f
6
Makefile
6
Makefile
|
@ -3,7 +3,11 @@ GOARCH ?= arm
|
||||||
GOARM ?= 7
|
GOARM ?= 7
|
||||||
|
|
||||||
all:
|
all:
|
||||||
GOOS=$(GOOS) GOARCH=$(GOARCH) GOARM=$(GOARM) go build gen_gdl90.go traffic.go ry835ai.go network.go
|
GOOS=$(GOOS) GOARCH=$(GOARCH) GOARM=$(GOARM) go get -t -d -v ./...
|
||||||
|
GOOS=$(GOOS) GOARCH=$(GOARCH) GOARM=$(GOARM) go build main/gen_gdl90.go main/traffic.go main/ry835ai.go main/network.go
|
||||||
|
|
||||||
|
test:
|
||||||
|
sh -c true
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp -f gen_gdl90 /usr/bin/gen_gdl90
|
cp -f gen_gdl90 /usr/bin/gen_gdl90
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
dependencies:
|
||||||
|
override:
|
||||||
|
- make
|
||||||
|
test:
|
||||||
|
override:
|
||||||
|
- make test
|
|
@ -13,7 +13,7 @@ import (
|
||||||
"github.com/kidoman/embd/sensor/bmp180"
|
"github.com/kidoman/embd/sensor/bmp180"
|
||||||
"github.com/tarm/serial"
|
"github.com/tarm/serial"
|
||||||
|
|
||||||
"./mpu6050"
|
"../mpu6050"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SituationData struct {
|
type SituationData struct {
|
|
@ -1,7 +1,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"./mpu6050"
|
"../mpu6050"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/kidoman/embd"
|
"github.com/kidoman/embd"
|
||||||
_ "github.com/kidoman/embd/host/all"
|
_ "github.com/kidoman/embd/host/all"
|
Ładowanie…
Reference in New Issue