replaced mode display by std::map to prevent segfaults when motor is in unknown state