[sim] moving the old ocaml simulator to NPS (#3167)

- the exact same basic model is now a NPS FDM
- sim target still woks, it is just an alias to NPS with the proper FDM
- the old ocaml files are removed
- AHRS and INS are bypassed, since the accelerations are not well calculated by the model
This commit is contained in:
Gautier Hattenberger
2023-11-07 10:21:12 +01:00
committed by GitHub
parent dfb08fa733
commit 41451d5422
52 changed files with 376 additions and 2304 deletions
+6 -14
View File
@@ -131,20 +131,12 @@ class SessionWidget(QWidget, Ui_Session):
# simulator is "sim"
simulator = "sim"
if simulator == "nps":
t = self.tools["Simulator"]
simu = Program.from_tool(t)
simu.args.append(Arg("-t", "nps"))
self.launch_program(simu)
datalink = Program.from_tool(self.tools["Data Link"])
datalink.args = [Arg("-udp", None), Arg("-udp_broadcast", None)]
self.launch_program(datalink)
else:
# simulator is "sim"
sim = Program.from_tool(self.tools["Simulator"])
sim.args.extend([Arg("-t", "sim"), Arg("--boot", None), Arg("--norc", None)])
self.launch_program(sim)
sim = Program.from_tool(self.tools["Simulator"])
sim.args.append(Arg("-t", simulator))
self.launch_program(sim)
datalink = Program.from_tool(self.tools["Data Link"])
datalink.args = [Arg("-udp", None), Arg("-udp_broadcast", None)]
self.launch_program(datalink)
server = Program.from_tool(self.tools["Server"])
server.args.append(Arg("-n", None))
gcs = Program.from_tool(self.tools["PprzGCS"])