0 ArduCopter Posted by Altaf on September 22, 2012 at 5:09am Which part of the code in the ArduCopter v2.7.3 makes the ArduCopter roll left/right, yaw and pitch up/down ?? You need to be a member of diydrones to add comments! Join diydrones Tags: uav, arducopter, mission, planner Email me when people reply – Follow
Replies
most of the attitude control code is in the Attitude.pde
get_stabilize_pitch takes an angle (x100) (we use centedegrees for integer accuracy and fast calcs where possible)
It returns a servo angle output which is converted to PWM by the motor mixer.
get_stabilize_pitch is called in Arducopter.pde by a variety of flight modes inside of a switch in update_roll_pitch_mode()
Jason