1
0
Fork 0
Commit graph

5 commits

Author SHA1 Message Date
ehofman
4d4fef591b Melchior FRANZ:
These patches add a clock instrument, which allows to model failure ("serviceable") and to adjust the time independently of the system time (defaults to GMT). The main incentive is to make the p51d clock work and adjustable via the knob.

 o Offers a time string ("12:03:15") for the LCD or for LED
   clocks, or an empty string in case of failure/power off. The
   instrument assumes that digital clocks are battery buffered,
   so they will be updated even if there's nothing on the display.

 o Offers the number of seconds since midnight for analog
   clocks, like in the p51d. This number is not increased
   if !serviceable. So the clock will stand still and continue
   where it stopped when it's serviceable again.

I did not consider voltage yet, because the Mustang's clock will need a lot more current than the LCD clock. The instrument is updated 4 times per second but returns immediately if neither time nor offset changed. The function getGMTString() in fg_props.cxx could be removed after applying these patches.
2003-06-27 08:45:35 +00:00
j4strngs
7d224e6820 The new led font is now antialiased (`a la Andy) and has
twice the design size (character height) of the old one.
Advantages:
- displays . and : correctly with less space around, and digits
  with more space around (using Andy's improvements to plib)
- small text becomes much more legible (-> clock, AP-altitude)
- the font contains pretty much every character that can be
  displayed on a seven segment display, so it might be more
  useful for future instruments.
2002-11-02 00:23:46 +00:00
curt
20d0f8ea7d Update clock to use LED font now that Melchior has added a ":" to the
font.
2002-02-19 12:27:22 +00:00
curt
64155f6531 Specify LED font for radio displays. 2002-02-19 02:43:28 +00:00
j4strngs
b5537626f8 Instruments are now consolidated in a single directory.
Textures are now more organized and usefully named.
2001-12-12 14:20:38 +00:00