From: drowe67 Date: Thu, 25 Jun 2009 23:12:17 +0000 (+0000) Subject: wispcarb sch X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=eecdd13dd8a2d425769ff2ffef98f4d68c2b5863;p=freetel-svn-tracking.git wispcarb sch git-svn-id: https://svn.code.sf.net/p/freetel/code@27 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/wispcar/Makefile b/wispcar/Makefile index a0c9fffe..8f419eb5 100644 --- a/wispcar/Makefile +++ b/wispcar/Makefile @@ -2,8 +2,8 @@ # Generates sch PDF # Derived from the BlackfinOne Makefile - thanks Ivan -SCH_FILES = wispcar -PROJECT = wispcar +SCH_FILES = wispcarb +PROJECT = wispcarb REV := $(shell svn info | grep Revision | sed 's/Revision: //') SCHPS = $(addsuffix .ps,$(SCH_FILES)) diff --git a/wispcar/batt_test.m b/wispcar/batt_test.m index 7d8d7610..8e1d008b 100644 --- a/wispcar/batt_test.m +++ b/wispcar/batt_test.m @@ -2,13 +2,33 @@ % David Rowe 23 June 2009 % Plot battery test results -function batt_test(f) +function batt_test(f,pngname) d = load(f); mins = d(:,1)*60 + d(:,2); mins = mins - mins(1); - plot(mins, 0.072*d(:,4) + 0.82,'*'); + s = sprintf(';%s;',f); + plot(mins, 0.072*d(:,4) + 0.82,s); xlabel('time (min)'); ylabel('V'); axis([0 60 11 13]) grid + + if (nargin == 2) + + % small image + + __gnuplot_set__ terminal png size 420,300 + s = sprintf("__gnuplot_set__ output \"%s.png\"", pngname); + eval(s) + replot; + + % larger image + + __gnuplot_set__ terminal png size 800,600 + s = sprintf("__gnuplot_set__ output \"%s_large.png\"", pngname); + eval(s) + replot; + + endif + endfunction diff --git a/wispcar/wispcarb_sch.pdf b/wispcar/wispcarb_sch.pdf new file mode 100644 index 00000000..825386f8 Binary files /dev/null and b/wispcar/wispcarb_sch.pdf differ