A library used to control a switched reluctance machine using an arduino