Commit Graph

65 Commits

Author SHA1 Message Date
Thomas Kohler 7f78edefcd
lint(all): fix issues of errorlint etc (#1037) 2023-11-15 20:51:52 +01:00
Thomas Kohler a4a8d1079c
build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
Thomas Kohler 3039b2c7cb
test(all): switch to test package stretchr testify (#1006) 2023-10-20 10:27:09 +02:00
Thomas Kohler 875d972fab
tello: fix wifiMessage and lightMessage (#957) 2023-06-14 17:57:44 +02:00
Thomas Kohler f5d8d5c601
all(style) : fix linter issues for errcheck, ineffassign, unused and fix errors (#950) 2023-06-12 19:51:25 +02:00
Joey Berkovitz d9061ced63
tello: Fix partially #793 by initialize doneCh in NewDriverWithIP (#931) 2023-06-11 11:10:17 +02:00
Thomas Kohler 0d0a508c60
core(build): CLI removed (#946)
* core(build): CLI removed
* adjust install instructions in doc and README
* fix master_test and remove useless/duplicated tests examples_test.go
2023-06-04 18:36:55 +02:00
Thomas Kohler 865e724af0
Build(v2): revert move to v2 subfolder (#932)
* revert move to v2 subfolder
* fix CI and adjust CHANGELOG
2023-05-29 19:23:28 +02:00
Thomas Kohler d908619462
Build(v2): fix usage by moving code to a v2 subfolder (#927) 2023-05-22 19:35:36 +02:00
Thomas Kohler 949392d8a7
Fix(core): Semantic Import Versioning for v2 (#921) 2023-05-20 14:25:21 +02:00
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