Arduino OSV Problems

So I made this code to make the OSV make a 90 degree turn counterclockwise but, for some reason it does not stop after making the turn. It compiles and uploads but, doesn't seem to stop after turning.
Here's my program....
#include <enes100.h>
#include <enes100_marker.h>
#include <enes100_rf_client.h>

#include <dfr_tank.h>
#include <SoftwareSerial.h>
#include "enes100.h"

SoftwareSerial sSerial(8,9);
DFRTank tank;
enes100::RfClient rf(&sSerial);
enes100::Marker marker;
void setup(){
Serial.begin(9600);
tank.init();
rf.resetServer();
rf.sendMessage("Water Connected.");
rf.receiveMarker(&marker,168);
}
void loop(){
delay(100);
(rf.receiveMarker(&marker, 168));
do {
tank.setLeftMotorPWM(-255);
tank.setRightMotorPWM(0);}
while((180/3.14)*marker.theta<=90);

tank.turnOffMotors();

Here's my program....

But not all of it.

do {
    tank.setLeftMotorPWM(-255);
    tank.setRightMotorPWM(0);}
   while((180/3.14)*marker.theta<=90);

Once this while loop starts, NOTHING changes the value of marker.theta, so the device will spin until hell freezes over.

PaulS:

do {

tank.setLeftMotorPWM(-255);
   tank.setRightMotorPWM(0);}
  while((180/3.14)*marker.theta<=90);



Once this while loop starts, NOTHING changes the value of marker.theta, so the device will spin until hell freezes over.

:slight_smile: