mirror of https://github.com/ArduPilot/ardupilot
APM Planner 1.1.24
change verify alt action fix hil throttle scaling Thanks Justin
This commit is contained in:
parent
b3158cae38
commit
b72719cc77
|
@ -297,10 +297,17 @@ namespace ArdupilotMega.GCSViews
|
|||
cell.Value = alt.ToString();
|
||||
// online verify height
|
||||
if (isonline && CHK_geheight.Checked)
|
||||
{
|
||||
if (CHK_altmode.Checked)
|
||||
{
|
||||
cell.Value = ((int)getGEAlt(lat, lng) + int.Parse(TXT_DefaultAlt.Text)).ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
cell.Value = ((int)getGEAlt(lat, lng) + int.Parse(TXT_DefaultAlt.Text) - float.Parse(TXT_homealt.Text)).ToString();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// is absolute but no verify
|
||||
if (CHK_altmode.Checked)
|
||||
|
@ -2970,7 +2977,7 @@ namespace ArdupilotMega.GCSViews
|
|||
|
||||
if (MainV2.cs.firmware == MainV2.Firmwares.ArduPlane)
|
||||
{
|
||||
routes.Markers.Add(new GMapMarkerPlane(currentloc, MainV2.cs.yaw, MainV2.cs.groundcourse, MainV2.cs.nav_bearing, MainV2.cs.target_bearing));
|
||||
routes.Markers.Add(new GMapMarkerPlane(currentloc, MainV2.cs.yaw, MainV2.cs.groundcourse, MainV2.cs.nav_bearing, MainV2.cs.target_bearing) { ToolTipText = MainV2.cs.alt.ToString("0"), ToolTipMode = MarkerTooltipMode.Always });
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -1328,7 +1328,7 @@ namespace ArdupilotMega.GCSViews
|
|||
|
||||
roll_out = (float)MainV2.cs.hilch1 / rollgain;
|
||||
pitch_out = (float)MainV2.cs.hilch2 / pitchgain;
|
||||
throttle_out = ((float)MainV2.cs.hilch3 + 5000) / throttlegain;
|
||||
throttle_out = ((float)MainV2.cs.hilch3 / 2 + 5000) / throttlegain;
|
||||
rudder_out = (float)MainV2.cs.hilch4 / ruddergain;
|
||||
}
|
||||
|
||||
|
|
|
@ -34,5 +34,5 @@ using System.Resources;
|
|||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.1.23")]
|
||||
[assembly: AssemblyFileVersion("1.1.24")]
|
||||
[assembly: NeutralResourcesLanguageAttribute("")]
|
||||
|
|
Loading…
Reference in New Issue