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
1ab57601
Commit
1ab57601
authored
Apr 05, 2017
by
Don Gagne
Committed by
GitHub
Apr 05, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4926 from DonLakeFlyer/Fixes
Fixes
parents
23ad3af0
960b6aec
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
10 deletions
+6
-10
FactTextField.qml
src/FactSystem/FactControls/FactTextField.qml
+1
-1
FirmwarePlugin.cc
src/FirmwarePlugin/FirmwarePlugin.cc
+1
-1
FirmwarePlugin.h
src/FirmwarePlugin/FirmwarePlugin.h
+1
-1
MissionController.h
src/MissionManager/MissionController.h
+2
-2
PlanToolBar.qml
src/PlanView/PlanToolBar.qml
+0
-5
PlanView.qml
src/PlanView/PlanView.qml
+1
-0
No files found.
src/FactSystem/FactControls/FactTextField.qml
View file @
1ab57601
...
...
@@ -21,7 +21,7 @@ QGCTextField {
property
string
_validateString
// At this point all Facts are numeric
inputMethodHints
:
(
fact
||
fact
.
typeIsString
||
ScreenTools
.
isiOS
)
?
inputMethodHints
:
(
(
fact
&&
fact
.
typeIsString
)
||
ScreenTools
.
isiOS
)
?
Qt
.
ImhNone
:
// iOS numeric keyboard has no done button, we can't use it
Qt
.
ImhFormattedNumbersOnly
// Forces use of virtual numeric keyboard
...
...
src/FirmwarePlugin/FirmwarePlugin.cc
View file @
1ab57601
...
...
@@ -438,7 +438,7 @@ bool FirmwarePlugin::_armVehicle(Vehicle* vehicle)
return
vehicle
->
armed
();
}
void
FirmwarePlugin
::
batteryConsumptionData
(
Vehicle
*
vehicle
,
int
&
mAhBattery
,
int
&
hoverAmps
,
int
&
cruiseAmps
)
const
void
FirmwarePlugin
::
batteryConsumptionData
(
Vehicle
*
vehicle
,
int
&
mAhBattery
,
double
&
hoverAmps
,
double
&
cruiseAmps
)
const
{
Q_UNUSED
(
vehicle
);
mAhBattery
=
0
;
...
...
src/FirmwarePlugin/FirmwarePlugin.h
View file @
1ab57601
...
...
@@ -280,7 +280,7 @@ public:
/// @param[out] mAhBattery Battery milliamp-hours rating (0 for no battery data available)
/// @param[out] hoverAmps Current draw in amps during hover
/// @param[out] cruiseAmps Current draw in amps during cruise
virtual
void
batteryConsumptionData
(
Vehicle
*
vehicle
,
int
&
mAhBattery
,
int
&
hoverAmps
,
int
&
cruiseAmps
)
const
;
virtual
void
batteryConsumptionData
(
Vehicle
*
vehicle
,
int
&
mAhBattery
,
double
&
hoverAmps
,
double
&
cruiseAmps
)
const
;
// FIXME: Hack workaround for non pluginize FollowMe support
static
const
char
*
px4FollowMeFlightMode
;
...
...
src/MissionManager/MissionController.h
View file @
1ab57601
...
...
@@ -50,8 +50,8 @@ public:
double
vehicleSpeed
;
///< Either cruise or hover speed based on vehicle type and vtol state
double
gimbalYaw
;
///< NaN signals yaw was never changed
int
mAhBattery
;
///< 0 for not available
int
hoverAmps
;
///< Amp consumption during hover
int
cruiseAmps
;
///< Amp consumption during cruise
double
hoverAmps
;
///< Amp consumption during hover
double
cruiseAmps
;
///< Amp consumption during cruise
double
ampMinutesAvailable
;
///< Amp minutes available from single battery
double
hoverAmpsTotal
;
///< Total hover amps used
double
cruiseAmpsTotal
;
///< Total cruise amps used
...
...
src/PlanView/PlanToolBar.qml
View file @
1ab57601
...
...
@@ -39,11 +39,6 @@ Rectangle {
property
bool
_controllerValid
:
missionController
!=
undefined
property
bool
_manualUpload
:
QGroundControl
.
settingsManager
.
appSettings
.
automaticMissionUpload
.
rawValue
==
0
Connections
{
target
:
QGroundControl
.
settingsManager
.
appSettings
.
automaticMissionUpload
onRawValueChanged
:
console
.
log
(
"
changed
"
,
QGroundControl
.
settingsManager
.
appSettings
.
automaticMissionUpload
.
rawValue
)
}
property
real
_largeValueWidth
:
ScreenTools
.
defaultFontPixelWidth
*
8
property
real
_smallValueWidth
:
ScreenTools
.
defaultFontPixelWidth
*
4
property
real
_labelToValueSpacing
:
ScreenTools
.
defaultFontPixelWidth
...
...
src/PlanView/PlanView.qml
View file @
1ab57601
...
...
@@ -718,6 +718,7 @@ QGCView {
// Mission Item Editor
Item
{
id
:
missionItemEditor
anchors.topMargin
:
ScreenTools
.
defaultFontPixelHeight
/
2
anchors.top
:
planElementSelectorRow
.
visible
?
planElementSelectorRow
.
bottom
:
planElementSelectorRow
.
top
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
...
...
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