Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
deltaflight
deltaflight
Commits
7f04e0f6
Unverified
Commit
7f04e0f6
authored
Apr 18, 2021
by
Paweł Spychalski
Committed by
GitHub
Apr 18, 2021
Browse files
Merge pull request #6845 from kernel-machine/turtle-mode-bugfix
Turtle mode issue fix
parents
2a3ef6e2
fa9184bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/fc/fc_core.c
View file @
7f04e0f6
...
...
@@ -497,20 +497,6 @@ void tryArm(void)
{
updateArmingStatus
();
#ifdef USE_DSHOT
if
(
STATE
(
MULTIROTOR
)
&&
IS_RC_MODE_ACTIVE
(
BOXFLIPOVERAFTERCRASH
)
&&
emergencyArmingCanOverrideArmingDisabled
()
&&
isMotorProtocolDshot
()
&&
!
FLIGHT_MODE
(
FLIP_OVER_AFTER_CRASH
)
)
{
sendDShotCommand
(
DSHOT_CMD_SPIN_DIRECTION_REVERSED
);
ENABLE_ARMING_FLAG
(
ARMED
);
enableFlightMode
(
FLIP_OVER_AFTER_CRASH
);
return
;
}
#endif
#ifdef USE_PROGRAMMING_FRAMEWORK
if
(
!
isArmingDisabled
()
||
...
...
@@ -527,6 +513,21 @@ void tryArm(void)
return
;
}
#ifdef USE_DSHOT
if
(
STATE
(
MULTIROTOR
)
&&
IS_RC_MODE_ACTIVE
(
BOXFLIPOVERAFTERCRASH
)
&&
emergencyArmingCanOverrideArmingDisabled
()
&&
isMotorProtocolDshot
()
&&
!
FLIGHT_MODE
(
FLIP_OVER_AFTER_CRASH
)
)
{
sendDShotCommand
(
DSHOT_CMD_SPIN_DIRECTION_REVERSED
);
ENABLE_ARMING_FLAG
(
ARMED
);
enableFlightMode
(
FLIP_OVER_AFTER_CRASH
);
return
;
}
#endif
#if defined(USE_NAV)
// If nav_extra_arming_safety was bypassed we always
// allow bypassing it even without the sticks set
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment