mods to get motor control working and start of ping control