<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="ClaasJaguar980">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
		<en>Claas Jaguar 980</en>
		<de>Claas Jaguar 980</de>
	</name>
    <filename>ClaasJaguar980.i3d</filename>

    <size width="5.5" length="11" lengthOffset="-1.5"/>

    <wheels autoRotateBackSpeed="1">
        <wheel rotSpeed="-58" rotMax="40" rotMin="-40" driveMode="1" repr="2" driveNode="2|0" radius="0.74" deltaY="0.2" suspTravel="0.22" spring="100" damper="20" mass="1" brakeRatio="1" />
        <wheel rotSpeed="-58" rotMax="40" rotMin="-40" driveMode="1" repr="3" driveNode="3|0" radius="0.74" deltaY="0.2" suspTravel="0.22" spring="100" damper="20" mass="1" brakeRatio="1" />
        <wheel rotSpeed="0" driveMode="2" repr="0" radius="0.96" deltaY="0.2" suspTravel="0.3" spring="100" damper="20" mass="1" brakeRatio="1" />
        <wheel rotSpeed="0" driveMode="2" repr="1" radius="0.96" deltaY="0.2" suspTravel="0.3" spring="100" damper="20" mass="1" brakeRatio="1" />
    </wheels>

    <accelerationSpeed maxAcceleration="0.7" deceleration="1" brakeSpeed="3" />	
    <fuelCapacity>1290</fuelCapacity>
    <fuelUsage>0</fuelUsage>
    <downForce>0</downForce>
	<bunkerSiloCompacter compactingScale="3.75"/>
	
	
	<aiTurnThreshWidthMaxDifference value="0.20" /> <!-- we want 20 cm overlap -->
	<aiTurnThreshWidthScale value="0.5" /> <!-- and so, we set a "ridiculous" width scale to use the max difference -->
	
	
	<realSpeedLevel>7.2 8.7 12</realSpeedLevel> <!-- speedLevel 1,2,3 in km/h  -->
	<realMaxVehicleSpeed>40</realMaxVehicleSpeed>
	<realMaxReverseSpeed>20</realMaxReverseSpeed>
	<realBrakeMaxMovingMass>38</realBrakeMaxMovingMass>	
	<realBrakingDeceleration>4</realBrakingDeceleration> <!-- deceleration in m/s2.  2 = very bad. 3 = bad. 4 = average. 5 = good. 6/7 = trucks, cars braking system  -->

	<realAiWorkingSpeed baseSpeed="6" maxSpeed="12" minSpeed="2" />
	<realAiManeuverSpeed>9</realAiManeuverSpeed>
	<realAiMinDistanceBeforeTurning>3</realAiMinDistanceBeforeTurning> <!-- this harvester needs to handle wide cutter like the easycollect 1053 -->
	
	<realSCX>9.4</realSCX>
	<realPtoPowerKW>754</realPtoPowerKW>	<!-- only one motor active when not threshing -->
	<realPtoDriveEfficiency>1</realPtoDriveEfficiency> <!-- no pto -> engine pto power = engine net power -->
	<realMaxFuelUsage>180</realMaxFuelUsage> <!-- for one motor -->
	<realTransmissionEfficiency>0.8</realTransmissionEfficiency>
	<realMaxPowerToTransmission>400</realMaxPowerToTransmission> <!-- not all the engine power go to the hydraulic motors -->
	
	<realHydrostaticTransmission>true</realHydrostaticTransmission>	
	
	<realCombineCycleDuration>1</realCombineCycleDuration>
		
	<realUnloadingPowerConsumption>12</realUnloadingPowerConsumption> <!-- KW -->
	<realThreshingPowerConsumption>180</realThreshingPowerConsumption> <!-- KW -->
	<realThreshingPowerConsumptionInc>3</realThreshingPowerConsumptionInc> <!-- indication of KW / treshed  sqm / s   => chopper -->
	
	<realThreshingScale>0.95</realThreshingScale> <!-- 5% loss when threshing -->
	
	
	<turnForwardAngleThreshold>45</turnForwardAngleThreshold>
	<turnBackwardAngleThreshold>10</turnBackwardAngleThreshold>
	<waitForTurnTime>0</waitForTurnTime>
	
	<realDisplaySlip>true</realDisplaySlip>

    <cameras count="2">
        <camera1 index="4|0|0" rotatable="true" rotateNode="4|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="7" transMax="35" >
			<raycastNode index="0>20"/>
			<raycastNode index="0>21"/>
		</camera1>
        <camera2 index="4|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" />
    </cameras>
	
	<passengerCamera index="0>31|1" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0"/>
	<passenger NicknameRenderNode="0>31|2" passengerFarmer="0>31|0" />
	
	<backupCamPanel highlight="0>32" xPos="0.728" yPos="0.575" />

	<backupCams>
		<cam index="0>8|1|1|0|0|0|4" rotatable="false" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
		<cam index="0>8|1|3" rotatable="false" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
		<cam index="0>33" rotatable="false" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
	</backupCams>


    <lights>
        <light realLight="0>5|0" fakeLight="0>14" decoration="0>15" lightType="0"/>
		<light decoration="0>8|1|1|1|0" lightType="0"/>
    </lights>	
	
	<brakeLights>
		<brakeLight index="0>22" />
		<brakeLight index="0>8|1|1|1|1" />
	</brakeLights>

	<beaconLights stayOn="true">
		<beaconLight index="0>23|5|0" rotIndex="0>23|5" speed="0.016" />
		<beaconLight index="0>23|6|0" rotIndex="0>23|6" speed="0.015" />
	</beaconLights>


    <steering index="0>9|0|1|0" rotationSpeed="6"/>

    <attacherJoints>
        <attacherJoint jointType="cutter" index="11|0|0" rotationNode="11" rotationNode2="11|0" minRot="-4 0 0" maxRot="10 0 0"  maxRot2="-5.5 0 0" moveTime="2.5" maxRotDistanceToGround="0.6" minRotDistanceToGround="1.8651" />
        <attacherJoint index="13" jointType="trailer" allowsJointLimitMovement="false" allowsLowering="false" maxRotLimit="10 80 80" maxTransLimit="0 0 0"/>
		<attacherJoint index="0>13" jointType="trailerLow" maxRotLimit="10 80 80" allowsLowering="false" allowsJointLimitMovement="false" ptoOutputNode="0>13" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d" />
	</attacherJoints>
	
	
	
	<lightsaddon lightsStayOn="false">
			<light type="work" index="0>8|1|1|3|0|0" real="0>8|1|1|3|0|2" beam="0>8|1|1|3|0|1" inputName="Pipelicht" helptext="Pipelicht" stayOn="false"/>
			<light type="work" index="0>21" real="0>21|2" beam="0>21|1" inputName="Arbeitslicht" helptext="Arbeitslicht" stayOn="false"/>
			<light type="dirLeft" index="0>18|0" />
			<light type="dirRight" index="0>18|1" />
            <flashers soundfile="sounds/blinktick.wav" lowPitch="0.8" highPitch="1.0" volume="1.6"/>
	</lightsaddon>

	<pipeSound file="sounds/hydraulicUp.wav" pitchOffset="1" volume="0" />
	<drumStartSound file="sounds/treshing_start.wav" pitchOffset="1" volume="0" radius="50" innerRadius="25" />
	<drumIdleSound file="sounds/treshing_idle.wav" pitchOffset="1" volume="0" radius="50" innerRadius="25" />
	<drumStopSound file="sounds/treshing_stop.wav" pitchOffset="1" volume="0" radius="50" innerRadius="25" />
	<cutterStartSound file="sounds/treshing_start.wav" pitchOffset="1" volume="0" radius="50" innerRadius="25" />
	<cutterStopSound file="sounds/treshing_start.wav" pitchOffset="1" volume="0" radius="50" innerRadius="25" />
	<cutterIdleSound file="sounds/treshing_start.wav" pitchOffset="1" volume="0" radius="50" innerRadius="25" />
	<threshingStartSound file="sounds/treshing_start.wav" pitchOffset="1" volume="1.5" radius="50" innerRadius="25" />
	<threshingSound file="sounds/treshing_idle.wav" pitchOffset="1" pitchScale="0.001" pitchMax="1.2" radius="50" innerRadius="25" volume="1.5" />
    <threshingStopSound file="sounds/treshing_stop.wav" pitchOffset="1" volume="1.5" radius="50" innerRadius="25" />

    <attachSound file="$data/vehicles/steerable/deutz/attach_cutter.wav" pitchOffset="1" />
    <motorSoundRun file="$data/vehicles/steerable/krone/hydraulic_run.wav" pitchOffset="0.5" pitchScale="0.025" pitchMax="1.05" volume="0.52"/>
    <motorStartSound file="sounds/claasJaguar_start.wav" pitchOffset="1" />
    <motorSound file="sounds/claasJaguar_idle.wav" pitchOffset="1" pitchScale="0.02" pitchMax="1.4" radius="50" innerRadius="25" volume="1"/>
    <motorStopSound file="sounds/claasJaguar_out.wav" pitchOffset="1" />
    <reverseDriveSound file="$data/vehicles/steerable/deutz/reverseDrivingBeep.wav" volume="0.5" />
    <compressedAirSound file="$data/vehicles/steerable/deutz/compressedAir.wav" pitchOffset="1" volume="0"/>
    <compressionSound file="$data/vehicles/steerable/deutz/compressorWork.wav" pitchOffset="1" volume="0"/>
		

    <enterReferenceNode index="0>" />

    <exitPoint index="7" />

    <pipe numStates="2" unloadingStates="0 1 2" raycastNodeIndex="0>8|1|1|0|0|0|0" raycastDistance="16" autoAimStates="2">
        <node index="0>8" rotationSpeeds="0 35 0" autoAimYRotation="true" autoAimInvertZ="true">
            <state1 rotation="0 0 0" />
            <state2 rotation="0 0 0"/>
        </node>
        <node index="0>8|1" rotationSpeeds="25 0 0">
            <state1 rotation="-7.8 0 0"/>
            <state2 rotation="30 0 0"/>
        </node>
        <node index="0>8|1|1|0|0|0" rotationSpeeds="80 0 0" autoAimXRotation="true">
            <state1 rotation="136 0 0"/>
            <state2 rotation="180 0 0"/>
        </node>
		<!--node index="0>8|1|1" rotationSpeeds="30 0 0">
			<state1 rotation="115 0 0"/>
			<state2 rotation="149 0 0"/>
		</node-->
	</pipe>
	
	<pipeParticleSystems>
        <pipeParticleSystem type="chaff" node="0>8|1|1|0|0|0|3" file="ParticleSystems/chaffParticleSystem.i3d" />
		<pipeParticleSystem type="grass_windrow" node="0>8|1|1|0|0|0|3" file="ParticleSystems/grassParticleSystem.i3d" />
		<pipeParticleSystem type="grass" node="0>8|1|1|0|0|0|3" file="ParticleSystems/grassParticleSystem.i3d" />
    </pipeParticleSystems>

	<honkSound file="$dataS2/sounds/hornBig.wav" volume="1" radius="80" innerRadius="35" />

    <exhaustParticleSystems count="1">
		<exhaustParticleSystem1 node="12|0" file="Textur/exhaustParticleSystem.i3d" />
    </exhaustParticleSystems>

	<grainTankCapacity>0</grainTankCapacity>
    <grainTankUnloadingCapacity>0</grainTankUnloadingCapacity>
    <grainTankFruitTypes fruitTypes="chaff grass_windrow grass" />

    <combineSize>2</combineSize>
    <allowThreshingDuringRain>true</allowThreshingDuringRain>


    <characterNode index="10" cameraMinDistance="1.5" />

    <aiTrafficCollisionTrigger index="0>16" />
    <combineTrailerTriggers>
        <combineTrailerTrigger index="0>17" pipeState="2" />
    </combineTrailerTriggers>

	<rotorFan index="0>11|1|0" />
	<rotorFan2 index="0>11|1|1" />
	
	<wiper animName="wiper" speed="3.0" />
	
	<animations>	
		<animation name="wiper">
			<part node="0>23|10" startTime="0" endTime="3" startRot="15.52004 0 0" endRot="-5.9 -14.3 112"/>
			<part node="0>23|10" startTime="3" endTime="6" startRot="15.52004 0 0" endRot="3.72 15.17 -94.8"/>
        </animation>	
		
		<animation name="LeftDoor">
			<part node="0>23|8" startTime="0" duration="2" startRot="16 -0.157491 2.75396" endRot="19.2601 -33.509 -8.01669"/>
        </animation>
		<animation name="RightDoor">
			<part node="0>23|3" startTime="0" duration="1" startRot="16 0.340316 -2.62225" endRot="16 10 0.270032"/>
        </animation>
		<animation name="Sauele">
			<part node="0>9|0" startTime="0" duration="1.5" startRot="38.0006 0 0" endRot="61 0 0"/>
        </animation>
		<animation name="Beifahrer">
			<part node="0>23|7" startTime="0" duration="1.5" startRot="0 0 0" endRot="-90 0 0"/>
        </animation>
		<animation name="Klappe">
			<part node="0>28" startTime="0" duration="3" startRot="0 0 0" endRot="10 -0 0"/>
        </animation>
	</animations>
	
	<interactiveComponents>
		<windows>
			<window name="LeftDoor"   		mark="0>23|8|0" 		size="0.1" animName="LeftDoor" onMessage="ic_component_open" offMessage="ic_component_close"/>
			<window name="Sauele"   		mark="0>9|0|2" 			size="0.1" animName="Sauele" onMessage="ic_component_open" offMessage="ic_component_close"/>
			<window name="Sitz"   			mark="0>29" 			size="0.1" animName="Beifahrer" onMessage="ic_component_open" offMessage="ic_component_close"/>
			<window name="RightDoor"       	mark="0>23|3|0" 		size="0.1" animName="RightDoor" onMessage="ic_component_open" offMessage="ic_component_close"/>
			<window name="Klappe"   		mark="0>27|3|0" 		size="0.1" animName="Klappe" onMessage="ic_component_open" offMessage="ic_component_close"/>
		</windows>
	</interactiveComponents>	
	
	
	<movingTools>
        <!-- pipe -->
        <movingTool index="0>8|1">
            <!-- pipe cylinder -->
            <dependentPart index="0>8|0" />
        </movingTool>
		<movingTool index="0>8|1|1|0|0">
            <dependentPart index="0>8|1|1|3" />
			<dependentPart index="0>8|1|1|4" />
		</movingTool>
        <!-- pipe base -->
        <movingTool index="0>8">
            <!-- pipe -->
            <dependentPart index="0>8|1" />
        </movingTool>
    </movingTools>
	
    <movingParts>
        <!-- Pipe Leuchte -->
        <movingPart index="0>8|1|1|3" referencePoint="0>8|1|1|0|0|0|2" referenceFrame="0>8|1|1|0|0|0" isActiveDirty="true">
        </movingPart>
		 <!-- Pipe Zylinder1 -->
        <movingPart index="0>8|0" referencePoint="0>8|1|0" referenceFrame="0>8|1" invertZ="true" isActiveDirty="true">
			<translatingPart index="0>8|0|0" />
        </movingPart>
		<!-- Pipe Zylinder2 -->
		<movingPart index="0>8|1|1|4" referencePoint="0>8|1|1|0|0|1|0" referenceFrame="0>8|1|1|0|0" invertZ="true" isActiveDirty="true">
			<translatingPart index="0>8|1|1|4|0" />
        </movingPart>
		<!-- Strebe -->
		<movingPart index="0>8|1|1|2" referencePoint="0>8|1|1|0|0|0|5" referenceFrame="0>8|1|1|0|0|0" scaleZ="true" isActiveDirty="true">
        </movingPart>
		<!-- Sonstiges	-->
		<movingPart index="0>23|4" referencePoint="0>11|2" referenceFrame="0>11" isActiveDirty="true">
			<translatingPart index="0>23|4|0" />
        </movingPart>
		<movingPart index="0>23|9" referencePoint="0>11|3" referenceFrame="0>11" isActiveDirty="true" scaleZ="true">
        </movingPart>
	</movingParts>

    <components count="1">
        <component1 centerOfMass="0 -2.0 0" solverIterationCount="10" realMassWanted="14.8" />
    </components>

	
	<manualIgnition deactivate="true" />
	<key index="0>23|2" off="0 33.5 0" on="-19.1404 28.03233 -36.44574" start="-27.50406 19.92445 -56.79448" />
	
	
	
	<animParts>
        <animPart index="0>27|3" 	id="joystickF" 		transMin="-0.36879 0.4492 0.80156" 	transMax="-0.36879 0.44124 0.85386" 		autoReturn="true"  	moveTime="0.5" 		showHelp="false" 	/>
        <animPart index="0>27|3" 	id="joystickB" 		transMin="-0.36879 0.4492 0.80156" 	transMax="-0.36879 0.44124 0.75978" 		autoReturn="true"  	moveTime="0.5" 		showHelp="false" 	/>
		<!-- Pipe -->	
		<animPart index="0>8|1|1" 	id="Pipe" 			transMin="0 -0.852 0.909" rotMin="16 0 0" transMax="0 0 0" rotMax="0 0 0" 		autoReturn="false"  moveTime="0.001" 	showHelp="true" 	/>
		<animPart index="0>8|1|4" 	id="Pipe" 			scaleMin="0 0 0"					scaleMax="1 1 1"							autoReturn="false"  moveTime="0.001" 	showHelp="false"	/>
	</animParts>		
	
	<TractorAnimations luefterIndex="0>27|0" > <!-- Luefter -->
		<Rolle rolleIndex="0>27|0" />
		<TachoZeiger 		zeigerIndex="0>35|1" maxRotation="180" multiplicator="4.18"/> <!-- maxRotation / max KM/h = Multiplicator -->
		<TankZeiger 		zeigerIndex="0>35|2|0" maxRotation="270" /><!-- Tank -->
		<TemperaturZeiger  	zeigerIndex="0>35|3|0" maxRotation="135" /> <!-- Temp1 -->
		<TemperaturZeiger2 	zeigerIndex="0>35|4|0" maxRotation="135" /> <!-- Temp2 -->
		<BlinkerLeuchten leuchte1L="0>27|0" leuchte1R="0>27|0" leuchte2L="0>27|0" leuchte2R="0>27|0" />
		<LadeKontrollLeuchte index="0>27|0" />
	</TractorAnimations>
	
    <schemaOverlay file="$data/vehicles/schemas/vehicleSchema.png" fileSelected="$data/vehicles/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0">
        <attacherJoint position="0 0" rotation="0" invertX="false" />
        <attacherJoint position="1 0" rotation="0" invertX="false" />
    </schemaOverlay>

</vehicle>
