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
b9e053e1
Commit
b9e053e1
authored
Apr 27, 2019
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
62dbd2f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
APMPowerComponent.qml
src/AutoPilotPlugins/APM/APMPowerComponent.qml
+57
-0
No files found.
src/AutoPilotPlugins/APM/APMPowerComponent.qml
View file @
b9e053e1
...
...
@@ -45,6 +45,8 @@ SetupPage {
property
bool
_batt2ParamsAvailable
:
controller
.
parameterExists
(
-
1
,
"
BATT2_CAPACITY
"
)
property
bool
_showBatt1Reboot
:
_batt1MonitorEnabled
&&
!
_batt1ParamsAvailable
property
bool
_showBatt2Reboot
:
_batt2MonitorEnabled
&&
!
_batt2ParamsAvailable
property
bool
_escCalibrationAvailable
:
controller
.
parameterExists
(
-
1
,
"
ESC_CALIBRATION
"
)
property
Fact
_escCalibration
:
controller
.
getParameterFact
(
-
1
,
"
ESC_CALIBRATION
"
,
false
/* reportMissing */
)
property
string
_restartRequired
:
qsTr
(
"
Requires vehicle reboot
"
)
...
...
@@ -217,6 +219,61 @@ SetupPage {
}
}
}
Column
{
spacing
:
_margins
/
2
visible
:
_escCalibrationAvailable
QGCLabel
{
text
:
qsTr
(
"
ESC Calibration
"
)
font.family
:
ScreenTools
.
demiboldFontFamily
}
Rectangle
{
width
:
escCalibrationHolder
.
x
+
escCalibrationHolder
.
width
+
_margins
height
:
escCalibrationHolder
.
y
+
escCalibrationHolder
.
height
+
_margins
color
:
ggcPal
.
windowShade
Column
{
id
:
escCalibrationHolder
x
:
_margins
y
:
_margins
spacing
:
_margins
Column
{
spacing
:
_margins
QGCLabel
{
text
:
qsTr
(
"
WARNING: Remove props prior to calibration!
"
)
color
:
qgcPal
.
warningText
}
Row
{
spacing
:
_margins
QGCButton
{
text
:
qsTr
(
"
Calibrate
"
)
enabled
:
_escCalibration
.
rawValue
===
0
onClicked
:
_escCalibration
.
rawValue
=
3
}
Column
{
enabled
:
_escCalibration
.
rawValue
===
3
QGCLabel
{
text
:
_escCalibration
.
rawValue
===
3
?
qsTr
(
"
Now perform these steps:
"
)
:
qsTr
(
"
Click Calibrate to start, then:
"
)
}
QGCLabel
{
text
:
qsTr
(
"
- Disconnect USB and battery so flight controller powers down
"
)
}
QGCLabel
{
text
:
qsTr
(
"
- Connect the battery
"
)
}
QGCLabel
{
text
:
qsTr
(
"
- The arming tone will be played (if the vehicle has a buzzer attached)
"
)
}
QGCLabel
{
text
:
qsTr
(
"
- If using a flight controller with a safety button press it until it displays solid red
"
)
}
QGCLabel
{
text
:
qsTr
(
"
- You will hear a musical tone then two beeps
"
)
}
QGCLabel
{
text
:
qsTr
(
"
- A few seconds later you should hear a number of beeps (one for each battery cell you’re using)
"
)
}
QGCLabel
{
text
:
qsTr
(
"
- And finally a single long beep indicating the end points have been set and the ESC is calibrated
"
)
}
QGCLabel
{
text
:
qsTr
(
"
- Disconnect the battery and power up again normally
"
)
}
}
}
}
}
}
}
}
// Flow
}
// Component - powerPageComponent
...
...
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