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 863e77677e
commit e6d9a6921a
1 changed files with 2 additions and 0 deletions

View File

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