Skip to content

Commit

Permalink
Created discrete DO_FENCE_ENABLE waypoint for Plane in Flight Plan sc…
Browse files Browse the repository at this point in the history
…reen.

Modified text bubble in Plane and Copter to include Sat Count, HDOP, and Voltage.
  • Loading branch information
Autonomost authored and meee1 committed Mar 3, 2020
1 parent ab88b30 commit 117a032
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public static GMapMarker getMAVMarker(MAVState MAV)
MAV.cs.radius * CurrentState.multiplierdist)
{
ToolTipText = MAV.cs.alt.ToString("0") + CurrentState.AltUnit + " | " + (int)MAV.cs.airspeed +
CurrentState.SpeedUnit + " | id:" + (int)MAV.sysid,
ToolTipMode = MarkerTooltipMode.Always
CurrentState.SpeedUnit + " | id:" + (int)MAV.sysid + " | Sats:" + (int)MAV.cs.satcount + " | HDOP:" + (float)MAV.cs.gpshdop + " | Volts: " + (float)MAV.cs.battery_voltage,
ToolTipMode = MarkerTooltipMode.Always
});
}
else if (MAV.aptype == MAVLink.MAV_TYPE.GROUND_ROVER)
Expand Down Expand Up @@ -79,7 +79,12 @@ public static GMapMarker getMAVMarker(MAVState MAV)
}

return (new GMapMarkerQuad(portlocation, MAV.cs.yaw,
MAV.cs.groundcourse, MAV.cs.nav_bearing, MAV.sysid));
MAV.cs.groundcourse, MAV.cs.nav_bearing, MAV.sysid)
{
ToolTipText = MAV.cs.alt.ToString("0") + CurrentState.AltUnit + " | " + (int)MAV.cs.airspeed +
CurrentState.SpeedUnit + " | id:" + (int)MAV.sysid + " | Sats:" + (int)MAV.cs.satcount + " | HDOP:" + (float)MAV.cs.gpshdop + " | Volts: " + (float)MAV.cs.battery_voltage,
ToolTipMode = MarkerTooltipMode.Always
});
}
else if (MAV.aptype == MAVLink.MAV_TYPE.COAXIAL)
{
Expand Down
9 changes: 9 additions & 0 deletions mavcmd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,15 @@
<Y></Y>
<Z></Z>
</DO_PARACHUTE>
<DO_FENCE_ENABLE>
<P1>Disable(0)/Enable(1)/Disable Floor Only(2)</P1>
<P2></P2>
<P3></P3>
<P4></P4>
<X></X>
<Y></Y>
<Z></Z>
</DO_FENCE_ENABLE>
</APM>
<!-- -->
<APRover>
Expand Down

0 comments on commit 117a032

Please sign in to comment.