Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
Reverse angular speeds to fix turning
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirlaud committed Apr 11, 2022
1 parent a6e17a7 commit 3bcdff8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ EXCLUDE_COLD_LIBRARIES:=
IS_LIBRARY:=1

LIBNAME:=ARMS
VERSION:=2.0.0
VERSION:=2.0.1
# EXCLUDE_SRC_FROM_LIB= $(SRCDIR)/unpublishedfile.c
# this line excludes opcontrol.c and similar files
EXCLUDE_SRC_FROM_LIB+=$(foreach file, $(SRCDIR)/main,$(foreach cext,$(CEXTS),$(file).$(cext)) $(foreach cxxext,$(CXXEXTS),$(file).$(cxxext)))
Expand Down
2 changes: 1 addition & 1 deletion src/ARMS/pid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ std::array<double, 2> angular() {
double sv = odom::getHeading();
double speed =
pid(angularTarget, sv, &pe, &in, angularKP, angularKI, angularKD);
return {speed, -speed}; // clockwise positive
return {-speed, speed}; // clockwise positive
}

void init(double linearKP, double linearKI, double linearKD, double angularKP,
Expand Down

0 comments on commit 3bcdff8

Please sign in to comment.