[SOLVED] So what is client side x-mode

Discussions and questions about the Crazyflie Nano Quadcopter
Post Reply
lxrocks
Member
Posts: 31
Joined: Sat Feb 15, 2014 1:24 am

[SOLVED] So what is client side x-mode

Post by lxrocks »

So what does x-mode do?

I looked at the code and it seems that the client makes some kind of adjustment to roll and pitch, I don't understand the purpose of this.
Last edited by lxrocks on Sat Jan 10, 2015 9:42 am, edited 1 time in total.
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: So what is client side x-mode

Post by chad »

CF1.0 could fly in either a '+' configuration (M1 motor arm in front) on in an 'x' configuration (red LED in front). The '+' configuration was default out-of-the-box behavior. The 'client-side x' enables control of the CF in the 'x' configuration. See the wiki pages on flight control and Crazyflie components for more info... I'm not sure if it applies to CF2.0 (which comes out of the box in 'x' configuration)...
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
lxrocks
Member
Posts: 31
Joined: Sat Feb 15, 2014 1:24 am

Re: So what is client side x-mode

Post by lxrocks »

Thanks Chad,

That makes sense now, I had not noticed the difference in the motor arm layouts between the CF1 & CF2
dbrgn
Member
Posts: 51
Joined: Tue Dec 16, 2014 9:42 pm

Re: So what is client side x-mode

Post by dbrgn »

AAAAAH! I always assumed that mode would re-calculate the x/y controls based on the rotation of the CF.

What about a firmware update that adds rotation aware controls? You could store the current yaw when turning on the flie and then re-calculate all commands according to that rotation. The only precondition would be that the user stands straight behind the flie when starting.
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: So what is client side x-mode

Post by marcus »

dbrgn wrote:AAAAAH! I always assumed that mode would re-calculate the x/y controls based on the rotation of the CF.

What about a firmware update that adds rotation aware controls? You could store the current yaw when turning on the flie and then re-calculate all commands according to that rotation. The only precondition would be that the user stands straight behind the flie when starting.
That's a good idea. A while back we had a patch for doing this on the client side, but we would really like to have it in the firmware since it would be more clean. Also, since the number of host platforms increase (iOS, Android, computer) it's a lot more efficient to implement features in the firmware. I've added an issue for it, so if anyone feels up to the task it would be great if you wanted to help out.
Post Reply