Commit Graph

55 Commits

Author SHA1 Message Date
gram eb7e419c49 document fields for flight data 2022-10-03 18:24:38 +02:00
st-user 7031d1ec29 Dji Tello Halt does not terminate all the related goroutines and may wait forever when it is called multiple times
Halt method waits forever when at least one of the goroutines is blocked by its Read method. To avoid this, I make Halt method close the connections before writing to doneCh.
2022-09-26 19:20:32 +02:00
st-user 11259d468d Dji Tello Halt does not terminate all the related goroutines and may wait forever when it is called multiple times
Fix the test for Halt method so that it waits for all the related goroutines to complete.
2022-09-26 19:20:32 +02:00
st-user b07a272ca6 Dji Tello Halt does not terminate all the related goroutines and may wait forever when it is called multiple times
Fix the issue.
2022-09-26 19:20:32 +02:00
st-user 3c8f48a8ac Dji Tello Halt does not terminate all the related goroutines and may wait forever when it is called multiple times
Add failing unit tests.
2022-09-26 19:20:32 +02:00
Bruno Meneguello 97d23a5aec Guards Dji Tello Halt against nil dereference
Fixes #778
2021-01-27 18:52:56 +01:00
Mikael Manukyan e80a701df5 Add graceful halt for Tello driver
* graceful terminate connections for video and command communication
2020-03-17 11:44:13 +01:00
danacr 78ae715e6c Added tello edu driver 2020-01-11 19:16:09 +01:00
Hiro Ebisu 7a06a432af Updated videoPort for DJI Tello to 11111 2019-06-16 20:50:51 +09:00
Silke Hofstra 6b061af9ca tello: add direct vector access
Signed-off-by: Silke Hofstra <silke@slxh.eu>
2019-05-22 11:34:39 +02:00
Silke Hofstra 79de57d475 tello: update FlightData struct
- Correct the name of EmSky, EmGround and GroundSpeed to Flying,
  OnGround and VerticalSpeed.
- Remove FlySpeed, WifiDisturb and WifiStrength as these are not part
  of the data.
- Add AirSpeed() and GroundSpeed() for calculating the airspeed and
  ground speed.

Signed-off-by: Silke Hofstra <silke@slxh.eu>
2019-05-22 11:34:39 +02:00
eleniums e415ef235a Check for error immediately and skip publish if error occurred
Signed-off-by: eleniums <eleniums@yahoo.com>
2019-05-22 11:34:39 +02:00
Fabian Baier 31555a0b9b
Hot-fix driver.go
drone.Hover() was not showing expected behavior in stopping the movement due to missing d.lx type.
2018-10-14 21:15:18 -07:00
Ron Evans a0b92d8407 tello: send Land() command to drone on Halt() to avoid floating mid-air
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-08-24 09:06:29 +02:00
Trevor Rosen 96afbcfe38
Add motion cessation commands to Tello 2018-08-11 15:09:33 -05:00
oliverpool 146b37de39 specify end of msgType position
Signed-off-by: Olivier Charvin <oliverpool@hotmail.fr>
2018-07-13 09:19:09 +02:00
oliverpool 8374ea05b0 handleResponse should not send commands
Signed-off-by: Olivier Charvin <oliverpool@hotmail.fr>
2018-07-13 09:19:09 +02:00
oliverpool 26dfd39df4 add handleResponse testing
Signed-off-by: Olivier Charvin <oliverpool@hotmail.fr>
2018-07-13 09:19:09 +02:00
oliverpool c42ffd804e rename reqConn to cmdConn
Signed-off-by: Olivier Charvin <oliverpool@hotmail.fr>
2018-07-13 09:19:09 +02:00
oliverpool 8b323d0011 reqConn is only an io.WriteCloser
Signed-off-by: Olivier Charvin <oliverpool@hotmail.fr>
2018-07-13 09:19:09 +02:00
oliverpool 1a40eb971b handleResponse only needs an io.Reader
Signed-off-by: Olivier Charvin <oliverpool@hotmail.fr>
2018-07-13 09:19:09 +02:00
Ron Evans 615cd71863 joystick: full corrected ds3 and ds4 mappings plus examples to match for latest sdl 2.0.8
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-05-25 12:19:22 +02:00
cbwang2016 e06e6c696c
bug fix 2018-05-22 14:14:46 +08:00
cbwang2016 4918062179
StopLanding feature 2018-05-22 08:46:15 +08:00
cbwang2016 244d26c993
slow/fast mode switch function 2018-05-21 15:06:27 +08:00
cbwang2016 18bec8941a
Merge branch 'dev' into patch-2 2018-05-18 18:56:58 +08:00
Ron Evans 8db4d60a47
Merge pull request #537 from SMerrony/dev
Tello: Driver - Add Bounce() and PalmLand() funcs and associated events
2018-05-18 12:19:54 +02:00
cbwang2016 ef5b5542ad
Update driver.go 2018-05-18 17:58:35 +08:00
cbwang2016 1463bf665f
Update driver.go
Add Throw & Go support(Usage same as TakeOff() function)
2018-05-18 17:33:57 +08:00
cbwang2016 6853f5c4cb
Update driver.go
According to my reverse-engineering, it should be like this.
2018-05-18 14:28:42 +08:00
Stephen Merrony 1a66da07d4 Add Bounce() and PalmLand() funcs and their associated events. 2018-05-17 14:01:03 +01:00
Stephen Merrony ab7e7b685a Correcting for PR comments 2018-05-17 10:06:11 +01:00
Stephen Merrony c23d9fc7f7 Make Go Lint happier by adding some explicit type conversions and ignoring unused error returns 2018-05-16 09:28:06 +01:00
Stephen Merrony 0416524cca Change several fields in FlightData struct from int16 to bool 2018-05-15 15:27:24 +01:00
Stephen Merrony af6e2c7228 Export the FlightData fields (see Issue #531) 2018-05-15 11:47:53 +01:00
Ron Evans 50919bc0c4 tello: reorder main file
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-24 10:57:04 +02:00
Ron Evans 32bdff6492 tello: refactor crc8 and crc16 functions
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-24 10:29:59 +02:00
Ron Evans b0ff165a42 tello: correct packet construction now working
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-24 10:11:10 +02:00
Ron Evans d113da1770 tello: switch to using external crc8 and cr16 packages
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-23 20:43:22 +02:00
Ron Evans c0e08e250d tello: API improvements by using const values and types for streaming video settings
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-22 18:15:38 +02:00
Ron Evans 9875acbe06 tello: improve video encoding rate API call
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-19 18:28:14 +02:00
Ron Evans 9c798b8578 tello: add SetVideoEncoderRate command
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-19 15:22:05 +02:00
Ron Evans 80975336d2 tello: cleanup docs
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-19 09:50:40 +02:00
Ron Evans 79ffaab5b4 tello: can stream drone video thru to opencv
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-18 22:46:51 +02:00
Ron Evans 4fe09d8e04 tello: flip commands works, a bunch of events, and video streaming example using ffplay
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-18 12:15:18 +02:00
Ron Evans 75465900f3 tello: properly event the various known notification packets
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-17 15:01:34 +02:00
Ron Evans e25a1bf7dd tello: WIP on adding support for video streaming from drone
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-16 23:08:22 +02:00
Ron Evans 03e3dcd9b8 tello: ability to send real-time stick commands
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-13 13:50:11 +02:00
Ron Evans ecfe8015ef tello: basic parsing of flight data packets
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-12 12:25:39 +02:00
Ron Evans 6ffb160f85 tello: update README with latest info
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-04-12 12:25:39 +02:00