mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
Merge remote-tracking branch 'origin/laurent/OP-1648_PFD_Stabmodes_update' into rel-nano-15.05
This commit is contained in:
commit
3e4c11780e
@ -12,24 +12,24 @@ Item {
|
|||||||
|
|
||||||
// All 'manual modes' are green, 'assisted' modes in cyan
|
// All 'manual modes' are green, 'assisted' modes in cyan
|
||||||
// "MANUAL","STAB 1","STAB 2", "STAB 3", "STAB 4", "STAB 5", "STAB 6",
|
// "MANUAL","STAB 1","STAB 2", "STAB 3", "STAB 4", "STAB 5", "STAB 6",
|
||||||
// "POS HOLD", "COURSE LOCK", "POS ROAM", "HOME LEASH", "ABS POS", "RTB", "LAND", "PATHPLANNER", "POI", "AUTOCRUISE"
|
// "POS HOLD", "COURSELOCK","VEL ROAM", "HOME LEASH", "ABS POS", "RTB", "LAND", "PATHPLAN", "POI", "AUTOCRUISE", "AUTOTAKEOFF"
|
||||||
|
|
||||||
property variant flightmodeColors : ["gray", "green", "green", "green", "green", "green", "green",
|
property variant flightmodeColors : ["gray", "green", "green", "green", "green", "green", "green",
|
||||||
"cyan", "cyan", "cyan", "cyan", "cyan", "cyan", "cyan", "cyan", "cyan", "cyan"]
|
"cyan", "cyan", "cyan", "cyan", "cyan", "cyan", "cyan", "cyan", "cyan", "cyan", "cyan"]
|
||||||
|
|
||||||
// Manual,Rate,Attitude,AxisLock,WeakLeveling,VirtualBar,Acro+,Rattitude,
|
// Manual,Rate,RateTrainer,Attitude,AxisLock,WeakLeveling,VirtualBar,Acro+,Rattitude,
|
||||||
// AltitudeHold,AltitudeVario,CruiseControl + Auto mode (VTOL/Wing pathfollower)
|
// AltitudeHold,AltitudeVario,CruiseControl" + Auto mode (VTOL/Wing pathfollower)
|
||||||
// grey : 'disabled' modes
|
// grey : 'disabled' modes
|
||||||
|
|
||||||
property variant thrustmodeColors : ["green", "grey", "grey", "grey", "grey", "grey", "grey", "grey",
|
property variant thrustmodeColors : ["green", "grey", "grey", "grey", "grey", "grey", "grey", "grey", "grey",
|
||||||
"green", "green", "green", "cyan"]
|
"green", "green", "green", "cyan"]
|
||||||
|
|
||||||
// SystemSettings.AirframeType 3 - 17 : VtolPathFollower, check ThrustControl
|
// SystemSettings.AirframeType 3 - 17 : VtolPathFollower, check ThrustControl
|
||||||
|
|
||||||
property var thrust_mode: FlightStatus.FlightMode < 7 ? StabilizationDesired.StabilizationMode_Thrust :
|
property var thrust_mode: FlightStatus.FlightMode < 7 ? StabilizationDesired.StabilizationMode_Thrust :
|
||||||
FlightStatus.FlightMode > 6 && SystemSettings.AirframeType > 2 && SystemSettings.AirframeType < 18
|
FlightStatus.FlightMode > 6 && SystemSettings.AirframeType > 2 && SystemSettings.AirframeType < 18
|
||||||
&& VtolPathFollowerSettings.ThrustControl == 1 ? 11 :
|
&& VtolPathFollowerSettings.ThrustControl == 1 ? 12 :
|
||||||
FlightStatus.FlightMode > 6 && SystemSettings.AirframeType < 3 ? 11: 0
|
FlightStatus.FlightMode > 6 && SystemSettings.AirframeType < 3 ? 12: 0
|
||||||
|
|
||||||
|
|
||||||
property real flight_time: Math.round(SystemStats.FlightTime / 1000)
|
property real flight_time: Math.round(SystemStats.FlightTime / 1000)
|
||||||
@ -198,11 +198,13 @@ Item {
|
|||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: warnings.flightmodeColors[FlightStatus.FlightMode]
|
color: warnings.flightmodeColors[FlightStatus.FlightMode]
|
||||||
|
// Manual,Stabilized1,Stabilized2,Stabilized3,Stabilized4,Stabilized5,Stabilized6,PositionHold,CourseLock,
|
||||||
|
// VelocityRoam,HomeLeash,AbsolutePosition,ReturnToBase,Land,PathPlanner,POI,AutoCruise,AutoTakeoff
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: ["MANUAL","STAB 1","STAB 2", "STAB 3", "STAB 4", "STAB 5", "STAB 6", "POS HOLD", "COURSELOCK",
|
text: ["MANUAL","STAB 1","STAB 2", "STAB 3", "STAB 4", "STAB 5", "STAB 6", "POS HOLD", "COURSELOCK",
|
||||||
"POS ROAM", "HOME LEASH", "ABS POS", "RTB", "LAND", "PATHPLAN", "POI", "AUTOCRUISE"][FlightStatus.FlightMode]
|
"VEL ROAM", "HOME LEASH", "ABS POS", "RTB", "LAND", "PATHPLAN", "POI", "AUTOCRUISE", "AUTOTAKEOFF"][FlightStatus.FlightMode]
|
||||||
font {
|
font {
|
||||||
family: pt_bold.name
|
family: pt_bold.name
|
||||||
pixelSize: Math.floor(parent.height * 0.74)
|
pixelSize: Math.floor(parent.height * 0.74)
|
||||||
@ -225,12 +227,12 @@ Item {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: FlightStatus.FlightMode < 1 ? "grey" : warnings.thrustmodeColors[thrust_mode.toString()]
|
color: FlightStatus.FlightMode < 1 ? "grey" : warnings.thrustmodeColors[thrust_mode.toString()]
|
||||||
|
|
||||||
// Manual,Rate,Attitude,AxisLock,WeakLeveling,VirtualBar,Acro+,Rattitude,
|
// Manual,Rate,RateTrainer,Attitude,AxisLock,WeakLeveling,VirtualBar,Acro+,Rattitude,
|
||||||
// AltitudeHold,AltitudeVario,CruiseControl
|
// AltitudeHold,AltitudeVario,CruiseControl
|
||||||
// grey : 'disabled' modes
|
// grey : 'disabled' modes
|
||||||
Text {
|
Text {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: ["MANUAL"," "," ", " ", " ", " ", " ", " ",
|
text: ["MANUAL"," "," ", " ", " ", " ", " ", " ", " ",
|
||||||
"ALT HOLD", "ALT VARIO", "CRUISECTRL", "AUTO"][thrust_mode.toString()]
|
"ALT HOLD", "ALT VARIO", "CRUISECTRL", "AUTO"][thrust_mode.toString()]
|
||||||
font {
|
font {
|
||||||
family: pt_bold.name
|
family: pt_bold.name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user