Skip to content

Commit

Permalink
Refractored Motor_Group constructor with new functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
R11G committed Oct 12, 2022
1 parent 5bfc575 commit 084fde2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/devices/vdml_motors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,7 @@ Motor_Group::Motor_Group(const std::initializer_list<Motor> motors)
Motor_Group::Motor_Group(const std::vector<std::int8_t> motor_ports)
: _motor_group_mutex(pros::Mutex()), _motor_count(motor_ports.size()) {
for (std::uint8_t i = 0; i < _motor_count; ++i) {
_motors.push_back(Motor(std::abs(motor_ports[i]), (motor_ports[i] < 0)));
// std::cout << "Motor " << motor_ports[i] << "Reversed: " << (bool)(motor_ports[i] < 0) << std::endl;
_motors.push_back(Motor(motor_ports[i]));
}
}

Expand Down

0 comments on commit 084fde2

Please sign in to comment.