Skip to content

Commit

Permalink
Fixed compilation error by reverting old change that wasn't cleanly
Browse files Browse the repository at this point in the history
taken out, changed reset_position in cpp to reflect the reset position
in C.
  • Loading branch information
WillXuCodes committed Oct 19, 2020
1 parent 20c6651 commit 4b1b91d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devices/vdml_rotation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ std::int32_t Rotation::set_position(std::uint32_t position) {
}

std::int32_t Rotation::reset_position(void) {
return pros::c::rotation_set_position(_port, 0);
return pros::c::rotation_reset_position();
}

std::int32_t Rotation::get_position(void) {
return pros::c::rotation_get_angle_cpp(_port);
return pros::c::rotation_get_angle(_port);
}

std::int32_t Rotation::get_velocity(void) {
Expand Down

0 comments on commit 4b1b91d

Please sign in to comment.