ir integrated with motor code
motor motion validated via plot