Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 208 → Rev 221

/branches/ligi_j2me/src/MKStatistics.java
27,7 → 27,7
 
 
 
private long last_run_ms=-1;
private long last_run_ms=0;
private long last_step=-1;
 
public void run()
37,10 → 37,11
if (mk.connected)
{
last_step=System.currentTimeMillis()-last_run_ms;
 
if (last_run_ms!=-1)
if (last_run_ms!=0)
{
last_step=System.currentTimeMillis()-last_run_ms;
 
if (mk.debug_data.motor_complete>0)
motor_sum+=mk.debug_data.motor_complete;
49,6 → 50,7
if (mk.debug_data.motor_complete==60)
motor_stand_time+=last_step;
}
last_run_ms=System.currentTimeMillis();
}