diff options
Diffstat (limited to 'micropeak/MicroData.java')
| -rw-r--r-- | micropeak/MicroData.java | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/micropeak/MicroData.java b/micropeak/MicroData.java index 836d3c35..fdfb2dc4 100644 --- a/micropeak/MicroData.java +++ b/micropeak/MicroData.java @@ -263,6 +263,15 @@ public class MicroData {  		f.write('\n');  	} +	public void export (Writer f) throws IOException { +		PrintWriter	pw = new PrintWriter(f); +		pw.printf("  Time, Press, Height,  Speed,  Accel\n"); +		for (MicroDataPoint point : points()) { +			pw.printf("%6.3f,%6.0f,%7.1f,%7.2f,%7.2f\n", +				  point.time, point.pressure, point.height, point.speed, point.accel); +		} +	} +  	public void set_name(String name) {  		this.name = name;  	} | 
