loom
1import "diff/Flight.diff" type FlightOde;
2
3FlightOde fo1 =
4{
5g : 9.8,
6
7x : -5000, Vx : 100,
8y : 0, Vy : 0,
9z : 0, Vz : 0,
10
11Knx : 0.02, Kdh : 0.04, Kny : 0.1, Knz : 0.0005,
12
13Vc : 300, Hz : 1000, Xz : 1000, Zz : -2000,
14};
15
16//graph3d.init("БЛА");
17//graph3d.addSeries("1", graph3d.Mesh.Sphere);
18
19chart.init("БЛА");
20
21void onShow()
22{
23// graph3d.addPoint("1", fo1.x, fo1.y, fo1.z);
24chart.addPoint("1", fo1.x, fo1.z);
25// chart.show();
26}
27
28scene.setIterationCallback(onShow, 10);
29scene.setT(0);
30scene.setTk(100);
31scene.setDt(0.1);
32scene.setRealtimeModeEnabled(false);
33
34scene.add(fo1);
35
36scene.start();
37