Skip to content

Stabilization of the inverted pendulum. An approximation with the Euler method

Notifications You must be signed in to change notification settings

mapellidario/inverted-pendulum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inverted pendulum stabilization

After having watched this amazing video about the stabilization of an inverted pendulum, I wanted to replicate the result using the Euler method to approximate the equation of motion of the pendulum. The coordinate system follows this scheme.

ACHTUNG! This has been written by past-me in 2014, do not judge! I know that it is full of italian and that the parameter setting is awful, I know.

Run and replicate the result

docker run \
  -v $PWD:/src \
  -v ~/temp/docker-root/:/root: \
  -e DISPLAY=$DISPLAY \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  --user (id -u):(id -g) \
  --rm -it \
  rootproject/root bash

g++ -o pend vect2d.cc bar.cc pend.cpp `root-config --cflags --glibs`
./pend

About

Stabilization of the inverted pendulum. An approximation with the Euler method

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages