VE Lua Documentation

Press F to search!

getAltitude

Definition


-- @/=[C]:-1
function getAltitude(...)

Callers

@/lua/vehicle/controller/tech/cosimulationCoupling.lua
  kOut[15] = obj:getYawAngularVelocity()                                                            -- Yaw rate, rad/s.
  kOut[16], kOut[17] = obj:getGroundSpeed(), obj:getAltitude()                                      -- Ground speed, m/s. Altitude, meters.
  local fwd = obj:getDirectionVector()
@/lua/vehicle/controller/tech/vehicleSystemsCoupling.lua
  messageToSimulink[24] = yaw                                       -- Yaw, rad.
  messageToSimulink[25] = obj:getAltitude()                         -- Altitude, m.
@/lua/vehicle/electrics.lua
  vals.airflowspeed = obj:getAirflowSpeed()
  vals.altitude = obj:getAltitude()
  vals.parking = 0 -- TODO: input.parkinglights