624
edits
Line 75: | Line 75: | ||
#!/usr/bin/perl -w | #!/usr/bin/perl -w | ||
# prints: "input reference P I D output" | # prints: "input reference P I D output" | ||
print "Input Ref P I D Output\n"; | |||
while (<STDIN>) { | while (<STDIN>) { | ||
if ($_ =~ /input\s=\s(-*\d+.*)\sref\s=\s(-*\d+.*)/) { | if ($_ =~ /input\s=\s(-*\d+.*)\sref\s=\s(-*\d+.*)/) { | ||
Line 90: | Line 90: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
alexis@linear:~/fgfs$ /usr/local/bin/fgfs 2>&1 | ./PIDcontroller_parser.pl > | alexis@linear:~/fgfs$ /usr/local/bin/fgfs 2>&1 | ./PIDcontroller_parser.pl > /tmp/pid-debug.dat | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 96: | Line 96: | ||
* [http://kst.kde.org/ Kst, real-time large-dataset viewing and plotting tool] | * [http://kst.kde.org/ Kst, real-time large-dataset viewing and plotting tool] | ||
Wait for the data to arrive, then: | |||
<syntaxhighlight lang="bash"> | |||
alexis@linear:~/fgfs$ kst2 --xlabel time -A -y1 -y2 -y3 -y4 -y5 -y6 -- /tmp/pid-debug.dat | |||
</syntaxhighlight> | |||
=== Getting graphs of controller action (Windows) === | === Getting graphs of controller action (Windows) === |
edits