add not touched recentering failsave
This commit is contained in:
parent
d8afc9682f
commit
12ba725fc1
|
@ -412,8 +412,8 @@ void loop() {
|
||||||
//calculate speed l and r from speed and steer
|
//calculate speed l and r from speed and steer
|
||||||
#define SPEED_COEFFICIENT_NRF 1 // higher value == stronger
|
#define SPEED_COEFFICIENT_NRF 1 // higher value == stronger
|
||||||
#define STEER_COEFFICIENT_NRF 0.5 // higher value == stronger
|
#define STEER_COEFFICIENT_NRF 0.5 // higher value == stronger
|
||||||
out_speedl = constrain(set_speed * SPEED_COEFFICIENT_NRF + set_steer * STEER_COEFFICIENT_NRF, -1000, 1000);
|
out_speedl = constrain(set_speed * SPEED_COEFFICIENT_NRF + set_steer * STEER_COEFFICIENT_NRF, -1500, 1500);
|
||||||
out_speedr = constrain(set_speed * SPEED_COEFFICIENT_NRF - set_steer * STEER_COEFFICIENT_NRF, -1000, 1000);
|
out_speedr = constrain(set_speed * SPEED_COEFFICIENT_NRF - set_steer * STEER_COEFFICIENT_NRF, -1500, 1500);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Serial.print("Out steer=");
|
Serial.print("Out steer=");
|
||||||
|
|
Loading…
Reference in New Issue