Acc

acc.context

Gets current context.


acc.dump

Dumps raw XYZ readings to screen or file.

OPTIONAL ARGUMENTS

  • duration (int): How many seconds to record data? Default value is 1.
  • file (str): Write data to a file with the given name.
  • range (int): Maximum number of g-forces being measured. Default value is 8.
  • rate (float): How many Hz (samples per second)? Default value is 50.
  • decimals (int): How many decimals to calculate? Default value is 4.
  • timestamp (bool): Add timestamp to each sample? Default value is True.
  • sound (bool): Play sound when starting and stopping recording? Default value is True.
  • interrupt_driven (bool): Await hardware data ready signal before reading a sample? Default value is False.

acc.help

Shows this help information.


acc.manage

EXAMPLE acc.manage worker list *


acc.query

Queries a given accelerometer command.

For additional help run: acc.query help

EXAMPLES

  • acc.query status
  • acc.query xyz
  • acc.query active value=False
  • acc.query range value=4
  • acc.query data_rate value=12.5
  • acc.query offset x=0.1 y=-0.1 z=0