Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DigitDisplay Motor PID Ping mbed millis
Fork of MainProgram_BaseBaru_fix_omni12Feb by
Diff: main.cpp
- Revision:
- 32:581d4a2373f0
- Parent:
- 31:d5cbda07fd95
- Child:
- 33:69d266bc3fe9
--- a/main.cpp Mon Feb 13 12:03:37 2017 +0000
+++ b/main.cpp Mon Feb 13 13:49:50 2017 +0000
@@ -54,7 +54,7 @@
#define PERPINDAHAN 1 // Perpindahan ke kanan dan kiri
// Variable Atas
-double speed, speed2, maxSpeed = 0.8, minSpeed = 0;
+double speed, speed2, maxSpeed = 0.95, minSpeed = 0;
double kpA=0.6757, kdA=0.6757, kiA=0.00006757;
double p,i,d;
double p2,i2,d2;
@@ -172,7 +172,7 @@
// Motor Launcher
caseJoystick = 5;
}
- else if (joystick.R2_click && (target_rpm2 < 14)){
+ else if (joystick.R2_click && (target_rpm2 < 20)){
// Target Pulse PID ++ Motor Depan
caseJoystick = 6;
}
@@ -180,7 +180,7 @@
// Target Pulse PID -- Motor Depan
caseJoystick = 7;
}
- else if (joystick.R3_click && (target_rpm < 14)){
+ else if (joystick.R3_click && (target_rpm < 20 )){
// Target Pulse PID ++ Motor Belakang
caseJoystick = 8;
}
@@ -297,7 +297,7 @@
}
case (8) :
{
- // Target Pulse PID ++ Motor Belakang
+ // Target Pulse PID ++ Motor Belakang=
target_rpm = target_rpm++;
break;
}
