forked from kirillin/tello_driver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTello.cfg
executable file
·30 lines (24 loc) · 1.33 KB
/
Tello.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env python
PACKAGE = "tello_driver"
from dynamic_reconfigure.parameter_generator_catkin import *
gen = ParameterGenerator()
vidrate_enum = gen.enum(
[gen.const("Auto", int_t, 0, "Let drone automatically decide"),
gen.const("1p0Mbps", int_t, 1, "Set to 1.0Mb/s fixed rate (~4.5KB/frame @ 30fps)"),
gen.const("1p5Mbps", int_t, 2, "Set to 1.5Mb/s fixed rate (~6.6KB/frame @ 30fps)"),
gen.const("2p0Mbps", int_t, 3, "Set to 2.0Mb/s fixed rate (~8.5KB/frame @ 30fps)"),
gen.const("2p5Mbps", int_t, 4, "Set to 2.5Mb/s fixed rate ( ~11KB/frame @ 30fps)"),],
"Video rate options")
gen.add("fixed_video_rate", int_t, 0, "Video rate", 0, 0, 4, edit_method=vidrate_enum)
gen.add("video_req_sps_hz", double_t, 0,
"Rate for regularly requesting SPS data from drone (0: disabled)",
0.5, 0.0, 4.0)
# Limit altitude control (Jordy)
gen.add("altitude_limit", int_t, 0, "Limit altitude of Tello", 10, 1, 100)
# Limit attitude control (Jordy)
gen.add("attitude_limit", int_t, 0, "Limit attitude of Tello", 15, 15, 25)
# Set low battery threshold (Jordy)
gen.add("low_bat_threshold", int_t, 0, "Set low battery threshold of Tello", 7, 1, 100)
# Scale velocity control (Jordy)
gen.add("vel_cmd_scale", double_t, 0, "Scale (down) vel_cmd value", 0.5, 0.01, 1.0)
exit(gen.generate(PACKAGE, "tello_driver_node.py", "Tello"))