new code copied from sensorboard copied to motorboard