Skip to content

Commit d563ac8

Browse files
author
Wilbert Alberts
committed
Fix: increase constant speed and max duration of follower.
1 parent af4e902 commit d563ac8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Raspberry/eclipse/Follower/src/actuator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ void Actuators::setRight(double v)
4040

4141
int Actuators::process()
4242
{
43-
pwmL = 25 + left*50;
44-
pwmR = 25 + right*50;
43+
pwmL = 25 + left*75;
44+
pwmR = 25 + right*75;
4545

4646
int ipwmL = abs(round(pwmL));
4747
int ipwmR = abs(round(pwmR));

Raspberry/eclipse/Follower/src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#define COLLISIONSENS (130)
2121
#define FREQUENCY (100)
22-
#define MAXDURATION (10)
22+
#define MAXDURATION (130)
2323

2424
int mustStop();
2525

@@ -33,7 +33,7 @@ int main(int argc, char** argv)
3333

3434
Sensors sensors;
3535
Actuators actuators;
36-
Controller controller(FREQUENCY, 1.2, 0.2, -0.1 , sensors, actuators);
36+
Controller controller(FREQUENCY, 2.5, 0, 0.2 , sensors, actuators);
3737

3838

3939
RV_start();
@@ -46,7 +46,7 @@ int main(int argc, char** argv)
4646
{
4747
sensors.process();
4848
controller.process();
49-
actuators.process();
49+
//actuators.process();
5050

5151
if (mustStop())
5252
break;

0 commit comments

Comments
 (0)