VE Lua Documentation

Press F to search!

initSecondStage

Definition


-- @/lua/vehicle/controller.lua:729

local function initSecondStage()
  for _, v in pairs(sortedControllers) do
    if v.initSecondStage then
      v.initSecondStage(controllerJbeamData[v.name])
    end
  end

  cacheAllControllerFunctions()
end

Callers

@/lua/vehicle/wheels.lua

local function initSecondStage()
  if not v.data.refNodes or not v.data.nodes or not v.data.nodes[v.data.refNodes[0].ref] then
@/lua/vehicle/controller/drivingDynamics/supervisors/components/brakeControl.lua

local function initSecondStage(jbeamData)
  --todo create jbeam param to determine if component should be used as TC or ESC component
@/lua/vehicle/controller/drivingDynamics/supervisors/components/awdControl.lua

local function initSecondStage(jbeamData)
  local awdActuatorName = jbeamData.awdActuatorName or "electronicSplitShaftLock"
@/lua/vehicle/controller.lua
  if c.initSecondStage then
    c.initSecondStage(controllerJbeamData[controller.name])
  end
    if v.initSecondStage then
      v.initSecondStage(controllerJbeamData[v.name])
    end
    elseif v.initSecondStage then
      v.initSecondStage(controllerJbeamData[v.name])
    end
@/lua/vehicle/controller/esc.lua

local function initSecondStage()
  escPulse = 0
@/lua/vehicle/input.lua

local function initSecondStage()
  --scale rates based on steering wheel degrees
@/lua/vehicle/controller/drivingDynamics/supervisors/yawControl.lua

local function initSecondStage(jbeamData)
  electrics.values.hasESC = true
@/lua/vehicle/controller/drivingDynamics/actuators/activeDiffBias.lua

local function initSecondStage(jbeamData)
  if not CMU then
@/lua/vehicle/controller/controllerTemplate.lua

-- local function initSecondStage(jbeamData)
-- end
@/lua/vehicle/controller/drivingDynamics/sensors/vehicleData.lua

local function initSecondStage(jbeamData)
  M.isActive = false
@/lua/vehicle/controller/drivingDynamics/actuators/activeCenterDiffLock.lua

local function initSecondStage(jbeamData)
  if not CMU then
@/lua/vehicle/controller/drivingDynamics/actuators/activeDiffLock.lua

local function initSecondStage(jbeamData)
  if not CMU then
@/lua/vehicle/controller/drivingDynamics/supervisors/components/diffControl.lua

local function initSecondStage(jbeamData)
  local frontDiffName = jbeamData.frontDiffName or "lockFront"
@/lua/vehicle/controller/drivingDynamics/supervisors/yawProviders/STMEstimate.lua

local function initSecondStage(jbeamData)
  local yawControl = CMU.getSupervisor("yawControl")
@/lua/vehicle/controller/drivingDynamics/actuators/electronicDiffLock.lua

local function initSecondStage(jbeamData)
  if not CMU then
@/lua/vehicle/controller/drivingDynamics/supervisors/components/aeroControl.lua

local function initSecondStage(jbeamData)
  local yawControl = CMU.getSupervisor("yawControl")
@/lua/vehicle/controller/gauges/analogOdometer.lua

local function initSecondStage(jbeamData)
  --merge config data from multiple parts so that some things can be defined in sub-parts. section name needs to be "configuration_xyz"
@/lua/vehicle/controller/drivingDynamics/supervisors/components/motorTorqueControl.lua

local function initSecondStage(jbeamData)
  local useForTractionControl = jbeamData.useForTractionControl == nil and true or jbeamData.useForTractionControl
@/lua/vehicle/controller/tirePressureControl.lua

local function initSecondStage(jbeamData)
  local mode = jbeamData.mode or "manualControl"
@/lua/vehicle/controller/drivingDynamics/supervisors/slipProviders/virtualSpeedSlip.lua

local function initSecondStage(jbeamData)
  local tractionControl = CMU.getSupervisor("tractionControl")
@/lua/vehicle/controller/drivingDynamics/CMU.lua

local function initSecondStage()
  subControllerLookup = {}
@/lua/vehicle/controller/gauges/genericGauges.lua

local function initSecondStage(jbeamData)
  local displayData = jbeamData.displayData
@/lua/vehicle/controller/pneumatics/autoLevelSuspension.lua

local function initSecondStage(jbeamData)
  local actuatorName = jbeamData.actuatorName or "airbags"
@/lua/vehicle/main.lua
  profilerPushEvent("3.3 init - second stage")
  wheels.initSecondStage()
  controller.initSecondStage()
  wheels.initSecondStage()
  controller.initSecondStage()
  drivetrain.init()
  props.init()
  input.initSecondStage() -- needs to go after sounds & electrics
  recovery.init()
@/lua/vehicle/controller/drivingDynamics/supervisors/tractionControl.lua

local function initSecondStage(jbeamData)
  tractionControlledWheelGroups = {}
@/lua/vehicle/controller/drivingDynamics/actuators/electronicSplitShaftLock.lua

local function initSecondStage(jbeamData)
  if not CMU then