by Fast_Moto on Sat Mar 18, 2017 9:40 am
The parameter for each of the four Cylinder [1-4] Enable parameters is a Subsytem enable enumeration. I also tried a custom, project specific, enumeration (with not in use/enabled enumerators) instead, but no different. I attached a picture of the build showing the parameters for one of the cylinder enable parameters.
Here is the relevant code
//Enable LTCs
local ci = Collector.LTC Index.AsInteger();
local ci1 = Cylinder 1.LTC Index.AsInteger();
local ci2 = Cylinder 2.LTC Index.AsInteger();
local ci3 = Cylinder 3.LTC Index.AsInteger();
local ci4 = Cylinder 4.LTC Index.AsInteger();
if(Engine.Run Time > This.Engine Run Time or Engine.Stall Time < Power Save Delay)
{
Collector Enable eq Collector Enable.Enabled ? LTC.Mode (ci, true) : LTC.Mode (ci, false);
expand (n = 1 to Engine.Configuration.Cylinders)
{
Cylinder $(n) Enable eq Cylinder $(n) Enable.Enabled ? LTC.Mode (ci$(n), true) : LTC.Mode (ci$(n),false);
}
}
else
{
LTC.Mode (ci,false);
expand (n = 1 to Engine.Configuration.Maximum Cylinders)
{
LTC.Mode (ci$(n), false);
}
}
P.S. the indents don't appear to show properly.
- Attachments
-
- Parameters not visible in M1 tune 2.jpg (622.02 KiB) Viewed 19418 times