Page 1 of 1

Square coordination

Posted: Mon Dec 16, 2019 11:01 pm
by RyanMco
Hi guys!
I want my drone to do square by using crazyfle_ros script; i told to my crazyflie to do like this:
cf.goto[(1,0,0)]
cf.goto[(1,1,0)]
cf.goto[(0,0,1)]
cf.goto[(1,0,0)]
This is square coordination and i want my drone to do like this but actually he doesnt do square he acts like crazy with an random path and not doing square..any help?

Re: Square coordination

Posted: Tue Dec 17, 2019 7:12 am
by arnaud
What is your exact python code? The code you wrote there would not work in python ( [] and () are reversed) so I assume this is not what is exactly in your script.

The goto function takes a couple of arguments, are you giving them all (in you case relative should be false): https://github.com/whoenig/crazyflie_ro ... vel.py#L23 ?