Skip to content

Commit

Permalink
Fixed steerLT zero mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
pavly-gerges committed Jan 9, 2021
1 parent 897845a commit a8c362c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/JoystickModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ public void startCollectingChannelsData(){
steerRTListener.steerRT((float) (valueX/100f));
}
if(valueX<(neutralizeState-tolerance)){
if(valueX<=0){
valueX=100f;
}
steerLTListener.steerLT((float)valueX/50f);
}
if((valueY>(neutralizeState-tolerance) && valueY<(neutralizeState+tolerance))
Expand Down

0 comments on commit a8c362c

Please sign in to comment.