Commit 86ef6a41 authored by Alan Mitchell's avatar Alan Mitchell
Browse files

Renamed acceleration sensors to make more obvious.

parent 015476d7
......@@ -46,9 +46,9 @@ def decode(data: bytes) -> Dict[str, Any]:
return 1
def acc(i: int) -> int:
res['x'] = bin8dec(data[i + 1]) / 63.0 # converts to Gs
res['y'] = bin8dec(data[i + 2]) / 63.0
res['z'] = bin8dec(data[i + 3]) / 63.0
res['accel_x'] = bin8dec(data[i + 1]) / 63.0 # converts to Gs
res['accel_y'] = bin8dec(data[i + 2]) / 63.0
res['accel_z'] = bin8dec(data[i + 3]) / 63.0
return 3
def light(i: int) -> int:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment