Could anyone help me to clarify the definition of the 3 axes used in the firmware.
I am trying to separate the computation of x-axis and y-axis from the z axis's.
For example, one function does position control specifically for x and y axis, the other function does position control specifically for z axis.
The idea of implementing this is when I only make used of camera feeds for x and y axis, but crazyflie's barometer and accelerometer for z-axis.
Now I encounter a problem when I try to do the above steps. I am not sure whether I re-write it in the correct way or not as I have not any background on doing it.
The problem is, for x configuration.
is velocity.x corresponds to roll as I see the position control takes x-axis velocity to compute pid for roll values (e.g. float rollRaw = runPid(state->velocity.x, &this.pidVX,setpoint->velocity.x, DT).
However, in the commander, it seems like the x-axis corresponds to pitch value (e.g. set point->velocity.x = commanderGetActivePitch()/30.0f)
May I know where does x-axis in the firmware point to? is it between M1 and M4 or M3 and M4? Where should the Crazyflie face in front of a webcam if I want to control the x-axis of the Crazyflie?
Thanks a lot
