adjusted cpp sensor mode retrieval to @dlech's latest changes
added motor::set_position
fix motor port name in cpp demo program