pops64 / Courseplay_FS22

Courseplay for Farming Simulator 2022
GNU General Public License v3.0
2 stars 0 forks source link

[BUG_SP] Sharp Turn chopper occasinaly to far back to detect unload trailer #29

Open pops64 opened 1 year ago

pops64 commented 1 year ago

Look at the video, some things are already very well solved, others are not. Driver must drive further back to be able to calculate the overload point correctly in the second headland. LUA error on the last piece.

https://drive.google.com/file/d/18-nBWx0xyY-1Wcef74Pmi-5OHJKT08Ku/view?usp=drive_link

log.txt

pops64 commented 1 year ago

This might not be fixable until #30 is completed. Which would involve a lot of effort. For now just keep track of which combinations(Field, Trailer, Chopper) has this issue and just avoid them. My test setup I can't duplicate so there must be some weird combination that occurs to have this happen

pops64 commented 1 year ago

2nd Update. Took another look at the code. The problem lies with how combine headland turns are handled. It soly relies on angles and distances and has no regard to with where the fruit is(This is why you have the little bit of fruit at the end of a headland turn). This the problem section of code. Will have to think of a solution to fix it. https://github.com/pops64/Courseplay_FS22/blob/d906cb8831dda00fb78719e8a7a91b6e08626fbf/scripts/ai/turns/AITurn.lua#L414-L454