Remove debug, reassign host
Benjamin Bardin
9 years ago
230 | 230 |
Thread.currentThread().setName("ChopperStatusImpl");
|
231 | 231 |
File root = Environment.getExternalStorageDirectory();
|
232 | 232 |
if (root == null) Log.e(TAG, "No root directory found");
|
233 | |
try {
|
|
233 |
/*try {
|
234 | 234 |
logwriter = new BufferedWriter(new FileWriter(root + "/chopper/" + logfilename, false));
|
235 | 235 |
} catch (IOException e) {
|
236 | 236 |
Log.e(TAG, "No ChopperStatusImpl logfile");
|
237 | 237 |
e.printStackTrace();
|
238 | |
}
|
|
238 |
}*/
|
239 | 239 |
/* Register to receive battery status updates */
|
240 | 240 |
BroadcastReceiver batteryInfo = new BroadcastReceiver() {
|
241 | 241 |
public void onReceive(Context context, Intent intent) {
|
|
430 | 430 |
setReadingField(ROLL, orientation[2] * -180.0 / Math.PI);
|
431 | 431 |
break;
|
432 | 432 |
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));
|
434 | 434 |
grav_time = time;
|
435 | 435 |
String timestring = Long.toString(time/1000000);
|
436 | 436 |
try {
|
46 | 46 |
public final static int CONNECTION_INTERVAL = 5000;
|
47 | 47 |
|
48 | 48 |
/** 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");
|
50 | 51 |
|
51 | 52 |
/** Port used for text connection */
|
52 | 53 |
private final int mTextOutPort = 7000;
|
83 | 83 |
check
|
84 | 84 |
elif [ 'nobuild' == "$1" ]; then
|
85 | 85 |
if [ '' == "$2" ]; then
|
86 | |
export HOST=droidcopter.cs.columbia.edu
|
|
86 |
# export HOST=droidcopter.cs.columbia.edu
|
|
87 |
export HOST=192.168.168.65
|
87 | 88 |
else
|
88 | 89 |
export HOST=$2
|
89 | 90 |
fi
|