Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
bcade365
Commit
bcade365
authored
Jun 23, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rover radio cal fixes
Throttle trim must be center throttle
parent
269ce521
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
RadioComponentController.cc
src/AutoPilotPlugins/Common/RadioComponentController.cc
+14
-5
No files found.
src/AutoPilotPlugins/Common/RadioComponentController.cc
View file @
bcade365
...
...
@@ -206,11 +206,20 @@ void RadioComponentController::_advanceState(void)
/// @brief Sets up the state machine according to the current step from _currentStep.
void
RadioComponentController
::
_setupCurrentState
(
void
)
{
static
const
char
*
msgBeginAPMRover
=
"Center the Throttle stick as shown in diagram.
\n
Reset all transmitter trims to center.
\n\n
"
"Please ensure all motor power is disconnected from the vehicle.
\n\n
"
"Click Next to continue"
;
const
stateMachineEntry
*
state
=
_getStateMachineEntry
(
_currentStep
);
_statusText
->
setProperty
(
"text"
,
state
->
instructions
);
_setHelpImage
(
state
->
image
);
const
char
*
instructions
=
state
->
instructions
;
const
char
*
helpImage
=
state
->
image
;
if
(
_vehicle
->
rover
()
&&
_currentStep
==
0
)
{
// Hack in center throttle start for Rover. This is to set the correct centered trim for throttle.
instructions
=
msgBeginAPMRover
;
helpImage
=
_imageCenter
;
}
_statusText
->
setProperty
(
"text"
,
instructions
);
_setHelpImage
(
helpImage
);
_stickDetectChannel
=
_chanMax
();
_stickDetectSettleStarted
=
false
;
...
...
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