Problems modeling Crazyflie controller in Matlab
Posted: Fri Jan 26, 2018 5:01 pm
Hi,
I am working on a school project and I am having difficulty creating a simulation for controlling a crazyflie in Matlab. I have been looking over the firmware but I am having trouble understanding it. I am pretty sure that the correct body frame orientation is X: forward, Y: left, Z: up. When I look at power_distribution_stock.c (https://github.com/bitcraze/crazyflie-f ... on_stock.c), based off lines 76-91, it looks like the body frame is instead X: forward, Y: right, Z:down. I'm assuming this is because of signs changes in other places of the firmware.
I believe my biggest issue is trying to accurately modeling the attitude/rate controllers used in the firmware. I am using the PID values stated in the firmware, but when I try to track an x or y position, the system becomes unstable. On the other hand I can track a desired altitude and yaw.
Any help would be appreciated,
Thanks!
I am working on a school project and I am having difficulty creating a simulation for controlling a crazyflie in Matlab. I have been looking over the firmware but I am having trouble understanding it. I am pretty sure that the correct body frame orientation is X: forward, Y: left, Z: up. When I look at power_distribution_stock.c (https://github.com/bitcraze/crazyflie-f ... on_stock.c), based off lines 76-91, it looks like the body frame is instead X: forward, Y: right, Z:down. I'm assuming this is because of signs changes in other places of the firmware.
I believe my biggest issue is trying to accurately modeling the attitude/rate controllers used in the firmware. I am using the PID values stated in the firmware, but when I try to track an x or y position, the system becomes unstable. On the other hand I can track a desired altitude and yaw.
Any help would be appreciated,
Thanks!