Skip to content

Latest commit

 

History

History
77 lines (71 loc) · 1.99 KB

HiTechnic-NXT-Acceleration---Tilt-Sensor-(NAC1040).md

File metadata and controls

77 lines (71 loc) · 1.99 KB

General

This sensor uses the [[msensor|Using the Mindstorms Sensor Device Class]] device class.

Value
type_id 58
# Modes 2
Connection I2C/M
Vendor ID HITECHNC
Product ID Accel.

Modes

Mode 0 Mode 1
mode HT-ACCL HT-ACCL-ALL
Description Single axis acceleration Three axis acceleration
num_values 1 6
value0 Acceleration (coarse value1) X-axis acceleration (most significant byte)
 Min ??? ???
 Max ??? ???
value1 Y-axis acceleration (most significant byte)
value2 Z-axis acceleration (most significant byte)
value3 X-axis acceleration (least significant byte2)
value4 Y-axis acceleration (least significant byte2)
value5 Z-axis acceleration (least significant byte2)
units none none
dp (decimal places) 0 0
Values in the tables that look like ```this``` are the names of sysfs attributes or values returned by said attributes.

[1]: Value is 8-bit out of 10-bit total resolution.

[2]: Only the 2 most significant bits are used. Actual value is MSB << 2 + LSB >> 6 or MSB << 2 + LSB & 0x03 (can someone confirm which one?).