mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 18:38:28 -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
1a35209e5d
commit
0227c97a99
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user