File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ bool AP_Arming_Copter::arm_checks(AP_Arming::Method method)
568
568
{
569
569
if (method == AP_Arming::Method::RUDDER) {
570
570
#if TOY_MODE_ENABLED
571
- if (g2.toy_mode .enabled ()) {
571
+ if (copter. g2 .toy_mode .enabled ()) {
572
572
// not armed with sticks in toy mode
573
573
check_failed (true , " Rudder-arming: disabled in toy mode" );
574
574
return false ;
Original file line number Diff line number Diff line change @@ -803,7 +803,7 @@ void ToyMode::action_arm(void)
803
803
// we want GPS and checks are passing, arm and enable fence
804
804
copter.fence .enable (true , AC_FENCE_ALL_FENCES);
805
805
#endif
806
- copter.arming .arm (AP_Arming::Method::RUDDER );
806
+ copter.arming .arm (AP_Arming::Method::TOYMODE );
807
807
if (!copter.motors ->armed ()) {
808
808
AP_Notify::events.arming_failed = true ;
809
809
gcs ().send_text (MAV_SEVERITY_ERROR, " Tmode: GPS arming failed" );
@@ -819,7 +819,7 @@ void ToyMode::action_arm(void)
819
819
// non-GPS mode
820
820
copter.fence .enable (false , AC_FENCE_ALL_FENCES);
821
821
#endif
822
- copter.arming .arm (AP_Arming::Method::RUDDER );
822
+ copter.arming .arm (AP_Arming::Method::TOYMODE );
823
823
if (!copter.motors ->armed ()) {
824
824
AP_Notify::events.arming_failed = true ;
825
825
gcs ().send_text (MAV_SEVERITY_ERROR, " Tmode: non-GPS arming failed" );
You can’t perform that action at this time.
0 commit comments