Re:Show HN: SpaceX Dragon simulator docking autopilot in Clo...
by zlsa on Thursday May 21, 2020 @11:26AM
(#23259535)
I wrote an autopilot[0] for the simulator in JS, which sends key events to the game.
[0]: https://gist.github.com/ForestKatsch/01069f29e8316df11774025...
Re:Show HN: SpaceX Dragon simulator docking autopilot in Clo...
by jcims on Thursday May 21, 2020 @02:42PM
(#23262975)
This is awesome! As a recent student of PIDs, it's even better after uncommenting the createPidDisplay statement on line 566 :)
Only feature request is a 'Do a Barrel Roll!' button.
Re:Show HN: SpaceX Dragon simulator docking autopilot in Clo...
by GistNoesis on Thursday May 21, 2020 @11:22AM
(#23259486)
It's cheating but not as much. It's setting the "motion vector" aka setting the speed at current instant. It's just skipping the controls which are normally setting the "motion vector". For the orientation it's totally cheating though using camera.lookat(target).
I would like to see a real autopilot written in javascript that you can paste into the console.