Skip to content

Commit

Permalink
Fix int conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
thias15 committed Sep 14, 2020
1 parent 5198682 commit dcbe88f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/app/src/main/java/org/openbot/CameraActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -834,8 +834,8 @@ protected void sendInferenceTimeToSensorService(long frameNumber, long inference
protected void sendControlToSensorService(ControlSignal vehicleControl) {
if (mSensorMessenger != null){
Message msg = Message.obtain();
msg.arg1 = (int) vehicleControl.getLeft() * speedMultiplier;
msg.arg2 = (int) vehicleControl.getRight() * speedMultiplier;
msg.arg1 = (int) (vehicleControl.getLeft() * speedMultiplier);
msg.arg2 = (int) (vehicleControl.getRight() * speedMultiplier);
msg.what = SensorService.MSG_CONTROL;
try {
mSensorMessenger.send(msg);
Expand Down

0 comments on commit dcbe88f

Please sign in to comment.