MATLAB code

From Bike Wiki
Revision as of 18:20, 14 September 2019 by Daniel (talk | contribs) (+)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How to make a cool animation of the bike

  1. Clone https://github.com/CornellAutonomousBikeTeam/Matlab-Optimization, and open the folder in MATLAB
  2. Open runBicycleTest.m
  3. In the command window, run something like runBicycleTest(0,0,3,0,pi/6,0,0,[23,16,-2], 0,100,1). The penultimate parameter is the number of steps - that is, the bigger this is, the longer the simulation will run for. All the other parameters are basically documented in the variable names.