mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
Flip.pde: renamed dcm to ahrs
This commit is contained in:
parent
f55da34496
commit
198da9c5e6
@ -40,7 +40,7 @@ void roll_flip()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 2: // Step 3 : ROLL (until we reach a certain angle [45deg])
|
case 2: // Step 3 : ROLL (until we reach a certain angle [45deg])
|
||||||
if (dcm.roll_sensor < 4500){
|
if (ahrs.roll_sensor < 4500){
|
||||||
// Roll control
|
// Roll control
|
||||||
g.rc_1.servo_out = AAP_ROLL_OUT;
|
g.rc_1.servo_out = AAP_ROLL_OUT;
|
||||||
g.rc_3.servo_out = g.rc_3.control_in - AAP_THR_DEC;
|
g.rc_3.servo_out = g.rc_3.control_in - AAP_THR_DEC;
|
||||||
@ -50,7 +50,7 @@ void roll_flip()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 3: // Step 4 : CONTINUE ROLL (until we reach a certain angle [-45deg])
|
case 3: // Step 4 : CONTINUE ROLL (until we reach a certain angle [-45deg])
|
||||||
if ((dcm.roll_sensor >= 4500) || (dcm.roll_sensor < -4500)){
|
if ((ahrs.roll_sensor >= 4500) || (ahrs.roll_sensor < -4500)){
|
||||||
g.rc_1.servo_out = 0;
|
g.rc_1.servo_out = 0;
|
||||||
g.rc_3.servo_out = g.rc_3.control_in - AAP_THR_DEC;
|
g.rc_3.servo_out = g.rc_3.control_in - AAP_THR_DEC;
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
Reference in New Issue
Block a user