ardupilot/Tools/ArdupilotMegaPlanner/Controls/MyTrackBar.cs
Michael Oborne 43b4359b28 planner cleanup
fixup mode names in joystick and flight data
add mavlink 0.9/1.0 error message
2012-04-24 21:49:27 +08:00

16 lines
553 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ArdupilotMega.Controls
{
class MyTrackBar : TrackBar
{
public new double Maximum { get { return base.Maximum / 100.0; } set { base.Maximum = (int)(value * 100); } }
public new double Minimum { get { return base.Minimum / 100.0; } set { base.Minimum = (int)(value * 100); } }
public new double Value { get { return base.Value / 100.0; } set { base.Value = (int)(value * 100); } }
}
}