HNHacker News
TopNewBestAskShowJobs

rzilleruelo

9 karma · joined October 2, 2017

submissionscomments
rzilleruelo··on SpaceX Dragon ISS Docking Autopilot PID Controller in JavaScript
SpaceX Dragon ISS Docking Simulator Autopilot PID Controller in JavaScript
rzilleruelo··on SpaceX Dragon ISS Docking Autopilot PID Controller in JavaScript
It was not intentional to be misleading. Though I agree with your comment, the title should be something like "". I tried to change it but it's seems is not longer possible. I'm sorry about that.
rzilleruelo··on SpaceX Dragon ISS Docking Autopilot PID Controller in JavaScript
thank you for providing very clear steps.
rzilleruelo··on SpaceX Dragon ISS Docking Autopilot PID Controller in JavaScript
Steps to run the controller:

1. Open the SpaceX simulator: https://iss-sim.spacex.com/.

2. Open the browser javascript console. Example for Google Chrome https://developer.chrome.com/docs/devtools/console/javascrip....

3. Past the code in the gist: https://gist.github.com/rzilleruelo/f44252e77036403af4c6a3e8...

4. Paste this code to start the controller:

  let regimeController = startRegimeController(config);
  let controller = startControl(config);
5. Optionally, you can change the target values to make the controller set the capsule in a different state. For example:

  config.x.target = 0.0;
  config.z.target = 10.0;
  config.pitch.target = -45.0;
rzilleruelo··on SpaceX Dragon ISS Docking Autopilot PID Controller in JavaScript
Yes no problem. Open the SpaceX simulator. https://iss-sim.spacex.com/

Then open the console and paste the code in the gist. https://gist.github.com/rzilleruelo/f44252e77036403af4c6a3e8...

Then just paste this code to start the controller. let regimeController = startRegimeController(config); let controller = startControl(config);

Also you can change the config on the fly to change the target value, so you can make it do something else if you want.

For example: config.x.target = 0.0; config.z.target = 10.0; config.pitch.target = -45.0;

rzilleruelo··on SpaceX Dragon ISS Docking Autopilot PID Controller in JavaScript
"terrible" depends of what you are trying to do. In this case I would said is good enough to make it work.