Skip to content

Commit

Permalink
update gomavlib
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Mar 25, 2019
1 parent 3fa8402 commit 5f5502f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module mavp2p

require (
github.com/gswly/gomavlib v0.0.0-20190324181033-3e9f1fe3c062
github.com/gswly/gomavlib v0.0.0-20190325121453-78106451508b
gopkg.in/alecthomas/kingpin.v2 v2.2.6
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf h1:qet1QNfXsQxTZq
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/gswly/gomavlib v0.0.0-20190324181033-3e9f1fe3c062 h1:YjwTlKrBhlxbvl7lcZD9a8acju+VBAtvncUBc0J/V8U=
github.com/gswly/gomavlib v0.0.0-20190324181033-3e9f1fe3c062/go.mod h1:1xQWxU9I/Y19PPQg8rJh+Wxk0TC1qvZR3btjKYH5WC4=
github.com/gswly/gomavlib v0.0.0-20190325121453-78106451508b h1:lbm6oY18vMlVGbluO4A0yysB0CbBJou79NbOQqw0zO8=
github.com/gswly/gomavlib v0.0.0-20190325121453-78106451508b/go.mod h1:1xQWxU9I/Y19PPQg8rJh+Wxk0TC1qvZR3btjKYH5WC4=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
Expand Down
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,13 @@ func main() {
node, err := gomavlib.NewNode(gomavlib.NodeConf{
Endpoints: econfs,
Dialect: dialect,
Version: func() gomavlib.NodeVersion {
OutVersion: func() gomavlib.NodeVersion {
if *hbVersion == "2" {
return gomavlib.V2
}
return gomavlib.V1
}(),
SystemId: byte(*hbSystemId),
ComponentId: 1,
OutSystemId: byte(*hbSystemId),
HeartbeatDisable: *hbDisable,
HeartbeatPeriod: (time.Duration(*hbPeriod) * time.Second),
})
Expand Down

0 comments on commit 5f5502f

Please sign in to comment.