Skip to content

Commit

Permalink
fix mavlink README to use correct example code
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaeVarius authored and deadprogram committed May 22, 2019
1 parent 013817c commit 515c4e8
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 515c4e8

Please sign in to comment.