View Single Post
  #1   Spotlight this post!  
Unread 12-12-2016, 13:59
TigerHuang TigerHuang is offline
Registered User
FRC #1747
Team Role: Mentor
 
Join Date: Nov 2013
Rookie Year: 2013
Location: Indiana
Posts: 1
TigerHuang is an unknown quantity at this point
A Step based Javascript Simulator

Hi Chief Delphi,

I have been working on a simple system simulator and I think it's at a state where someone else might find it useful now.

It's a bit bare bones at the moment but I've found that having functions that can take the integral over time or plot graphs have made my actual simulation code much shorter and more understandable.

In this example, I've implemented a flywheel system that's being controlled by a PID loop with feed forward.



A live demonstration can be found here: http://tigerhuang.com/simulation
The source code can be found on github: http://github.com/tigerh/simulation
Reply With Quote