-
Notifications
You must be signed in to change notification settings - Fork 523
Abtankrohr ausfahren bei Füllstand erreicht an/aus #3792
Comments
Da wir selber einen Abfahrer (Mode2) haben, auch wenn der sich noch im Rework befindet, glaube ich nicht, das wir Anpassungen daran machen werden. Eigene änderungen in der LUA werden nicht unterstützt. Ich werde das mal als Suggestion einbauen, ob das Drescherrohr bei Füllstand X (Eventuell auffüllen bis) automatisch ausfahren soll, oder nur wenn ein Abfahrer kommt. Aber ob das umsetzbar ist und ob wir das machen werden müssen wir erst besprechen. |
Ok trotzdem schonmal vielen Dank für die schnelle Antwort. Wäre super wenn das klappen würde |
@klauskleber14 wir könnten auch mit dem Autodrive Entwickler zusammen eine Lösung ausarbeiten wo die zwei Mods direkt über eine definierte Schnittstelle kommunizieren. Du kansst die evt. mal fragen ob die interresse daran haben. |
Das wäre aufjedenfall eine super sachen wovon beide mods profitieren würden. ich werde mal bei den Autodrive entwicklern nachhören. |
Hallo pvaiko, an was für eine Schnittstelle hast du hier denn gedacht? Prinzipiell bin ich da absolut offen für, falls CP mit AD kommunizieren möchte. Ihr arbeitet ja gerade daran den Mode2 zu erweitern/erneuern. Ich weiß nicht ob ihr schon mal dazu gekommen seid euch den Abfahrer-Modus von AD in Aktion anzusehen. Dieser ist sicherlich deutlich weniger umfangreich als euer Mode2 aber bringt wie @klauskleber14 bereits erwähnt hat den Vorteil mit das er sehr leicht zu aktivieren/starten ist, da er sich ja immer auf das komplette bereits eingefahrene Kursnetzwerk von AD beziehen kann um die Strecken Feld->Abladepunkt->Feld zu fahren. Derzeit meldet sich jeder AD Fahrer in dieser Einstellung auf einer globalen Liste als Abfahrer an und wird aktiv von den Dreschern gerufen, je nach Einstellung entweder erkannt durch die Entfernung oder durch die selber Zieleinstellung im AD-Menü. Einzige Vorraussetzung ist hier, das das Rohr des Dreschers ausgefahren ist, bevor der Abfahrer gerufen wird, da ich daraus den Zielpunkt für den Abfahrer ermitteln kann, ohne diesen vorher wie bei Courseplay vorher je nach Fahrzeug, bereits im eingeklappten Zustand (mit zig Sonderfällen etc.) zu errechnen. Falls ihr eine Meldung von AD haben möchtet, das ein Fahrer bereit ist und nur auf ein ausgeklapptes Rohr wartet, kann ich das natürlich auch gerne an eine entsprechende Schnittstelle weitergeben. Viele Grüße, |
Hallo Stephan, für diesen speziellen Fall mit dem Rohr wäre uns vielleicht dein letzter Vorschlag am einfachsten, diese Kondition: courseplay/UnloadableFieldworkAIDriver.lua Line 147 in 9f4ee9b
könnten wir mit .z.B. AutoDrive:isDriverWaitingForPipe() o. änlich erweitern, das solange mit true zurückkehrt bis der Trailer den Rohrtrigger erreicht. Was für andere Schnittstellen noch Sinn machen? Für CP wäre es bestimmt interressant, Kurse zu kombinieren, z.B. Auffüll/Abladekurse für Feldarbeit Autodrive berechnen oder fahren lassen. Für AutoDrive könnte evt. unser Pathfinding für die Fruchtumfahrung interessant sein, aber so gut kenne ich mich mit AD nicht aus. Am besten fragen wir in der Community nach, bin sicher dass es tausende von Ideen gibt. Peter |
Du meinst die Überführungs- und Auffüllkurse durch das AD Netzwerk ergänzen/ersetzen ? Klingt jetzt erstmal nicht so schlecht, allerdings müsste man dann schauen, was man macht, wenn kein AD vorhanden ist. Eventuell eine Abfrage bei spielstart, ob mit AD oder CP die Überführung- und Auffüllkurse gefahren werden sollen und dann entsprechend die Funktionen in CP deaktiviert oder aktiviert werden. Aber da wisst ihr bestimmt eh besser, was machbar ist :) |
Ich habe eine kleine Anpassung vorgenommen, damit AD erkennt, wann ein CP gefahrener Drescher abladen möchte. Damit hat es in ersten Versuchen keine Probleme gegeben. if vehicle.cp.driver.states.WAITING_FOR_UNLOAD_OR_REFILL == vehicle.cp.driver.fieldWorkUnloadOrRefillState then |
Really pleased to see this as it also makes manually driving the tractor or truck easier than guessing where the pipe will be. I tested it and unfortunately it only works when the pipe in not the fruit, as it stops at 95% |
If you have the pathfinding turned on, the combine should make a pocket and then wait for the unload. The 5% is there to have enough capacity to make the pocket. |
Yes that's understood, however in the course I was running the combine had no fruit to cut a pocket in. It was a simple square field with 4 headlands, then just up & down. It was on one of the up & down runs that the combine backed out to one side as it was almost full and the pipe would have been in the fruit, but there was no fruit on the other side to cut the pocket and therefore reach the 100% needed to trigger the pipe. I will run it again and make a screenshot. |
For a general Discussion, pls continue here #3820 |
Not sure what version of CP and AD you are using but in that situation, CP is in the 'waiting for unload' state, maybe @Stephan-S knows, I think on the CP side we are doing what we are supposed to. |
Sorry...CP version was 6.01.00220 and I was not running it in conjunction with AD, even although I had AD version 1.0.2.0 installed, yet to update both and try again. In this scenario I have been using CP for field work & AD for driving from place to place on the map, but drive to the combine and offload points manually myself, especially with over-loaders as mode 3 is yet to be initiated. |
Hey, sorry I just got around to checking it myself. I haven't had time to check which state might be missing in CP to trigger this. |
I'll check it. I think it's my fault... |
Hopefully got it right finally, combine now also calls AutoDrive when waiting to unload after made a pocket or pull back
Yeah, I screwed it up. Try with 224. |
For me 224 has not changed anything from my screenshot above... However I will state again but possibly more clearly that at no point am I using CP in conjunction with AD. That is something I intend to test shortly. For now I was just happy to see CP instruct the combine to extend it's pipe when it requires unloading, as I mentioned above because it makes manual driving of the tractor/truck easier and more realistic. I had even intended to open this as a request at some point. So if you are manually driving the tractor to unload the CP combine, the spout is extended automatically when the combine is ready to unload in all cases except for the one in the screen above. PS. Sorry for not being able to express this in German, I really wish I could. |
@51stHD looks like we had a little misunderstanding here, your scenario really did not work with AD, but it does work fine when you drive manually: the combine will open the pipe when you drive the tractor closer, it checks if there's a fillable trailer close enough. |
Yes that is understood. Thanks. What I was looking for was for the combine to extend it's pipe when it requires emptying as the Giants helper does, regardless of AD or not. I should really have opened a separate "request" for this where I could better explain what I have in mind. |
Current state is, if you unload CP Combine manualy, Trailer is full and Combine still got fruit in it, it doesn't continue its work, I don't rly like that. There must be an other way to support AD (and not make the Pipe unfold all time). |
I think this is due to the current cyclic dependency. I added a check in the AD function to check if there is an active driver waiting, If not, AD will not say that it is calling a driver. I updated the lua file. A new zip will be packaged later today when I'm done with processing some more issues. |
I also noticed another issue: https://github.com/Stephan-S/FS19_AutoDrive/issues/135 The AD unloader waits 15 seconds after the unload process before starting to drive back to the start position. The reasoning was to allow the combine to drive a 'safe' distance away before the tractor starts maneuvering. CP seems to stop until the trailer is out of pipe range, independent of the fill level, right? I will also try to include more checks, if driving through the fruit is really required/allowed at this point, to further prevent 'deadlocks' from AD side. |
I think the deadlock you see there is because @Mannie313 set the 'stop when unloading' in CP. If that's set then it looks it will not continue until the trailer leaves the pipe's range. Otherwise the combine would close the pipe and continue once the trailer is full. When AutoDrive is driving it could use courseplay/FieldworkAIDriver.lua Line 214 in b3a034e
to tell CP to hold, which, according to the description
|
Hallo Zusammen,
ich habe eine Frage bezüglich des Dreschen mit Courseplay.
Ist es möglich den Courseplay Helfer so einzustellen, das er sobald er seinen Füllstand erreicht hat automatisch sein Abtankrohr ausfährt? Zur Zeit bleibt der Drescher, sobald er voll ist, stehen und fährt das Abtankrohr erst aus wenn ein Fahrzeug in der nähe ist.
In den .lua Daten habe ich den Eintrag gefunden ab wo er immer stehen bleibt (99.5%). Wenn man diesen Wert auf 100 abändert bleibt er zwar kurz stehen und fährt das Abtankrohr aus und wieder ein, fährt aber dann einfach weiter ohne irgendwas abzuernten.
Hintergrund ist es Courseplay zusammen mit Autodrive zu nutzen. Der Autodrive Helfer fährt aber den Drescher nur Abtanken wenn der Drescher das Abtankrohr ausgefahren hat.
Vielleicht kann mir eine weiter helfen.
Vielen Dank schonmal
The text was updated successfully, but these errors were encountered: