git.haldean.org droidcopter / e1aabc0
Remove debug, reassign host Benjamin Bardin 8 years ago
3 changed file(s) with 7 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
230230 Thread.currentThread().setName("ChopperStatusImpl");
231231 File root = Environment.getExternalStorageDirectory();
232232 if (root == null) Log.e(TAG, "No root directory found");
233 try {
233 /*try {
234234 logwriter = new BufferedWriter(new FileWriter(root + "/chopper/" + logfilename, false));
235235 } catch (IOException e) {
236236 Log.e(TAG, "No ChopperStatusImpl logfile");
237237 e.printStackTrace();
238 }
238 }*/
239239 /* Register to receive battery status updates */
240240 BroadcastReceiver batteryInfo = new BroadcastReceiver() {
241241 public void onReceive(Context context, Intent intent) {
430430 setReadingField(ROLL, orientation[2] * -180.0 / Math.PI);
431431 break;
432432 case Sensor.TYPE_ROTATION_VECTOR:
433 Log.v(TAG, "my grav time: " + ((time - grav_time)/1000000));
433 //Log.v(TAG, "my grav time: " + ((time - grav_time)/1000000));
434434 grav_time = time;
435435 String timestring = Long.toString(time/1000000);
436436 try {
4646 public final static int CONNECTION_INTERVAL = 5000;
4747
4848 /** URL of the control server */
49 private final String mControl = new String("droidcopter.cs.columbia.edu");
49 //private final String mControl = new String("droidcopter.cs.columbia.edu");
50 private final String mControl = new String("192.168.168.65");
5051
5152 /** Port used for text connection */
5253 private final int mTextOutPort = 7000;
8383 check
8484 elif [ 'nobuild' == "$1" ]; then
8585 if [ '' == "$2" ]; then
86 export HOST=droidcopter.cs.columbia.edu
86 # export HOST=droidcopter.cs.columbia.edu
87 export HOST=192.168.168.65
8788 else
8889 export HOST=$2
8990 fi