The IsMotorIdle function checks if the specified motor (“A”,“B”,“C”) is currently powered. This can be useful in order to check if a previously sent motor command has completed.
idle = nxt.IsMotorIdle( motor );
idle = nxt.IsMotorIdle( "A" );