How to use cmdPosition or goTo to position hold? #388
Replies: 2 comments 3 replies
-
This is another case. I used figure8_scv.py, and this video is the result. In this case, other commands do not work after takeoff. 20210526_164029.1.mp4And I want to know what code it flew 49 crazyflies. Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
It looks like something is wrong with your tracking. Takeoff should always go straight up.
If you want to send one command and then sleep, you should use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to use vicon to control 1 crazyflie, but I don't know where the problem is.
Here are the issues.
When takeoff, It cannot hold position.
I wanted the drone to go to (0,0,0.5), but it is not.
My code is here
from pycrazyswarm import Crazyswarm
TAKEOFF_DURATION = 3.0
HOVER_DURATION = 1.0
def main():
swarm = Crazyswarm()
timeHelper = swarm.timeHelper
cf = swarm.allcfs.crazyflies[0]
if name == "main":
main()
The first video used cmdPosition, and the second used goTo.
Initial position is (0,0,0).
object_tracking_type is "libobjecttracker"
cmdPosition.mp4
goTo.mp4
Beta Was this translation helpful? Give feedback.
All reactions