X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=docs-mini%2FREADME.protocol;h=80a7163c68f6119bc43c53885f75224b85a881c8;hb=575f576aa90d8d22a857ccbb5e9f2c2e79a0db50;hp=ef9c39a2e1d8bd39a7a64e2f5d2cfde4826511a2;hpb=0d609b80333ea83d91e4d604ac3de1ffcf440e72;p=flightgear.git diff --git a/docs-mini/README.protocol b/docs-mini/README.protocol index ef9c39a2e..80a7163c6 100644 --- a/docs-mini/README.protocol +++ b/docs-mini/README.protocol @@ -131,6 +131,26 @@ each of which describes the properties of on variable to write/read. an optional offset which can be used for unit conversion. (for example, degrees Celcius to degrees Fahrenheit). +For input chunks there exist some more options: + + optional boolean parameter to enable handling of incoming values + as relative changes (default: false) + (Can be eg. used to realise up/down buttons by just sending 1 or + -1 respectively) + + an optional minimum limit for the value to be clamped to. This + limit is always specified as absolute value, also with relative + changes enabled. (default: 0) + an optional upper limit for the input value to be clamped to. If + equals no limit is applied. (default: 0) + instead of clamping to minimum and maximum limits, wrap values + around. Values will be in [min, max[ (default: false) + (Usefull for eg. heading selector to start again with 1 for + values higher than 360) + +, , and are only used for numeric data types. can +additionally be used with type 'bool', where it toggles the value, if the received +value evaluates to 'true', otherwise the value is left unchanged. Chunks can also consist of a single constant , like in: Data Section @@ -184,7 +204,30 @@ P=3.59 +Control the heading bug by sending relative changes separated by newlines: + + + + + + + newline + + + heading bug + int + /autopilot/settings/heading-bug-deg + true + 1 + 360 + true + + + + + + -- writing data in XML syntax -------------------------------------------------