stijnwop / guidanceSteering

Guidance Steering (AutoTrack) for Farming Simulator 22.
381 stars 94 forks source link

[BUG] Tractor goes into next lane at random. #249

Closed KnownOriginator closed 2 years ago

KnownOriginator commented 3 years ago

When setting the offset increment to the max of 2m and having the width increment set to 4m, for using a modded pull-behind harvester (not the issue), tractor will veer into next lane randomly on rough terrain.

Steps to reproduce the behavior:

  1. Set offset increment to 2m
  2. Set width increment to 4m
  3. Enable guidance steering
  4. Drive forward using guidance steering on rough terrain

One would expect it to stay within the designated lane while driving forward, thus keeping a straight row. It seems if the offset is equal to {width x 2} then the tractor may sometimes go over the boundary for the next lane and jump towards that lanes "center" line to drive on instead.

Mayhaps having the tractor and pulled/carried implement have their own separate lanes (to account for offsets) would fix this, then again I know nothing about programming. Alternatively, have an option so the tractor will always veer towards the center of the lane the guidance steering system was enabled on, that way if the tractor does go over a lane it will still go back to the lane it was enabled in instead of switching as it does now.

EthanPeacock commented 2 years ago

This is still happening in FS22.

I don't know specifics, but can you not make it so when a track is active it cannot switch to another? I couldn't think of a scenario where you are able to go to another track, when already active on one (when you turn it deactivates, alt x will deactivate it,).

stijnwop commented 2 years ago

Yeah well it's kinda obvious that if you offset to the track width that it will switch haha. Perhaps put the offset to 1.99 or lower.

Not being able to switch when on active track might work but you will probably still have the issue to get the initial track.

cardi-m commented 2 years ago

I have the same issue with a lower offset an a not modded harvester.

stijnwop commented 2 years ago

304

Fixed there.