Hallo!

Ich habe schon viel mit Variablen rumprobiert (auch schon vorher). Aber es hat noch nie geklappt
Kannst du bitte mal auf mein Programm gucken?

#include "qfixBobbyBoard.h"
#include "qfixSlaveBoard.h"

BobbyBoard links;
SlaveBoard rechts;

int main()
{

int white = links.analog(3);

links.motor(0, -255);
rechts.motor(0, 255);

sleep(1);

links.motor(0, 0);
rechts.motor(0, 0);

int black = links.analog(3);

int ground = int((white+black)*0.55);

sleep(10);



while (true) {

int blub = 0;

if (links.analog(3) > ground){

links.motor(0, -255);
rechts.motor(0, 255);

}

else {

if (blub = 0){
links.motor(0, 0);
rechts.motor(0, 0);
blub + 1;
}

else {
links.motor(0, -255);
rechts.motor(0, 255);
}
}
}
}

Mein BOT hält an keiner Linie an.
Er fährt einfach geradeaus mit
links.motor(0, -255);
rechts.motor(0, 255);