Skip to content
This repository was archived by the owner on Apr 9, 2026. It is now read-only.

Commit f262cc2

Browse files
committed
get rid of normalization on longDisp and latDisp
1 parent 2fa4618 commit f262cc2

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

MicrocontrollerCode/src/JoystickFunctions.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ RefDisplacement joystickToDisplacement(Adafruit_ADS1115 &adc){
2626
*/
2727

2828
//Converting the speeds so they start around 0 and then go positive and negative
29-
displacements.longDisp = forwardJoystick - (8500+4400); //The second value is used to zero it out when the ADC gain is set to 0 instead of the default (2/3)
30-
displacements.latDisp = sidewaysJoystick - (8400+4400);
29+
// displacements.longDisp = forwardJoystick - (8500+4400); //The second value is used to zero it out when the ADC gain is set to 0 instead of the default (2/3)
30+
// displacements.latDisp = sidewaysJoystick - (8400+4400);
31+
32+
displacements.longDisp = forwardJoystick;
33+
displacements.latDisp = sidewaysJoystick;
3134
return displacements;
3235
}
3336

0 commit comments

Comments
 (0)