From 1033bdffd26b199f5e2aa79556e82c6a8b12a943 Mon Sep 17 00:00:00 2001 From: Norbert Takacs Date: Wed, 1 May 2024 16:34:49 +0200 Subject: [PATCH] Documentation: add dot_position option Signed-off-by: Norbert Takacs --- doc/documentation.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/documentation.md b/doc/documentation.md index 05f455f..81514d7 100644 --- a/doc/documentation.md +++ b/doc/documentation.md @@ -515,6 +515,18 @@ The below table contains some examples of different options. We suppose the disp | 100 | 00100 | 100 | 100 | | 1500 | 01500 | 1500 | 1500 | +*Dot positionr*: You can add dot (period) character to the display lines. It is usefull when the numerical data is not an integer number. For example navigation radio frequesncies are in this form: 118.100 Mhz To add a dot caharacter to the display please use this option on the appropriate lines: +``` +[multi_display:id="RADIO_DISPLAY_ACTIVE_UP"] +line="on_select:SW_UP_COM1,dataref:sim/cockpit2/radios/actuators/com1_frequency_hz, dot_position: 2" +``` +Here the ```dot_position``` option is an index starting at the most right position with index 0 + +| value | dot_position:0 | dot_position:1 | dot_position:2 | +| ------| -------------- | -------------- | -------------- | +| 12345 | 12345. | 1234.5 | 123.45 | + + ### Multipurpose displays The display value can be a conditional display which means the value to display depends on the position of a switch. A display that contains conditions called multi-purpose display (multi_display).