Trigger hysteresis using avload instead of load?
Re: Trigger hysteresis using avload instead of load?
Would this explain a few things? sorry if this means you've been on a wild goose chase....
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm
Re: Trigger hysteresis using avload instead of load?
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.
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm
Re: Trigger hysteresis using avload instead of load?
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?
hyst_timer value of -2.147483648E8 is too low.
Must be greater than : 0.0
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm
Re: Trigger hysteresis using avload instead of load?
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.
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm
Re: Trigger hysteresis using avload instead of load?
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:
Lance.
Re: Trigger hysteresis using avload instead of load?
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm
Re: Trigger hysteresis using avload instead of load?
Re: Trigger hysteresis using avload instead of load?
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..
- Attachments
-
- CurrentTune.msq
- (57.1 KiB) Downloaded 731 times
-
- Copy of 2015-04-02_09.00.40.msl
- (710.25 KiB) Downloaded 712 times
-
- Posts: 1696
- Joined: Fri Apr 04, 2008 1:28 pm