Page 6 of 8
Re: Trigger hysteresis using avload instead of load?
Posted: Mon Mar 30, 2015 8:49 am
by Addicted
I've just found that I never downloaded vii, I went straight from vi to viii. This means when I tested viii it was combined with the ini file for vi
Would this explain a few things? sorry if this means you've been on a wild goose chase....
Re: Trigger hysteresis using avload instead of load?
Posted: Mon Mar 30, 2015 12:02 pm
by Bernard Fife
Martin,
It's not a problem, I am sorry to you for not solving this issue for you sooner! In any case, I don't think any of those versions were leading us down quite the right path (I think we had identified the problem, but probably not the best solution). The next code will have a new approach to the load hysteresis entirely, and I am hoping that it will be the real thing.
Lance.
Re: Trigger hysteresis using avload instead of load?
Posted: Wed Apr 01, 2015 7:21 am
by Bernard Fife
Martin,
Here is some code for you to try:
This code works properly on my bench. But it has a number of hysteresis changes, some of which are major, so proceed with great caution. I would first try to make sure the comms worked, then shift through the gears with the lever to make sure you can engage forward and reverse gears repeatedly, then drive cautiously for a short distance to see how the code works for you. If you were able to grab a datalog, that could be very helpful.
I wont bore you with the details of the changes just yet, but I think they might help solve the hysteresis issue. However, these changes probably also require some more tweaking, too.
Lance.
Re: Trigger hysteresis using avload instead of load?
Posted: Wed Apr 01, 2015 8:46 am
by Addicted
Thanks for that Lance, loading it up in TS I get an error:
hyst_timer value of -2.147483648E8 is too low.
Must be greater than : 0.0
Re: Trigger hysteresis using avload instead of load?
Posted: Wed Apr 01, 2015 10:06 am
by Bernard Fife
Martin,
Is this when you load your MSQ? If so, then go to 'General Settings -> Shift Factors -> Shift Hysteresis Time' and set the value to something sensible. The default is 3.5 seconds, you can try anything from 1.0 to 25.0 seconds (I would start with the default). The error was likely because this parameter didn't exit in older versions on the code.
However, if this error is occurring before you load your MSQ, you might need to re-download the code and reload it to your GPIO because it may be corrupt.
Lance.
Re: Trigger hysteresis using avload instead of load?
Posted: Wed Apr 01, 2015 10:30 am
by Bernard Fife
Martin,
I looked a bit deeper into this. In turns out that I had two variables named hyst_timer in the code (but not the INI), one in the input parameters (in2ram.) and one in the output channels. To clarify this, I have change the INI (
which will again affect the parameter you had the problem with earlier, so you might see a similar problem again). The names should be stable after this INI:
- GPIO_MShift_5099.ini
- Changed name of input parameter hyst_timer to hyst_delay (hyst_timer is used internally for the output channel hyst [outpc.hyst_timer] to count down the time hysteresis from the user value of in2ram.hyst_delay).
- (278.59 KiB) Downloaded 823 times
Lance.
Re: Trigger hysteresis using avload instead of load?
Posted: Wed Apr 01, 2015 10:31 am
by Addicted
It occurred when I loaded the latest INI into my Tuner Studio project properties. I thought I'd better raise it with you first.. I'll continue then..
Re: Trigger hysteresis using avload instead of load?
Posted: Wed Apr 01, 2015 10:53 am
by Bernard Fife
If the controller was connected at the time (or possibly if TS is set to restore old setting on loading new code, I don't know much about those things), the missing parameter value (from TS's stored set) would likely confuse TS. I don't get that error here, so I think you are safe to carry on! Lance.
Re: Trigger hysteresis using avload instead of load?
Posted: Thu Apr 02, 2015 12:18 am
by Addicted
Sorry Lance, didn't work..
load and avload look very odd in the datalog, the 3-4-3 shift still occurs... I've attached my tune file too just in case..
Re: Trigger hysteresis using avload instead of load?
Posted: Thu Apr 02, 2015 6:40 am
by Bernard Fife
Thanks for trying this, I will dig through the log. Lance.