Airfest 2013: Bdale's new airframe on Loki M with TMv1 and Tmega
[fw/tmflights] / fall.5c
1 real accel = 0x3da8;
2 real pres = 0x3d7c;
3 real ground = 0x49cc;
4 real step = 2.63;
5 int time = 0x5c81;
6 int time_step = 10;
7 while (pres < ground) {
8         printf ("A %04x %04x %04x\n",
9                 time, floor(accel), floor(pres + 0.5));
10         time += time_step;
11         pres += (step * time_step);
12 }
13
14 for (int i = 0; i < 4000 / time_step; i++) {
15         printf ("A %04x %04x %04x\n",
16                 time, floor(accel), floor(pres + 0.5));
17         time += time_step;
18 }