diff --git a/platforms/parrot/ardrone/ardrone_adaptor.go b/platforms/parrot/ardrone/ardrone_adaptor.go index 99d31da5..c962b0f8 100644 --- a/platforms/parrot/ardrone/ardrone_adaptor.go +++ b/platforms/parrot/ardrone/ardrone_adaptor.go @@ -2,6 +2,7 @@ package ardrone import ( client "github.com/hybridgroup/go-ardrone/client" + "gobot.io/x/gobot" ) // drone defines expected drone behaviour @@ -33,7 +34,7 @@ type Adaptor struct { // func NewAdaptor(v ...string) *Adaptor { a := &Adaptor{ - name: "ARDrone", + name: gobot.DefaultName("ARDrone"), connect: func(a *Adaptor) (drone, error) { return client.Connect(a.config) }, diff --git a/platforms/parrot/ardrone/ardrone_driver.go b/platforms/parrot/ardrone/ardrone_driver.go index 94fa697b..c63ce4e4 100644 --- a/platforms/parrot/ardrone/ardrone_driver.go +++ b/platforms/parrot/ardrone/ardrone_driver.go @@ -22,7 +22,7 @@ type Driver struct { // 'flying' - Sent when the device has taken off. func NewDriver(connection *Adaptor) *Driver { d := &Driver{ - name: "ARDrone", + name: gobot.DefaultName("ARDrone"), connection: connection, Eventer: gobot.NewEventer(), }