Merge pull request #680 from hebisu/dev

Update videoPort for DJI Tello to 11111
This commit is contained in:
Trevor Rosen 2019-10-01 08:08:23 -05:00 committed by GitHub
commit ea6a732352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -199,7 +199,7 @@ func NewDriver(port string) *Driver {
d := &Driver{name: gobot.DefaultName("Tello"),
reqAddr: "192.168.10.1:8889",
respPort: port,
videoPort: "6038",
videoPort: "11111",
Eventer: gobot.NewEventer(),
}
@ -264,7 +264,7 @@ func (d *Driver) Start() error {
}
}()
// starts notifications coming from drone to video port normally 6038
// starts notifications coming from drone to video port normally 11111
d.SendCommand(d.connectionString())
// send stick commands
@ -899,7 +899,7 @@ func (d *Driver) handleResponse(r io.Reader) error {
}
func (d *Driver) processVideo() error {
videoPort, err := net.ResolveUDPAddr("udp", ":6038")
videoPort, err := net.ResolveUDPAddr("udp", ":11111")
if err != nil {
return err
}