-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
This outputs 2147483647
To Reproduce
Steps to reproduce the behavior:
The example project uses motor = 127 instead of motor.move(), so with that this is the example code.
void opcontrol() {
pros::MotorGroup mg({1, 3});
pros::Controller master(E_CONTROLLER_MASTER);
while (true) {
mg.move(master.get_analog(E_CONTROLLER_ANALOG_LEFT_Y));
// Print the motor direction for the motor at index 1. (port 3)
std::cout << "Motor Direction: " << mg.get_direction();
pros::delay(2);
}
}Expected behavior
Because the motor isn't reversed, I should see 1.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS, Windows, Linux]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working