Changes

Bullroarers

103 bytes added, 15:56, 10 September 2014
Sending
Each node can send 4 messages:
*''/br/1/range'', integer (0-1024)
**Current analog sensor reading from ultrasonic rangefinder from between 0-1024. 0 would be a minimum in close to the sensor, 1024 would be a max distance away from the sensor.
**Sent every 200 ms (so 5 Hz refresh rate).
*''/br/1/limit'', integer (0 or 1)
*''/br/1/config'', integer, integer, integer.
**Sent when requested.
**First value is auto mode, (0 for "off", 1 for "on"). **Second value is max range, (0 - 1024). This is a threshold value for the lower limit of bullroarer travel. When in auto mode, a sensor reading larger than this value will trigger the relay to turn the motor back on and raise the bullroarer. **Third value is cycle timeout, (0 - max long int). Sets the amount of time the bullroarer waits at bottom before starting motor, the "rest time". Only works when in auto mode.
==Receiving==