|
@@ -44,13 +44,13 @@
|
44
|
44
|
//===========================================================================
|
45
|
45
|
|
46
|
46
|
// Voltage reference on potentiometer on Green Pololus in millivolts
|
47
|
|
-#define Vref_mV 800
|
|
47
|
+#define Vref_mV 800UL
|
48
|
48
|
|
49
|
49
|
// Rsc value used on PCB of the Green Pololus
|
50
|
|
-#define Rsc_mOhms 100
|
|
50
|
+#define Rsc_mOhms 100UL
|
51
|
51
|
|
52
|
52
|
// Estimated maximum acceleration for X and Y axis
|
53
|
|
-#define MAX_XYAXIS_ACCEL (3 * (Vref_mV) * 100 / (Rsc_mOhms))
|
|
53
|
+#define MAX_XYAXIS_ACCEL (3UL * (Vref_mV) * 100UL / (Rsc_mOhms))
|
54
|
54
|
|
55
|
55
|
// Notes:
|
56
|
56
|
// If we could use 1.65A as motor current, then 3000 mm/s^2 as acceleration
|