README 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Chronograph
  2. -----------
  3. Time offset adjustable with bottom left button, LMB change minutes, MMB change
  4. hours.*
  5. The time offset will be saved between two Flightgear sessions.
  6. At start the second hand is locked on zero. Click on the upper right button
  7. starts the second hand and a chronometer minutes hand. Click again on the
  8. upper right button stops the chronometer. Click again resets the chronometer
  9. to zero.
  10. Setting up :
  11. ------------
  12. - Include the model in your model file.
  13. <model>
  14. <path>Aircraft/Instruments-3d/chronograph/chronograph.xml</path>
  15. <offsets>
  16. <x-m>xxx</x-m>
  17. <y-m>xxx</y-m>
  18. <z-m>xxx</z-m>
  19. </offsets>
  20. </model>
  21. - Declare chronograph.nas in your foo-set.xml file. Write something like:
  22. </nasal>
  23. <chronograph>
  24. <file>Aircraft/foo/Nasal/chronograph.nas</file>
  25. </chronograph>
  26. </nasal>
  27. - Open chronograph.nas and uncomment chrono_loop() and the following settimer()
  28. if update_chrono() has to be launched standalone.
  29. Otherwise launch foo_chronograph.update_chrono() from a centralized loop which
  30. will save some CPU cycles.
  31. See chronograph.nas line 48.
  32. That's it.
  33. * LMB Left Mouse Button, MMB midle mouse button.