Digital sim­ulation of a high-dynamics brushless motor drive for robotic ap­plications