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
9e5b18c5
Unverified
Commit
9e5b18c5
authored
Feb 03, 2018
by
Don Gagne
Committed by
GitHub
Feb 03, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6100 from DonLakeFlyer/RadioLoc
Allow loc of radios string
parents
a96cc2d2
560cfccd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
RadioComponentController.cc
src/AutoPilotPlugins/Common/RadioComponentController.cc
+17
-17
No files found.
src/AutoPilotPlugins/Common/RadioComponentController.cc
View file @
9e5b18c5
...
...
@@ -123,23 +123,23 @@ RadioComponentController::~RadioComponentController()
/// @brief Returns the state machine entry for the specified state.
const
RadioComponentController
::
stateMachineEntry
*
RadioComponentController
::
_getStateMachineEntry
(
int
step
)
const
{
static
const
char
*
msgBeginPX4
=
"Lower the Throttle stick all the way down as shown in diagram.
\n\n
"
static
const
char
*
msgBeginPX4
=
QT_TR_NOOP
(
"Lower the Throttle stick all the way down as shown in diagram.
\n\n
"
"It is recommended to disconnect all motors for additional safety, however, the system is designed to not arm during the calibration.
\n\n
"
"Click Next to continue"
;
static
const
char
*
msgBeginAPM
=
"Lower the Throttle stick all the way down as shown in diagram.
\n
Reset all transmitter trims to center.
\n\n
"
"Click Next to continue"
)
;
static
const
char
*
msgBeginAPM
=
QT_TR_NOOP
(
"Lower the Throttle stick all the way down as shown in diagram.
\n
Reset all transmitter trims to center.
\n\n
"
"Please ensure all motor power is disconnected AND all props are removed from the vehicle.
\n\n
"
"Click Next to continue"
;
static
const
char
*
msgThrottleUp
=
"Move the Throttle stick all the way up and hold it there..."
;
static
const
char
*
msgThrottleDown
=
"Move the Throttle stick all the way down and leave it there..."
;
static
const
char
*
msgYawLeft
=
"Move the Yaw stick all the way to the left and hold it there..."
;
static
const
char
*
msgYawRight
=
"Move the Yaw stick all the way to the right and hold it there..."
;
static
const
char
*
msgRollLeft
=
"Move the Roll stick all the way to the left and hold it there..."
;
static
const
char
*
msgRollRight
=
"Move the Roll stick all the way to the right and hold it there..."
;
static
const
char
*
msgPitchDown
=
"Move the Pitch stick all the way down and hold it there..."
;
static
const
char
*
msgPitchUp
=
"Move the Pitch stick all the way up and hold it there..."
;
static
const
char
*
msgPitchCenter
=
"Allow the Pitch stick to move back to center..."
;
static
const
char
*
msgSwitchMinMax
=
"Move all the transmitter switches and/or dials back and forth to their extreme positions."
;
static
const
char
*
msgComplete
=
"All settings have been captured. Click Next to write the new parameters to your board."
;
"Click Next to continue"
)
;
static
const
char
*
msgThrottleUp
=
QT_TR_NOOP
(
"Move the Throttle stick all the way up and hold it there..."
)
;
static
const
char
*
msgThrottleDown
=
QT_TR_NOOP
(
"Move the Throttle stick all the way down and leave it there..."
)
;
static
const
char
*
msgYawLeft
=
QT_TR_NOOP
(
"Move the Yaw stick all the way to the left and hold it there..."
)
;
static
const
char
*
msgYawRight
=
QT_TR_NOOP
(
"Move the Yaw stick all the way to the right and hold it there..."
)
;
static
const
char
*
msgRollLeft
=
QT_TR_NOOP
(
"Move the Roll stick all the way to the left and hold it there..."
)
;
static
const
char
*
msgRollRight
=
QT_TR_NOOP
(
"Move the Roll stick all the way to the right and hold it there..."
)
;
static
const
char
*
msgPitchDown
=
QT_TR_NOOP
(
"Move the Pitch stick all the way down and hold it there..."
)
;
static
const
char
*
msgPitchUp
=
QT_TR_NOOP
(
"Move the Pitch stick all the way up and hold it there..."
)
;
static
const
char
*
msgPitchCenter
=
QT_TR_NOOP
(
"Allow the Pitch stick to move back to center..."
)
;
static
const
char
*
msgSwitchMinMax
=
QT_TR_NOOP
(
"Move all the transmitter switches and/or dials back and forth to their extreme positions."
)
;
static
const
char
*
msgComplete
=
QT_TR_NOOP
(
"All settings have been captured. Click Next to write the new parameters to your board."
)
;
static
const
stateMachineEntry
rgStateMachinePX4
[]
=
{
//Function
...
...
@@ -206,9 +206,9 @@ 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
"
static
const
char
*
msgBeginAPMRover
=
QT_TR_NOOP
(
"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"
;
"Click Next to continue"
)
;
const
stateMachineEntry
*
state
=
_getStateMachineEntry
(
_currentStep
);
const
char
*
instructions
=
state
->
instructions
;
...
...
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