private void TRACKBAR_Throttle_Scroll(object sender, EventArgs e) //The trackbar throttle value is changed
{
//Gets the trackbar throttle value and removes the idle value from it to find how much the throttle is actually open
if (TRACKBAR_Throttle.Value/100 <= (double)MainForm.ACCESSOR_GrabEngineObject.ACCESSOR_ATTRB_IdleThrottlePosition/100) //If the value is less than the idle throttle position
{
Throttle = (double)MainForm.ACCESSOR_GrabEngineObject.ACCESSOR_ATTRB_IdleThrottlePosition/100; //Set it to the idle throttle position
}
else
{
Throttle = TRACKBAR_Throttle.Value / 100; //Otherwise set it to the actual scroll bar value
}
}
private void TRACKBAR_Throttle_Scroll(object sender, EventArgs e) //The trackbar throttle value is changed
{
//Gets the trackbar throttle value and removes the idle value from it to find how much the throttle is actually open
if (TRACKBAR_Throttle.Value/100 <= (double)MainForm.ACCESSOR_GrabEngineObject.ACCESSOR_ATTRB_IdleThrottlePosition/100) //If the value is less than the idle throttle position
{
Throttle = (double)MainForm.ACCESSOR_GrabEngineObject.ACCESSOR_ATTRB_IdleThrottlePosition/100; //Set it to the idle throttle position
}
else
{
Throttle = TRACKBAR_Throttle.Value / 100; //Otherwise set it to the actual scroll bar value
}
}