What does cf.param.set_value('flightmode.posSet', '1' means?

All discussions related to the Loco Positioning system
Post Reply
chilli65
Beginner
Posts: 10
Joined: Sat Oct 21, 2017 11:44 pm

What does cf.param.set_value('flightmode.posSet', '1' means?

Post by chilli65 »

In swarmSequence,py, there is cf.param.set_value('flightmode.posSet', '1') but not in swarmSequenceCircle.py. What is the effect of setting this parameter? Does it change the behavior of hover command? Is it mandatory for lps?
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: What does cf.param.set_value('flightmode.posSet', '1' means?

Post by tobias »

Unfortunately there is some legacy involved which will be cleaned up during the CrazySwarm merge we have ahead of us. To answer your questions the swarmSequence.py controls in position mode by setting cf.param.set_value('flightmode.posSet', '1') while swarmSequenceCircle.py controls in velocity mode.
chilli65
Beginner
Posts: 10
Joined: Sat Oct 21, 2017 11:44 pm

Re: What does cf.param.set_value('flightmode.posSet', '1' means?

Post by chilli65 »

Thanks. Possible to have some velocity control while in position mode to have some form of angular flight?
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: What does cf.param.set_value('flightmode.posSet', '1' means?

Post by arnaud »

We have experimented with a non-linear quaternion based controller made by Mike hammer at ETH that allows to send setpoints with position, velocity and acceleration, this allows to better follow pre-calculated trajectory. This controller has not been merged in master but we have it in the ICRA branch: https://github.com/bitcraze/crazyflie-f ... ller_new.c.
Post Reply