setloglevel messages
#setloglevel all
usemodule navigation
#usemodule RayTracer
usemodule rendergl
#usemodule rendergl3
setparam kernel.cloneSceneData 0

setparam VehicleSimulator.odeTimeStep 1
setparam VehicleSimulator.odeIterations 50
setparam VehicleSimulator.sleepDuration 0
setparam VehicleSimulator.sceneUpdateDelay 16
setparam VehicleSimulator.eventsFPS 1000

#setparam VehicleSimulator.brakingForce 900 true
#setparam VehicleSimulator.suspensionSoftnessFront 56 true
#setparam VehicleSimulator.suspensionStrengthFront 20 true
#setparam VehicleSimulator.slip 50 true
#setparam VehicleSimulator.swayForce 40000 true
#setparam VehicleSimulator.maxSwayForce 8000 true
#setparam VehicleSimulator.vehicleMassRel 1621 true


#setparam RenderGl.antiAliasingMethod "Multi sampling"
#setparam RenderGl.alphaToCoverage 1
setparam Navigation.nearPlane 10

setparam CarHW.HWtype 3

# params for the TC hardware
# setparam CarHW.comPortWheel com6
# setparam CarHW.comPortAccelerator com8
# setparam CarHW.comPortBrake com4

# setparam CarHW.comPortLog0 com2
# setparam CarHW.comPortLog1 com1
# setparam CarHW.comPortLog2 com6
# setparam CarHW.comPortLog3 com9
# setparam CarHW.comPortLog3BaudRate 9600
# setparam CarHW.comPortLog4 com7

# setparam CarHW.eventTimeout 10
#setparam CarHW.HWType 0 true


# if the cluster runs make this a server
# cluster setup
# make this a server
setparam Cluster.eventTimeout 0
#setparam Cluster.distributeEvents "5 - HW TCP server"
# #setparam Cluster.remotePort 2728
# #setparam Cluster.remotePort 2728
runmodule cluster2

runmodule JSScripting
setparam JSScripting.scriptPath "../bin/traffic.js"
setparam JSScripting.runScript "1"


