Accessor: PressureSensor

PressureSensor

A dummy accessor for a pressure sensor that outputs a range of pressures varying from a low of 100 kPa (kilopascals, roughly the air pressure at sea level) up to 1000 kPa in steps that default to 10 kPa every second. The control input can be used to vary the step size. The output is a JSON object with the following properties:

  • name: "Pressure sensor"
  • units: "kPa"v
  • pressure: a number.
Version:
  • $$Id$$
Author:
  • Edward A. Lee (eal@eecs.berkeley.edu)
Source:
Inputs:
Name Type Description
control A JSON object that is expected to have one property, "step", a number.
Outputs:
Name Type Description
data A JSON object.