You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That error means that the name you have for the device in your code does not match the one in your robot configuration. You appear to understand that, and are saying that they are the same... But it's possible you are not being fussy enough in your checking of the name.
The name in the configuration file must be EXACTLY the same as the one in the code.. so that means the they must both have exactly the same uPPer and LowER case letters, and there must be underscores and not dashes etc, and no extra spaces or other characters. It also means that the names must be assigned to DC Motors, and not servos or other devices. Please go back to your robot configuration... and tripple check. Note: you probably have to fix all 4 motors if there was a change in naming, so make sure you are not just checking only one of the motors.
.
Also... make sure you are checking the configuration that you are actually using. Sometimes there may be several configurations on a robot.
When we activate the test code from the drivers hub, it gives an error saying as follows:
java.lang.IllegalArgumentException: Unable to find a hardware device with name “left_front_drive” and type DcMotor.
I have tried changing the names of the wheels in the configuration to match the code, but it didn’t fix it.
please help (:
The text was updated successfully, but these errors were encountered: