Import Daisy7 data on Matlab

First of all you need to connect the Daisy7 (accelerometer and gyroscope) at the FoxG20 and use the software GCS to save the inertial data with the REC command. How to use the daisy 7 refer to the appropriate tutorial.

The rec command produces a file called rec.list, open it with a text editor and cancelalte the first line that defines the variable names.


Treplace all the commas (,) under the symbol point (.)


drag and drop the file into matlab as amended, I will open automatically the import tool.



continue with the import, and then click finish. Has to import 24 column respectively:

1-velocity [m/sec];
2-variometer;
3-latitudine;
4-longitudine;
5-rollangle [deg];
6-pitchangle[deg];
7-yawangle[deg];
8-altitudine[m];
9-Acc_x[g];
10-Acc_y[g];
11-Acc_z[g];
12-gyro_x[deg/sec];
13-gyro_y[deg/sec];
14-gyro_z[deg/sec];
15-mag_x[mgauss];
16-mag_y[mgauss];
17-mag_z[mgauss];
18-stato_motor_1;
19-stato_motor_2;
20-stato_motor_3;
21-stato_motor_4;
22-stato_motor_5;
23-time[s];
24-v_batt[v]

Images of roll ploted:


Images of pitch ploted:


Images of yaw ploted:


Structures

Xenomai on FoxG20

Read more