Skip to content

Commit

Permalink
working release
Browse files Browse the repository at this point in the history
  • Loading branch information
zigapk committed Aug 20, 2015
1 parent 18744b6 commit e5543fb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/com/sourcegasm/riftvision/sensors/JoyStickSensors.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.sourcegasm.riftvision.sensors;

import com.sourcegasm.riftvision.control.DroneController;
import com.sourcegasm.riftvision.control.ExpoController;
import com.sourcegasm.riftvision.control.MainController;

Expand Down Expand Up @@ -47,8 +46,8 @@ public void run() {
rawPitch = (float) (ExpoController.getJoyStickExpo(Integer.parseInt(mami_array[3].trim())));
rawRoll = (float) (ExpoController.getJoyStickExpo(Integer.parseInt(mami_array[2].trim())));
rawYaw = (float) (ExpoController.getJoyStickExpo((Integer.parseInt(mami_array[0].trim()))));
rawHeight = (float) ((Integer.parseInt(mami_array[1].trim()))) / -300.0f;
}
rawHeight = (float) ((Integer.parseInt(mami_array[1].trim()))) / -180.0;
}

}
} catch (Exception e) {
Expand All @@ -69,8 +68,8 @@ public void run() {

DatagramPacket packet = new DatagramPacket(new byte[1024], 1024);
dsocket.receive(packet);
System.out.println(new String(packet.getData()));

//System.out.println(new String(packet.getData()));


String[] mami_array = new String(packet.getData())
Expand Down

0 comments on commit e5543fb

Please sign in to comment.