MPU

From Calimacil
Jump to: navigation, search

Description

This command is used to record MPU values to set the learning machine. When the MPU is activated, a set of motion (Accelerometer & Gyroscope) logging information will be displayed on the terminal in order to be saved on the file and parsed to the learning machine, finally creating the motion file hit.mod.

Note: Since the terminal is reading the keyboard entry differently that what is displayed on screen, you can type commands while data is being shown. For example, if the logging text is displaying on screen, just type the MPU -stop command to stop everything.

Syntax

MPU usage: MPU -log [seconds] | MPU -stop

Parameters

-log [sec] Start and set the logging duration in seconds from the [sec]. Logging Data will be displayed on screen for capture by Tera Term log feature.
-stop Stop the logging information, whether the timer for logging is finished or not.

Examples

Start Logging

mpu -log 1000 Time: 0698sec: PID 3403, SrcID 8, MPU: <|139438,-0.379,0.009,0.950,-3.967,-1.404,-1.953|> Time: 0698sec: PID 3404, SrcID 8, MPU: <|139439,-0.377,0.010,0.950,-4.028,-1.343,-1.953|> Time: 0698sec: PID 3406, SrcID 8, MPU: <|139440,-0.377,0.007,0.945,-4.028,-1.343,-1.953|> Time: 0698sec: PID 3407, SrcID 8, MPU: <|139441,-0.377,0.007,0.941,-4.028,-1.343,-1.953|> Time: 0698sec: PID 3408, SrcID 8, MPU: <|139442,-0.378,0.006,0.940,-3.967,-1.282,-1.953|> Time: 0698sec: PID 3409, SrcID 8, MPU: <|139443,-0.386,0.007,0.952,-4.028,-1.282,-1.953|> Time: 0698sec: PID 340A, SrcID 8, MPU: <|139444,-0.387,0.005,0.961,-4.211,-1.526,-2.075|> Time: 0698sec: PID 340B, SrcID 8, MPU: <|139445,-0.384,0.006,0.955,-4.333,-1.831,-2.075|> Time: 0698sec: PID 340C, SrcID 8, MPU: <|139446,-0.379,0.005,0.943,-4.211,-1.648,-2.075|> Time: 0698sec: PID 340D, SrcID 8, MPU: <|139447,-0.379,0.004,0.942,-4.028,-1.709,-1.953|> Time: 0698sec: PID 340E, SrcID 8, MPU: <|139448,-0.385,0.007,0.960,-3.784,-1.831,-1.892|> Time: 0698sec: PID 340F, SrcID 8, MPU: <|139449,-0.385,0.007,0.959,-3.784,-1.770,-1.953|> Time: 0698sec: PID 3410, SrcID 8, MPU: <|139450,-0.376,0.006,0.946,-4.028,-1.831,-2.014|> Time: 0698sec: PID 3411, SrcID 8, MPU: <|139451,-0.374,0.008,0.942,-4.028,-1.709,-1.953|> Time: 0698sec: PID 3412, SrcID 8, MPU: <|139452,-0.377,0.006,0.949,-3.906,-1.526,-1.892|> Time: 0698sec: PID 3413, SrcID 8, MPU: <|139453,-0.376,0.005,0.946,-3.967,-1.404,-1.892|> Time: 0698sec: PID 3414, SrcID 8, MPU: <|139454,-0.377,0.006,0.943,-3.845,-1.099,-1.892|> Time: 0698sec: PID 3415, SrcID 8, MPU: <|139455,-0.380,0.004,0.945,-3.906,-0.916,-1.892|> Time: 0698sec: PID 3416, SrcID 8, MPU: <|139456,-0.379,0.006,0.945,-4.150,-0.916,-1.953|> ...