Square coordination

Firmware/software/electronics
Post Reply
RyanMco
Expert
Posts: 159
Joined: Tue Apr 09, 2019 6:15 am

Square coordination

Post 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?
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Square coordination

Post 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 ?
Post Reply