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
6af64398
Commit
6af64398
authored
May 27, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3412 from DonLakeFlyer/3rdCompassSupport
Remove 3rd compass fail check
parents
c3232d4f
0bcea01b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
5 deletions
+11
-5
APMCompassCal.cc
src/AutoPilotPlugins/APM/APMCompassCal.cc
+1
-1
APMSensorsComponent.qml
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
+0
-2
ParameterLoader.h
src/FactSystem/ParameterLoader.h
+2
-0
Vehicle.cc
src/Vehicle/Vehicle.cc
+6
-2
Vehicle.h
src/Vehicle/Vehicle.h
+2
-0
No files found.
src/AutoPilotPlugins/APM/APMCompassCal.cc
View file @
6af64398
...
...
@@ -157,7 +157,7 @@ CalWorkerThread::calibrate_return CalWorkerThread::calibrate(void)
sensorId
=
6.0
f
;
}
if
(
sensorId
!=
0.0
f
)
{
_vehicle
->
doCommandLong
(
0
,
MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS
,
sensorId
,
-
sphere_x
[
cur_mag
],
-
sphere_y
[
cur_mag
],
-
sphere_z
[
cur_mag
]);
_vehicle
->
doCommandLong
(
_vehicle
->
defaultComponentId
()
,
MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS
,
sensorId
,
-
sphere_x
[
cur_mag
],
-
sphere_y
[
cur_mag
],
-
sphere_z
[
cur_mag
]);
}
}
}
...
...
src/AutoPilotPlugins/APM/APMSensorsComponent.qml
View file @
6af64398
...
...
@@ -391,8 +391,6 @@ QGCView {
onClicked
:
{
if
(
controller
.
accelSetupNeeded
)
{
showMessage
(
qsTr
(
"
Calibrate Compass
"
),
qsTr
(
"
Accelerometer must be calibrated prior to Compass.
"
),
StandardButton
.
Ok
)
}
else
if
(
compass3Id
.
value
!=
0
&&
compass3Use
.
value
!=
0
)
{
showMessage
(
qsTr
(
"
Unabled to calibrate
"
),
qsTr
(
"
Support for calibrating compass 3 is currently not supported by QGroundControl.
"
),
StandardButton
.
Ok
)
}
else
{
preCalibrationDialogType
=
"
compass
"
preCalibrationDialogHelp
=
compassHelp
...
...
src/FactSystem/ParameterLoader.h
View file @
6af64398
...
...
@@ -103,6 +103,8 @@ public:
/// If this file is newer than anything in the cache, cache it as the latest version
static
void
cacheMetaDataFile
(
const
QString
&
metaDataFile
,
MAV_AUTOPILOT
firmwareType
);
int
defaultComponenentId
(
void
)
{
return
_defaultComponentId
;
}
signals:
/// Signalled when the full set of facts are ready
...
...
src/Vehicle/Vehicle.cc
View file @
6af64398
...
...
@@ -210,7 +210,7 @@ Vehicle::Vehicle(LinkInterface* link,
connect
(
_parameterLoader
,
&
ParameterLoader
::
parameterListProgress
,
_autopilotPlugin
,
&
AutoPilotPlugin
::
parameterListProgress
);
// Ask the vehicle for firmware version info
doCommandLong
(
MAV_COMP_ID_ALL
,
MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES
,
1
/* request firmware version */
);
doCommandLong
(
defaultComponentId
()
,
MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES
,
1
/* request firmware version */
);
_firmwarePlugin
->
initializeVehicle
(
this
);
...
...
@@ -1691,12 +1691,16 @@ QString Vehicle::firmwareVersionTypeString(void) const
}
}
void
Vehicle
::
rebootVehicle
()
{
doCommandLong
(
id
(),
MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN
,
1.0
f
,
0.0
f
,
0.0
f
,
0.0
f
,
0.0
f
,
0.0
f
,
0.0
f
);
}
int
Vehicle
::
defaultComponentId
(
void
)
{
return
_parameterLoader
->
defaultComponenentId
();
}
const
char
*
VehicleGPSFactGroup
::
_hdopFactName
=
"hdop"
;
const
char
*
VehicleGPSFactGroup
::
_vdopFactName
=
"vdop"
;
const
char
*
VehicleGPSFactGroup
::
_courseOverGroundFactName
=
"courseOverGround"
;
...
...
src/Vehicle/Vehicle.h
View file @
6af64398
...
...
@@ -541,6 +541,8 @@ public:
void
setFirmwareVersion
(
int
majorVersion
,
int
minorVersion
,
int
patchVersion
,
FIRMWARE_VERSION_TYPE
versionType
=
FIRMWARE_VERSION_TYPE_OFFICIAL
);
static
const
int
versionNotSetValue
=
-
1
;
int
defaultComponentId
(
void
);
public
slots
:
void
setLatitude
(
double
latitude
);
void
setLongitude
(
double
longitude
);
...
...
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