aboutsummaryrefslogtreecommitdiff
path: root/ROMFS
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-10-25 18:53:03 +0200
committerLorenz Meier <lm@inf.ethz.ch>2012-10-25 18:53:03 +0200
commit5f016884901f92f2c14d23ee0b15b513e9154c9a (patch)
tree243df6651012c6f9aeaa7434e9a816b3f024005f /ROMFS
parentc71f2ea20482a9483e4c068c858cfe8e19f1c11c (diff)
downloadpx4-firmware-5f016884901f92f2c14d23ee0b15b513e9154c9a.tar.gz
px4-firmware-5f016884901f92f2c14d23ee0b15b513e9154c9a.tar.bz2
px4-firmware-5f016884901f92f2c14d23ee0b15b513e9154c9a.zip
Fixed automatic log conversion / plotting script
Diffstat (limited to 'ROMFS')
-rw-r--r--ROMFS/logging/logconv.m16
1 files changed, 14 insertions, 2 deletions
diff --git a/ROMFS/logging/logconv.m b/ROMFS/logging/logconv.m
index 81fcc1d7e..579a582d3 100644
--- a/ROMFS/logging/logconv.m
+++ b/ROMFS/logging/logconv.m
@@ -1,5 +1,5 @@
clear all
-clc
+close all
%%%%%%%%%%%%%%%%%%%%%%%
% SYSTEM VECTOR
@@ -51,9 +51,21 @@ if exist('sysvector.bin', 'file')
gps = sysvector(:,33:35);
gps(~any(gps,2), :) = [];
- plot3(gps(:,1), gps(:,2), gps(:,3));
+ all_data = figure('Name', 'GPS RAW');
+ gps_position = plot3(gps(:,1), gps(:,2), gps(:,3));
+
+ all_data = figure('Name', 'Complete Log Data (exc. GPS)');
plot(sysvector(:,1), sysvector(:,2:32));
+
+ actuator_inputs = figure('Name', 'Attitude controller outputs');
+ plot(sysvector(:,1), sysvector(:,14:17));
+ legend('roll motor setpoint', 'pitch motor setpoint', 'yaw motor setpoint', 'throttle motor setpoint');
+
+ actuator_outputs = figure('Name', 'Actuator outputs');
+ plot(sysvector(:,1), sysvector(:,18:25));
+ legend('actuator 0', 'actuator 1', 'actuator 2', 'actuator 3', 'actuator 4', 'actuator 5', 'actuator 6', 'actuator 7');
+
end
if exist('actuator_outputs0.bin', 'file')