Jump to content

Sprocket1597

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Sprocket1597

  1. you can code it to watch if "MetadataEnd/_UPDATE_COUNTER" stops.
  2. you mean this bit?
  3. Leave this line as it is: indicator_type = indicator_types.COLLIMATOR No worries!
  4. I got this working on 2.7.8 by just adding this to HUD_init.lua: dofile(LockOn_Options.common_script_path.."ViewportHandling.lua") try_find_assigned_viewport("A_10C_HUD", "HUD") And then defining viewport with A_10C_HUD in MonitorSetup.lua. (not A10_HUD as in original post)
  5. Here is how I did it: void loop() { DcsBios::loop(); //watchdog timer... clears displays when MetadataEnd/_UPDATE_COUNTER stops changing for more than 2 seconds unsigned long currentMillis = millis(); if (currentMillis - previousMillis >= interval) { previousMillis = currentMillis; if (ticklast == tick) { lc.clearDisplay(0); lc.clearDisplay(1); } tick=ticklast; } } //end loop void onUpdateCounterChange(unsigned int newValue) { tick=newValue; } DcsBios::IntegerBuffer UpdateCounterBuffer(0xfffe, 0x00ff, 0, onUpdateCounterChange);
×
×
  • Create New...