Rawbots Wiki
Register
Advertisement
Accelerometer

v0.0.11 of accelerometer

Measures the acceleration of part_a along each of the 3 spatial axis, the pitch and roll angles and the acting gravity.

Video

Input/Output Description Data Type
>part_a Reference to the part part
>set_gyro Resets the yaw axis part
<gravity The effective gravity on this part decimal
<accel_side Projected acceleration on the x axis decimal
<accel_front Projected acceleration on the z axis decimal
<accel_up Projected acceleration on the y axis decimal
<pitch Angle on the x axis (jet-nose up/down) decimal
<roll Angle on the z axis (barrel-roll) decimal
<yaw Angle on the imaginary y axis (use >set_gyro to reset the axis) decimal
Advertisement