Wie kann ich dem ap neue funktionen geben so das er Gerste oder weizen folgt damit ich den mir inden drescher einbau kann ?
Mfg Fendtfahrer0101
Wie kann ich dem ap neue funktionen geben so das er Gerste oder weizen folgt damit ich den mir inden drescher einbau kann ?
Mfg Fendtfahrer0101
das is nicht so einfach erstmal suchts du ungefähr in der mitte solche zeilen
if (left < 1 and right < 1) or (left > 19 and right > 19) then
self.autoPilotDelayRight = self.autoPilotDelayRight +1;
else
self.autoPilotDelayRight = 0;
end;
end;
if self.autoPilotAreaLeft.available and self.autoPilotAreaLeft.active and self.autopilotId == 7 then
local x,y,z = getWorldTranslation(self.autoPilotAreaLeft.startOutside);
local x1,y1,z1 = getWorldTranslation(self.autoPilotAreaLeft.widthOutside);
local x2,y2,z2 = getWorldTranslation(self.autoPilotAreaLeft.heightOutside);
local left = Utils.getDensity(g_currentMission.fruits[FruitUtil.FRUITTYPE_MAIZE].cutShortId, 0, x, z, x1, z1, x2, z2);
local x,y,z = getWorldTranslation(self.autoPilotAreaLeft.startInside);
local x1,y1,z1 = getWorldTranslation(self.autoPilotAreaLeft.widthInside);
local x2,y2,z2 = getWorldTranslation(self.autoPilotAreaLeft.heightInside);
local right = Utils.getDensity(g_currentMission.fruits[FruitUtil.FRUITTYPE_MAIZE].cutShortId, 0, x, z, x1, z1, x2, z2);
self.turnDirection = ((20 -right) -left*4);
if (left < 1 and right < 1) or (left > 19 and right > 19) then
self.autoPilotDelayLeft = self.autoPilotDelayLeft +1;
else
also das steht doch was von fruittype maize dies mus du so umändern wie du wilst!und ihr müsst das cutshort noch umändern
bitte verbessert mich wen es falsch ist!
Dahinter steht aber noch cutShort, also folgt er Maisstoppeln. Wenn ihr Ahnung davon habt dann kriegt ihr das hin indem ihr die autopilot ID 0 sucht, das ist nämlich wer AP für Gras.
ich hätte nomal zwei fragen!
ertse wo findet man die bezeichnungen?
un zweitens was meinst du mit ID 0
Schau dir einfach mal den Script an, ansonsten such einfach mal nach "self.autopilotId == 0". Achso, wenn du nur was veränderst ist das kein Problem, was hinzufügen schon eher, da reicht nicht nur ein Eintrag.
schu der mal die zeilen an wo nur grass steht und dahinter nicht cutlong oder so was steht und schreib anstat grass ma wheat rein für weizen in deiner anzeige musst du dann auf grass stelln eig funktioniert er dann
also bei mir funktionert es im lexion
100%
also ich hab mal gesucht und nur das gefunden wo steht da bitte grass oder wheat?
if self.autopilotId == 0 then
renderText(self.helpPanelTextPosX, self.helpPanelTextPosY-0.325, 0.023, "AP: gemaehtes Gras");
setTextColor(0.0, 1.0, 0.0, 1.0);
renderText(self.helpPanelTextPosX, self.helpPanelTextPosY-0.3, 0.023, "AP: Gras");
Wenn du von Scripten noch keine Ahnung hast, dann solltest du dir vll erstmal TUT´s und leichetere Scripts durchlesen bevor du davon was verstehst.
naja das hab ich etz schon das richtige gefunden
if self.autoPilotAreaRight.available and self.autoPilotAreaRight.active and self.autopilotId == 0 then
local x,y,z = getWorldTranslation(self.autoPilotAreaRight.startOutside);
local x1,y1,z1 = getWorldTranslation(self.autoPilotAreaRight.widthOutside);
local x2,y2,z2 = getWorldTranslation(self.autoPilotAreaRight.heightOutside);
local right = Utils.getFruitArea(FruitUtil.FRUITTYPE_GRASS, x, z, x1, z1, x2, z2);
local x,y,z = getWorldTranslation(self.autoPilotAreaRight.startInside);
local x1,y1,z1 = getWorldTranslation(self.autoPilotAreaRight.widthInside);
local x2,y2,z2 = getWorldTranslation(self.autoPilotAreaRight.heightInside);
local left = Utils.getFruitArea(FruitUtil.FRUITTYPE_GRASS, x, z, x1, z1, x2, z2);
self.turnDirection = right -(9 -left);
self.turnDirection = right*4 -(20 -left);
if (left < 1 and right < 1) or (left > 19 and right > 19) then
self.autoPilotDelayRight = self.autoPilotDelayRight +1;
else
self.autoPilotDelayRight = 0;
also die roten muss ich ja ändern oder??
Gut mein Padawan Schüler hat das gemacht(Joda)
jo muss ich die jetzt ändern oder wie?
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!