Square coordination

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

Square coordination

Post by RyanMco » Mon Dec 16, 2019 11:01 pm

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: 2275
Joined: Tue Feb 06, 2007 12:36 pm

Re: Square coordination

Post by arnaud » Tue Dec 17, 2019 7:12 am

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