I need to make a few programming changes to the stabilize mode angle and rate controllers in ArduCopter by hard-coding the P I D values.I wanted to access the part of the code in arducopter libraries where P I D values are loaded from the mission planner, so that I can rewrite my own values instead of loading them from the mission planner. I browsed through the entire code and in AC_AttitudeControl.cpp I found the following functions which I think will lead me to what I am looking for:-
1) _p_angle_roll.kP() and _p_angle_pitch.kP() (FOR ANGLE CONTROLLER)
2) _pid_rate_roll.get_p() and _pid_rate_roll.get_p() (FOR RATE CONTROLLER)
I am having difficulty in tracing these functions all the way back to where they 'get' values of P (for both angle and rate controller).
Any help in this matter will be highly appreciated.