Fixed some warnings on the MakerParts configuration, when compiling using the AVR toolchain (integer overflow on the preprocessor calculations)
This commit is contained in:
parent
b6f9c333d4
commit
7447979110
@ -44,13 +44,13 @@
|
|||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
// Voltage reference on potentiometer on Green Pololus in millivolts
|
// Voltage reference on potentiometer on Green Pololus in millivolts
|
||||||
#define Vref_mV 800
|
#define Vref_mV 800UL
|
||||||
|
|
||||||
// Rsc value used on PCB of the Green Pololus
|
// Rsc value used on PCB of the Green Pololus
|
||||||
#define Rsc_mOhms 100
|
#define Rsc_mOhms 100UL
|
||||||
|
|
||||||
// Estimated maximum acceleration for X and Y axis
|
// Estimated maximum acceleration for X and Y axis
|
||||||
#define MAX_XYAXIS_ACCEL (3 * (Vref_mV) * 100 / (Rsc_mOhms))
|
#define MAX_XYAXIS_ACCEL (3UL * (Vref_mV) * 100UL / (Rsc_mOhms))
|
||||||
|
|
||||||
// Notes:
|
// Notes:
|
||||||
// If we could use 1.65A as motor current, then 3000 mm/s^2 as acceleration
|
// If we could use 1.65A as motor current, then 3000 mm/s^2 as acceleration
|
||||||
|
Loading…
Reference in New Issue
Block a user