Adjusting Pitch, and Changing yaw and roll
Posted: Mon Jun 27, 2016 10:40 pm
![-> :arrow:](./images/smilies/icon_arrow.gif)
![? :?:](./images/smilies/icon_question.gif)
![? :?:](./images/smilies/icon_question.gif)
![:-/ :roll:](./images/smilies/icon_rolleyes.gif)
![:~( :cry:](./images/smilies/icon_cry.gif)
![:-/ :roll:](./images/smilies/icon_rolleyes.gif)
The Bitcraze web forum
https://forum.bitcraze.io/
Hi, welcome to the forum!MS_642 wrote:I had a question on where to find the code to adjust the pitch by adding 90 degrees to it and changing the yaw with roll and roll with yaw
![]()
I just got CF 2.0 and there are lots of files in the Eclipse and I am quite lost
![]()
![]()
I am trying to make it fly horizontally so add value to the pitch at the beginning when it starts so it will be 90 degrees added to it and change the yaw to be around the yaxis control and the roll around the z axis movementchad wrote:Hi, welcome to the forum!MS_642 wrote:I had a question on where to find the code to adjust the pitch by adding 90 degrees to it and changing the yaw with roll and roll with yaw
![]()
I just got CF 2.0 and there are lots of files in the Eclipse and I am quite lost
![]()
![]()
Yes, the Crazyflir firmware is a complex system. What are you trying to accomplish, exactly...?
Maybe there are easier ways to go about it. For instance, swapping yaw and roll can be done with controller configurations.
What are you trying to achieve?
Yes I will be adding things to it, but in I cannot get the controls, I have tried with stabilizer, but I cannot see where I can edit or configure like the error for pitch and change it. Also I was wondering if changing it in python would be easier. if so how can i download python on the VM as this is my first time dealing with Ubuntu and VM. Unlike the Eclipse it was already there, but the python program is not.chad wrote:You might want to have a look at Arnaud's Crazyblimp project on Hackster.io. He did something similar to what you want. The code changes you'll likely need to make are in stabilizer.c. I don't think it will be able to fly horizontally on its own though... You'll need something to keep it aloft (like the balloons in the project I linked above).