In the case “Alphajet” of avionics.lua
local pitch = get_param_handle("D_PITCH")
function update()
pitch:set(sensor_data.getStickRollPosition())
end
end
In the case “Alphajet” of indication_page.lua
local PitchScaleParam = CreateElement "ceTexPoly" --this could be the text area on HUD
PitchScaleParam.name = create_guid_string() -- this must be external function call.
PitchScaleParam.vertices = {{-grid_radius, grid_radius},
{ grid_radius, grid_radius},
{ grid_radius,-grid_radius},
{-grid_radius,-grid_radius}}
PitchScaleParam.indices = {0,1,2,2,3,0}
PitchScaleParam.tex_coords = {{0,0},{1,0},{1,1},{0,1}}
PitchScaleParam.material = PitchScale
PitchScaleParam.element_params = {"D_PITCH"} -- Global Variable to test
PitchScaleParam.controllers = {{"move_up_down_using_parameter",0,0}}
PitchScaleParam.collimated = true
PitchScaleParam.parent_element = grid_origin.name
AddElement(PitchScaleParam)
hud pitch did not move up and down。help me,thank guys。