Merhaba. Aşağıdaki kodda 17 ve 31. satırlarda hata veriyor. Yardımcı olabilirseniz sevinirim.
[CODE lang="cpp" title="Cizgi İzleyen" highlight="17 ve 31"]#include
#define Kp 0.05 // experiment to determine this, start by something small that just makes your bot follow the line at a slow speed
#define Kd 2
// experiment to determine this, slowly increase the speeds and adjust this value. ( Note: Kp < Kd)
#define rightMaxSpeed 200
#define leftMaxSpeed 200
#define rightBaseSpeed 150
#define leftBaseSpeed 150
#define NUM_SENSORS 8
#define TIMEOUT 2500
#define EMITTER_PIN 2
QTRSensorsAnalog qtra((unsigned char) ,NUM_SENSORS, TIMEOUT, EMITTER_PIN);
unsigned int sensorValuesNUM_SENSORS;
void setup()
Serial.println();
for (int i = 0; i < NUM_SENSORS; i++)
Serial.println();
Serial.println();
*/
}
int lastError = 0;
void loop()
/CODE