Project

General

Profile

Revision 638

Added by Greg Tress about 16 years ago

New robot movement works. Battery meters work with new timing scheme. Still have some repainting issues.

View differences:

BatteryIcon.java
94 94
	*/
95 95
	public int convert (int x) {
96 96
	    final int DEAD = 110;
97
	    final int FULL = 160;
97
	    final int FULL = 170;
98 98
	    if (x < DEAD)
99 99
	        return 1;
100
		return (int) ((x+DEAD) * 100.0 / (FULL-DEAD));
100
		return (int) ((x-DEAD) * 100 / (FULL-DEAD));
101 101
	}
102 102
}

Also available in: Unified diff