Courseplay / courseplay

Courseplay for Farming Simulator 2019
http://courseplay.github.io/courseplay
GNU General Public License v3.0
953 stars 528 forks source link

Enhancement: Allow Better Control of Turning Behavior for All Modes #1118

Closed mikeloeven closed 9 years ago

mikeloeven commented 9 years ago

I would like to see a detailed control panel for turning behavior that allows you to take into account width of plows and cultivators and specify variables that will allow smooth turning of any tractor without jack knifing and the generation of diagonal furrows at the edges of the fields. A few ideas i would like to implement for this would be

Turning Radius

this will be set manually or can be calculated automatically taking the angle of any attached machines into account

Meters allowed past field edge

This allows you to specifically set how far off the edge of the field the AI can go and should be used by the AI to avoid hitting trees and fences by forcing them to use multipoint turns for equipment with a large turning radius rather than simply going in a wide loop or simple two point turn and getting stuck.

Align Tool

A simple check box but what this will do is force the AI to make small multipoint turns until the tool is aligned straight before lowering it and continuing down the next row eliminating the diagonal furrows or missing patches

Mopar commented 9 years ago

It has been brought up before, they are currently working on them, and to be honest, I can not wait, lol.

https://github.com/Courseplay/courseplay/issues/1050

mikeloeven commented 9 years ago

Think you might also need a turn way point resolution and spacing setting which determines the frequency and spacing of way points so you can get more precise trailer control when backing up honestly I wish I could have it record at a rate of one way point every quarter second during backing up maneuver or at the same time having them spaced much farther apart when driving down a straight road

The need for a waypoint resolution setting becomes apparent after about 15 attempts to back in to the shed each time I record the path the tractor and trailer both go in perfectly but as soon as I run the script I find that it is missing minute changes between left and right and generally turning two shallow so the adjustments to the trailers alignment simple dont translate and it keeps jackknifing before it gets into the shed :/

Satissis commented 9 years ago

@mikeloeven don't mix issues. About reversing with trailer, did you record the route without the trailer as described in the manual ?

mikeloeven commented 9 years ago

Not really sure its mixing issues as the way-point resolution idea was something i thought of to improve turning and allow more detailed recording of complex turning maneuvers and the trailer reversing issue is also directly related to how the aforementioned turning issues.

but I have tried recording the trailer path multiple times both with and without the trailer attached the results are pretty much the same. The issue is that the path does not record very small turns like the kind you make to center said trailer

I tried the same procedure using my programmable keyboard recording a key-press macro and when played back the trailer backed in perfectly so most of the turning issues seem to be related to the game trying to reduce the number of way-points by essentially smoothing the overall path

Igi-PL commented 9 years ago

@mikeloeven I also have problems with reversing, but now it is working for me - it was my fault. Consider three things:

  1. Record witout trailer.
  2. Reverse do not work if trailer is empty.
  3. Reverse do not work in all modes.
mikeloeven commented 9 years ago

Another addition to turning should be the addition of a two point turn when doing headlands in a combine essentially the combine should go into the corner than reverse before turning into the main row which would be a very simple procedure and eliminate corner crops

Satissis commented 9 years ago

Dude, we are already working on a totally new system, which is WP based and all the ideas you are having, is already either done or in my todo list :)

Maxcdr commented 9 years ago

@Igi-PL

Reverse do not work if trailer is empty.

Works fine for me with full and empty trailer...

mikeloeven commented 9 years ago

I guess ill close this and just remember to use the DEV build in the future