Jump to content

yue3004

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by yue3004

  1. 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。
  2. 虽然没买,辛苦了。
×
×
  • Create New...