restructure files into directories by year and "Misc" to ease testing with current...
[fw/tmflights] / Misc / fall.5c
diff --git a/Misc/fall.5c b/Misc/fall.5c
new file mode 100644 (file)
index 0000000..5da2b92
--- /dev/null
@@ -0,0 +1,18 @@
+real accel = 0x3da8;
+real pres = 0x3d7c;
+real ground = 0x49cc;
+real step = 2.63;
+int time = 0x5c81;
+int time_step = 10;
+while (pres < ground) {
+       printf ("A %04x %04x %04x\n",
+               time, floor(accel), floor(pres + 0.5));
+       time += time_step;
+       pres += (step * time_step);
+}
+
+for (int i = 0; i < 4000 / time_step; i++) {
+       printf ("A %04x %04x %04x\n",
+               time, floor(accel), floor(pres + 0.5));
+       time += time_step;
+}