Skip to content

Commit

Permalink
parrot: move both ARDrone and Bebop under Parrot package
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Dec 7, 2016
1 parent 8d43d00 commit 95586fa
Show file tree
Hide file tree
Showing 29 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion ci/travis.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
PACKAGES=('gobot' 'gobot/api' 'gobot/sysfs' 'gobot/drivers/gpio' 'gobot/drivers/i2c' 'gobot/platforms/firmata/client' 'gobot/platforms/intel-iot/edison' 'gobot/platforms/intel-iot/joule' 'gobot/platforms/parrot/minidrone' 'gobot/platforms/sphero/ollie' $(ls ./platforms | sed -e 's/^/gobot\/platforms\//'))
PACKAGES=('gobot' 'gobot/api' 'gobot/sysfs' 'gobot/drivers/gpio' 'gobot/drivers/i2c' 'gobot/platforms/firmata/client' 'gobot/platforms/intel-iot/edison' 'gobot/platforms/intel-iot/joule' 'gobot/platforms/parrot/ardrone' 'gobot/platforms/parrot/bebop' 'gobot/platforms/parrot/minidrone' 'gobot/platforms/sphero/ollie' $(ls ./platforms | sed -e 's/^/gobot\/platforms\//'))
EXITCODE=0

echo "mode: set" > profile.cov
Expand Down
2 changes: 1 addition & 1 deletion examples/ardrone.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"time"

"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot/platforms/ardrone"
"github.com/hybridgroup/gobot/platforms/parrot/ardrone"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/ardrone_face_tracking.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"time"

"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot/platforms/ardrone"
"github.com/hybridgroup/gobot/platforms/opencv"
"github.com/hybridgroup/gobot/platforms/parrot/ardrone"
cv "github.com/lazywei/go-opencv/opencv"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/ardrone_ps3.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"time"

"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot/platforms/ardrone"
"github.com/hybridgroup/gobot/platforms/joystick"
"github.com/hybridgroup/gobot/platforms/parrot/ardrone"
)

type pair struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/bebop.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"time"

"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot/platforms/bebop"
"github.com/hybridgroup/gobot/platforms/parrot/bebop"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/bebop_ps3.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"time"

"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot/platforms/bebop"
"github.com/hybridgroup/gobot/platforms/joystick"
"github.com/hybridgroup/gobot/platforms/parrot/bebop"
)

type pair struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/bebop_ps3_video.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"time"

"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot/platforms/bebop"
"github.com/hybridgroup/gobot/platforms/joystick"
"github.com/hybridgroup/gobot/platforms/parrot/bebop"
)

type pair struct {
Expand Down
2 changes: 2 additions & 0 deletions platforms/parrot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
This package contains the Gobot adaptors and drivers for the various [Parrot]((https://www.parrot.com) drones.

This package currently supports the following drones:
- Parrot ARDrone 2.0
- Parrot Bebop/Bebop 2
- Parrot Minidrone
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ For more info about the ARDrone platform click [here](http://ardrone2.parrot.com

## How to Install
```
go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/ardrone
go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/parrot/ardrone
```
## How to Use
```go
Expand All @@ -16,12 +16,12 @@ import (
"time"

"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot/platforms/ardrone"
"github.com/hybridgroup/gobot/platforms/parrot/ardrone"
)

func main() {
ardroneAdaptor := ardrone.NewArdroneAdaptor("Drone")
drone := ardrone.NewArdroneDriver(ardroneAdaptor, "Drone")
ardroneAdaptor := ardrone.NewAdaptor("Drone")
drone := ardrone.NewDriver(ardroneAdaptor, "Drone")

work := func() {
drone.On(drone.Event("flying"), func(data interface{}) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions platforms/ardrone/doc.go → platforms/parrot/ardrone/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Package ardrone provides the Gobot adaptor and driver for the Parrot Ardrone.
Installing:
go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/ardrone
go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/parrot/ardrone
Example:
Expand All @@ -13,7 +13,7 @@ Example:
"time"
"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot/platforms/ardrone"
"github.com/hybridgroup/gobot/platforms/parrot/ardrone"
)
func main() {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The Bebop from Parrot is an inexpensive quadcopter that is controlled using WiFi

## How to Install
```
go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/bebop
go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/parrot/bebop
```

## How to Use
Expand All @@ -16,7 +16,7 @@ import (
"time"

"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot/platforms/bebop"
"github.com/hybridgroup/gobot/platforms/parrot/bebop"
)

func main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package bebop

import (
"github.com/hybridgroup/gobot/platforms/bebop/client"
"github.com/hybridgroup/gobot/platforms/parrot/bebop/client"
)

// drone defines expected drone behaviour
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions platforms/bebop/doc.go → platforms/parrot/bebop/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Package bebop provides the Gobot adaptor and driver for the Parrot Bebop.
Installing:
go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/bebop
go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/parrot/bebop
For more information refer to the bebop README:
https://github.com/hybridgroup/gobot/tree/master/platforms/bebop
https://github.com/hybridgroup/gobot/tree/master/platforms/parrot/bebop
*/
package bebop
File renamed without changes.

0 comments on commit 95586fa

Please sign in to comment.