mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
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:
parent
863e77677e
commit
e6d9a6921a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user