Skip to content

Commit

Permalink
Merge pull request hybridgroup#651 from NikolaeVarius/readme
Browse files Browse the repository at this point in the history
fix mavlink README to use correct example code
  • Loading branch information
trevrosen authored Jan 18, 2019
2 parents ad31c39 + a27beca commit aa34bc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platforms/mavlink/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func main() {
iris := mavlink.NewDriver(adaptor)

work := func() {
gobot.Once(iris.Event("packet"), func(data interface{}) {
iris.Once(iris.Event("packet"), func(data interface{}) {
packet := data.(*common.MAVLinkPacket)

dataStream := common.NewRequestDataStream(100,
Expand All @@ -54,7 +54,7 @@ func main() {
))
})

gobot.On(iris.Event("message"), func(data interface{}) {
iris.On(iris.Event("message"), func(data interface{}) {
if data.(common.MAVLinkMessage).Id() == 30 {
message := data.(*common.Attitude)
fmt.Println("Attitude")
Expand Down

0 comments on commit aa34bc3

Please sign in to comment.