Skip to content
Snippets Groups Projects
Commit 9d302240 authored by Pier Francesco A. Bachini's avatar Pier Francesco A. Bachini
Browse files

[Sens] Fix to sensor plots

parent 8a888acc
No related branches found
No related tags found
1 merge request!55Second IMU
...@@ -24,7 +24,7 @@ xlabel("Time [s]"), ylabel("$a_Z$ [g]") ...@@ -24,7 +24,7 @@ xlabel("Time [s]"), ylabel("$a_Z$ [g]")
drawnow drawnow
%% Second accelerometer if present %% Second accelerometer if present
if settings.second_imu if isfield(settings, 'second_imu') && settings.second_imu
figure('Name', "Second accelerometer measurements") figure('Name', "Second accelerometer measurements")
subplot(3,1,1) subplot(3,1,1)
plot(simOutput.sensors.imu_1.time, simOutput.sensors.imu_1.accelerometer_measures(:,1)./9.81); plot(simOutput.sensors.imu_1.time, simOutput.sensors.imu_1.accelerometer_measures(:,1)./9.81);
...@@ -73,7 +73,7 @@ drawnow ...@@ -73,7 +73,7 @@ drawnow
%% Second gyroscope if present %% Second gyroscope if present
if settings.second_imu if isfield(settings, 'second_imu') && settings.second_imu
figure('Name', "Second gyroscope measurements") figure('Name', "Second gyroscope measurements")
subplot(3,1,1) subplot(3,1,1)
plot(simOutput.sensors.imu_1.time, simOutput.sensors.imu_1.gyro_measures(:,1)); plot(simOutput.sensors.imu_1.time, simOutput.sensors.imu_1.gyro_measures(:,1));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment