Merge pull request #680 from hebisu/dev
Update videoPort for DJI Tello to 11111
This commit is contained in:
commit
ea6a732352
|
@ -199,7 +199,7 @@ func NewDriver(port string) *Driver {
|
||||||
d := &Driver{name: gobot.DefaultName("Tello"),
|
d := &Driver{name: gobot.DefaultName("Tello"),
|
||||||
reqAddr: "192.168.10.1:8889",
|
reqAddr: "192.168.10.1:8889",
|
||||||
respPort: port,
|
respPort: port,
|
||||||
videoPort: "6038",
|
videoPort: "11111",
|
||||||
Eventer: gobot.NewEventer(),
|
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())
|
d.SendCommand(d.connectionString())
|
||||||
|
|
||||||
// send stick commands
|
// send stick commands
|
||||||
|
@ -899,7 +899,7 @@ func (d *Driver) handleResponse(r io.Reader) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Driver) processVideo() error {
|
func (d *Driver) processVideo() error {
|
||||||
videoPort, err := net.ResolveUDPAddr("udp", ":6038")
|
videoPort, err := net.ResolveUDPAddr("udp", ":11111")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue