Fixed the rccar configuration

This commit is contained in:
Benjamin Vedder 2014-06-29 14:58:37 +02:00
parent 5817eda397
commit 76106c2b80
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ static msg_t rccar_thread(void *arg) {
chEvtWaitAny((eventmask_t) 1);
#define HYST 0.15
#define USE_PID 0
#define USE_PID 1
#define PID_MAX_RPM 15000
if (servodec_get_time_since_update() < 500) {

View File

@ -34,7 +34,7 @@
#define MCPWM_IN_CURRENT_MIN -25.0 // Input current limit in Amperes (Lower)
#define MCPWM_CURRENT_STARTUP_BOOST 0.08 // The lowest duty cycle to use in current control mode @ 20V.
#define MCPWM_CURRENT_CONTROL_NO_REV 0 // Do not reverse the direction in current control mode, brake only
#define MCPWM_RPM_MAX 10000.0 // The motor speed limit (Upper)
#define MCPWM_RPM_MAX 100000.0 // The motor speed limit (Upper)
#define MCPWM_RPM_MIN -100000.0 // The motor speed limit (Lower)
// Sensorless settings