Pomax / are-we-flying

Writing auto-pilots in JavaScript for MSFS
39 stars 2 forks source link

Experiment with worker thread and PID #61

Open Pomax opened 4 months ago

Pomax commented 4 months ago

If we can run a PID controller in a worker thread, we might be able to run at "Every frame" by getting simconnect to notify us every SIMCONNECT_PERIOD_SIM_FRAME for a small set of values.

This needs benchmarking.

Pomax commented 4 months ago

We can try doing this for ALT first: control using stick.

Sample per frame:

Pomax commented 2 months ago

rather than worker and thread, we could also just make this a separate socketless server running in its own process, that the main server talks to as a client.