26
OSD3358-SM-RED Getting Started Guide
Rev. 1.0 9/7/2017
Octavo Systems LLC
Copyright 2017
5.1.1
Accessing peripherals using shell terminal
The RED peripheral library facilitates command line access to board features. Some of the
relevant commands, options and output formats to access on board sensor data are given
below.
1.
rc_calibrate_gyro
Function
: This command performs calibration of the gyro sensor in the IMU
Options
: None
Result
:
2.
rc_calibrate_mag
Function
: This command calibrates the magnetometer in the IMU
Options
: None
Result
:
root@beaglebone:~$ rc_calibrate_gyro
Starting calibration routine
gyro calibration file written
run rc_test_imu to check performance
root@beaglebone:~$ rc_calibrate_mag
This will sample the magnetometer for the next 15 seconds
Rotate the cape around in the air through as many orientations
as possible to collect sufficient data for calibration
Press ENTER to continue or anything else to quit
spin spin spin!!!
keep spinning
you're doing great
keep spinning
you're doing great
keep spinning
you're doing great
Okay Stop!
Calculating calibration constants.....
Offsets X: 71.924 Y: -1.718 Z: -24.156
Scales X: 1.956 Y: 0.929 Z: 2.485
magnetometer calibration file written
run rc_test_imu to check performance