HIL: don't access dcm functions in HIL mode

the dcm is not valid in HIL_MODE_ATTITUDE

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2894 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
tridge60@gmail.com 2011-07-17 10:33:53 +00:00
parent 1a35209e5d
commit 0227c97a99

View File

@ -314,8 +314,10 @@ static void startup_ground(void)
//*/ //*/
// setup DCM for copters: // setup DCM for copters:
#if HIL_MODE != HIL_MODE_ATTITUDE
dcm.kp_roll_pitch(0.12); // higher for quads dcm.kp_roll_pitch(0.12); // higher for quads
dcm.ki_roll_pitch(0.00000319); // 1/4 of the normal rate dcm.ki_roll_pitch(0.00000319); // 1/4 of the normal rate
#endif
//dcm.kp_yaw(0.02); //dcm.kp_yaw(0.02);
//dcm.ki_yaw(0); //dcm.ki_yaw(0);