Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
9972ac75
Commit
9972ac75
authored
May 09, 2018
by
DonLakeFlyer
Browse files
Added sensorsUnhealthyBits
parent
58afdad9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Vehicle/Vehicle.cc
View file @
9972ac75
...
...
@@ -1302,6 +1302,7 @@ void Vehicle::_handleSysStatus(mavlink_message_t& message)
if
(
newSensorsUnhealthy
!=
_onboardControlSensorsUnhealthy
)
{
_onboardControlSensorsUnhealthy
=
newSensorsUnhealthy
;
emit
unhealthySensorsChanged
();
emit
sensorsUnhealthyBitsChanged
(
_onboardControlSensorsUnhealthy
);
}
}
...
...
src/Vehicle/Vehicle.h
View file @
9972ac75
...
...
@@ -466,6 +466,7 @@ public:
Q_PROPERTY
(
int
sensorsPresentBits
READ
sensorsPresentBits
NOTIFY
sensorsPresentBitsChanged
)
Q_PROPERTY
(
int
sensorsEnabledBits
READ
sensorsEnabledBits
NOTIFY
sensorsEnabledBitsChanged
)
Q_PROPERTY
(
int
sensorsHealthBits
READ
sensorsHealthBits
NOTIFY
sensorsHealthBitsChanged
)
Q_PROPERTY
(
int
sensorsUnhealthyBits
READ
sensorsUnhealthyBits
NOTIFY
sensorsUnhealthyBitsChanged
)
///< Combination of enabled and health
Q_PROPERTY
(
QString
missionFlightMode
READ
missionFlightMode
CONSTANT
)
Q_PROPERTY
(
QString
pauseFlightMode
READ
pauseFlightMode
CONSTANT
)
Q_PROPERTY
(
QString
rtlFlightMode
READ
rtlFlightMode
CONSTANT
)
...
...
@@ -769,6 +770,7 @@ public:
int
sensorsPresentBits
()
const
{
return
_onboardControlSensorsPresent
;
}
int
sensorsEnabledBits
()
const
{
return
_onboardControlSensorsEnabled
;
}
int
sensorsHealthBits
()
const
{
return
_onboardControlSensorsHealth
;
}
int
sensorsUnhealthyBits
()
const
{
return
_onboardControlSensorsUnhealthy
;
}
QString
missionFlightMode
()
const
;
QString
pauseFlightMode
()
const
;
QString
rtlFlightMode
()
const
;
...
...
@@ -971,6 +973,7 @@ signals:
void
sensorsPresentBitsChanged
(
int
sensorsPresentBits
);
void
sensorsEnabledBitsChanged
(
int
sensorsEnabledBits
);
void
sensorsHealthBitsChanged
(
int
sensorsHealthBits
);
void
sensorsUnhealthyBitsChanged
(
int
sensorsUnhealthyBits
);
void
firmwareVersionChanged
(
void
);
void
firmwareCustomVersionChanged
(
void
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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