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