Acc Manager
Enrichers
roll_pitch
Calculates roll and pitch for a XYZ reading and appends it to the result. This enricher supports both single value results as well as multiple values results.
Filters
alternating_readout
Filter that only returns alternating/changed results.
Handlers
connection
Manages current connection.
OPTIONAL ARGUMENTS
close
(bool): Close MMA8X5X connection? Default value isFalse
.
context
Gets current context.
dump
Dumps raw XYZ readings to screen or file.
OPTIONAL ARGUMENTS
duration
(int): How many seconds to record data? Default value is1
.file
(str): Write data to a file with the given name.range
(int): Maximum number of g-forces being measured. Default value is8
.rate
(float): How many Hz (samples per second)? Default value is50
.decimals
(int): How many decimals to calculate? Default value is4
.timestamp
(bool): Add timestamp to each sample? Default value isTrue
.sound
(bool): Play sound when starting and stopping recording? Default value isTrue
.interrupt_driven
(bool): Await hardware data ready signal before reading a sample? Default value isTrue
.
query
Queries a given accelerometer command.
ARGUMENTS
cmd
(str): The command to query.