Add fields to allow custom MAP sensors being entered

This commit is contained in:
Josh Stewart 2017-07-03 12:14:07 +10:00
parent 086d705561
commit 7f86b91198
3 changed files with 17 additions and 13 deletions

View File

@ -1351,6 +1351,9 @@ menuDialog = main
settingOption = "Denso 079800", mapMin=0, mapMax=173 ; http://speeduino.com/forum/viewtopic.php?f=18&t=510&p=7023#p7021
settingOption = "VW/Audi/Porsche 250kPa", mapMin=26, mapMax=250 ; http://speeduino.com/forum/viewtopic.php?p=17502#p17502
field = "Value At 0.0 Volts", mapMin
field = "Value At 5.0 Volts", mapMax
dialog = boostSettings, "Boost Control"
topicHelp = "http://speeduino.com/wiki/index.php/Boost_Control"
field = "Boost Control Enabled", boostEnabled

View File

@ -169,7 +169,7 @@ static inline byte correctionAccel()
{
int8_t TPS_change = (currentStatus.TPS - currentStatus.TPSlast);
//Check for deceleration (Deceleration adjustment not yet supported)
//Also check for only very small movement (Movement less than or equal to 2 is ignored)
//Also check for only very small movement (Movement less than or equal to 2% is ignored). This not only means we can skip the lookup, but helps reduce false triggering around 0-2% throttle openings
if (TPS_change <= 2)
{
accelValue = 100;

View File

@ -23,7 +23,8 @@ struct table2D {
int *axisX16;
//Store the last X and Y coordinates in the table. This is used to make the next check faster
int lastXMax, lastXMin;
int lastXMax;
int lastXMin;
};
void table2D_setSize(struct table2D targetTable, byte newSize);