User Tools

Site Tools


projects:a4sim:jsonfileformat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:a4sim:jsonfileformat [2020/01/04 22:58]
dwheele [General Dref Info]
projects:a4sim:jsonfileformat [2020/05/05 22:40] (current)
dwheele [I2C Block]
Line 1: Line 1:
-====== a4SimData.json File Format ======+====== a4simData.json File Format ====== 
 + 
 +The copy of this file located on Raspberry Pi at ''/home/pi/Documents/app/projects/XplaneA4HardwareSimAgent/a4simData.json'' is considered the official version. This copied occasionally to other places in the form of working copies.
  
 ==== Example ==== ==== Example ====
Line 48: Line 50:
 ^name|Actual X-Plane Dref name| ^name|Actual X-Plane Dref name|
 ^hide|If "false" it is as if it is not even here. To skip processing of missing hardware, for example.| ^hide|If "false" it is as if it is not even here. To skip processing of missing hardware, for example.|
-^datadirection|"in" = this data flows **in** to X-Plane (e.g., Aileron input), "out" = this data flows **out** from X-plane (e.g., an airpseed amount)|+^datadirection|"**in**" = this data flows in to X-Plane (e.g., Aileron input), "**inNonZero**" = flows to X-Plane **only** if not in the zero position (e.g., a trigger for speedbrake retract), "**inNonZeroPerSecond**" = flows to X-Plane **only** if not in the zero position (e.g., a momentary request to move toward a maximum), "out" = this data flows **out** from X-plane (e.g., an airpseed amount)|
 ^type|Data type of Dref, e.g., "float, int, bool"| ^type|Data type of Dref, e.g., "float, int, bool"|
 ^units|e.g., knots, degrees. Ignored by simulation| ^units|e.g., knots, degrees. Ignored by simulation|
Line 60: Line 62:
 ^hardware : maptype |One of "linear, "rphtSimpleLEDIndicator", "same" - triggers type of translation| ^hardware : maptype |One of "linear, "rphtSimpleLEDIndicator", "same" - triggers type of translation|
 ^hardware : interpolationDatapoints|Numeric array of values to be sent to or received by the hardware device.| ^hardware : interpolationDatapoints|Numeric array of values to be sent to or received by the hardware device.|
-^hardware : type | One of "unsigned byte", "small unsigned int" (2 bytes) - the value to be sent to or received by the hardware device.|+^hardware : type | One of "unsigned byte", "small unsigned int" (2 bytes), "one byte bool" (a byte with value 0 or 1) , "float" - the value to be sent to or received by the hardware device.| 
 +^notes|Comments, ignored by simulation| 
 +^register|I2C register, currently not implemented, ignored by simulation| 
  
projects/a4sim/jsonfileformat.1578178736.txt.gz · Last modified: 2020/01/04 22:58 by dwheele