//restore all values public bool reset() { if (track_counter == 0) { return(true); } total_rotation = 0; track_counter = 0; ready_flag = false; rg.flush(); return(true); }