I have a go file named as drone_control.go which controls dji tello drone with keyboard button clicks. When I try to execute this file using the command prompt it shows an error * exec: "stty": executable file not found in %PATH%
I am using windows 10 and gobot framework to control the drone.
following is the content of my drone_control.go file.
package main
import (
"time"
"gobot.io/x/gobot"
"gobot.io/x/gobot/platforms/dji/tello"
"gobot.io/x/gobot/platforms/keyboard"
)
func main() {
drone := tello.NewDriver("8888")
keys := keyboard.NewDriver()
work := func() {
drone.TakeOff()
keys.On(keyboard.Key, func(data interface{}) {
key := data.(keyboard.KeyEvent)
if key.Key == keyboard.A {
drone.FrontFlip()
}
})
gobot.After(10*time.Second, func() {
drone.BackFlip()
})
gobot.After(15*time.Second, func() {
drone.Land()
})
}//work end
robot := gobot.NewRobot("tello",
[]gobot.Connection{},
[]gobot.Device{keys},
[]gobot.Device{drone},
work,
)
robot.Start()
}//main end