James Kuszmaul | 998d303 | 2018-09-08 15:41:41 -0700 | [diff] [blame^] | 1 | #!/usr/bin/gnuplot |
| 2 | |
| 3 | plot '/tmp/50' using 1:($2 / 10.0) title 'current0' lc 1 lt 'dashed' with lines, \ |
| 4 | '/tmp/50' using 1:($3 / 10.0) title 'current1' lc 2 lt 'dashed' with lines, \ |
| 5 | '/tmp/50' using 1:($4 / 10.0) title 'current2' lc 3 lt 'dashed' with lines, \ |
| 6 | '/tmp/50' using 1:(($5 * 0.666 - $6 * 0.333 - $7 * 0.333) / 10.0) title 'duty0' lc 1 lt 2, \ |
| 7 | '/tmp/50' using 1:((-$5 * 0.333 + $6 * 0.666 - $7 * 0.333) / 10.0) title 'duty1' lc 2 lt 2, \ |
| 8 | '/tmp/50' using 1:((-$5 * 0.333 - $6 * 0.333 + $7 * 0.666) / 10.0) title 'duty2' lc 3 lt 2, \ |
| 9 | '/tmp/50' using 1:($8 / 2048.0 * 10.0 * 6.28) title 'angle', \ |
| 10 | '/tmp/50' using 1:($9 / 1000.0 * 10.0) title 'velocity', \ |
| 11 | '/tmp/50' using 1:($10 / 10.0) title 'goal_current0' lc 1 with lines, \ |
| 12 | '/tmp/50' using 1:($11 / 10.0) title 'goal_current1' lc 2 with lines, \ |
| 13 | '/tmp/50' using 1:($12 / 10.0) title 'goal_current2' lc 3 with lines |
| 14 | |
| 15 | #'/tmp/50' using 1:($5 / 3000.0 * 100.0) title 'duty0' lc 1 lt 2, \ |
| 16 | #'/tmp/50' using 1:($6 / 3000.0 * 100.0) title 'duty1' lc 2 lt 2, \ |
| 17 | #'/tmp/50' using 1:($7 / 3000.0 * 100.0) title 'duty2' lc 3 lt 2, \ |
| 18 | |
| 19 | pause -1 |