1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-11 19:29:20 +08:00

Merge pull request #384 from maruel/go_test

Fix go test ./...
This commit is contained in:
Ron Evans 2017-03-20 08:28:20 +01:00 committed by GitHub
commit 5590c670ed
156 changed files with 649 additions and 25 deletions

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (
@ -7,10 +11,10 @@ import (
"runtime"
"time"
cv "github.com/lazywei/go-opencv/opencv"
"gobot.io/x/gobot"
"gobot.io/x/gobot/platforms/opencv"
"gobot.io/x/gobot/platforms/parrot/ardrone"
cv "github.com/lazywei/go-opencv/opencv"
)
func main() {

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
/*
This example will connect to the Parrot Bebop allowing you to control
it using a PS3 controller.

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
/*
This example will connect to the Parrot Bebop and streams the drone video
via the RTP protocol.

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
/*
To run this example, pass the BLE address or BLE name as first param:

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
/*
To run this example, pass the BLE addresses or BLE names as first param:

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
/*
To run this example, pass the BLE addresses or BLE names as first param:

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,32 +1,36 @@
// +build example
//
// Do not build by default.
package main
import (
"fmt"
"fmt"
"gobot.io/x/gobot"
"gobot.io/x/gobot/drivers/gpio"
"gobot.io/x/gobot/platforms/dragonboard"
"gobot.io/x/gobot"
"gobot.io/x/gobot/drivers/gpio"
"gobot.io/x/gobot/platforms/chip"
)
func main() {
dragonAdaptor := chip.NewAdaptor()
button := gpio.NewButtonDriver(dragonAdaptor, "GPIO_A")
dragonAdaptor := chip.NewAdaptor()
button := gpio.NewButtonDriver(dragonAdaptor, "GPIO_A")
work := func() {
gobot.On(button.Event("push"), func(data interface{}) {
fmt.Println("button pressed")
})
work := func() {
gobot.On(button.Event("push"), func(data interface{}) {
fmt.Println("button pressed")
})
gobot.On(button.Event("release"), func(data interface{}) {
fmt.Println("button released")
})
}
gobot.On(button.Event("release"), func(data interface{}) {
fmt.Println("button released")
})
}
robot := gobot.NewRobot("buttonBot",
[]gobot.Connection{chipAdaptor},
[]gobot.Device{button},
work,
)
robot := gobot.NewRobot("buttonBot",
[]gobot.Connection{chipAdaptor},
[]gobot.Device{button},
work,
)
robot.Start()
}
robot.Start()
}

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
// TO RUN:
// firmata_metal_button <PORT>
//

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

View File

@ -1,3 +1,7 @@
// +build example
//
// Do not build by default.
package main
import (

Some files were not shown because too many files have changed in this diff Show More