User Tools

Site Tools


eeros_architecture:hal:scaling_multi

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
eeros_architecture:hal:scaling_multi [2019/02/24 14:43] – [Input for Axis Position] grafeeros_architecture:hal:scaling_multi [2021/05/20 07:37] (current) – [Output to Control a Motor] ursgraf
Line 34: Line 34:
 </code> </code>
 The HAL will calculate the scale and range of the whole chain considering the single stages. The range of the whole chain will be determined by the most restricting range of the single stages. The unit is determined by the unit of the last stage. The HAL will calculate the scale and range of the whole chain considering the single stages. The range of the whole chain will be determined by the most restricting range of the single stages. The unit is determined by the unit of the last stage.
 +
 +==== Inverting the Signal ====
 +If the output signal needs opposite sign, e.g. a motor turns in the wrong direction, you can simply add an inverting stage
 +<code>
 +  "channel0": {
 +    "signalId": "dacOut",
 +    "scale": [ { "id" : "dac",
 +                 "minIn":    1000, "maxIn":  64000,
 +                 "minOut": -9.787, "maxOut": 9.923 },
 +               { "id" : "inv",
 +                 "minIn":   -1.0, "maxIn":  1.0,
 +                 "minOut":  1.0, "maxOut": -1.0 } ],
 +    "range": [ { "id" : "dac",
 +                 "minIn":       0, "maxIn":  65536,
 +                 "minOut":  -10.0, "maxOut":  10.0 },
 +                 { "id" : "amp",
 +                 "minIn":   -10.0, "maxIn":  10.0,
 +                 "minOut":  10.0, "maxOut": -10.0 } ],
 +    "unit": "V"
 +  }
 +</code>
  
 ===== Input for Axis Position ===== ===== Input for Axis Position =====
eeros_architecture/hal/scaling_multi.1551015808.txt.gz · Last modified: 2019/02/24 14:43 by graf