Expected primary-expression before ')' token


#1

Hey everyone, I have been coding my old robot, Orion board, and when I try to upload to Arduino the error message “expected primary-expression before ‘)’ token” pops up. I have tried everything but cannot get it to upload. Here is my code:

#include <Arduino.h>
#include <Wire.h>
#include <SoftwareSerial.h>

#include <MeOrion.h>

double angle_rad = PI/180.0;
double angle_deg = 180.0/PI;
void Turn(double degrees);
double pointing;
MeDCMotor motor_9(9);
void Value(double number);
Me7SegmentDisplay seg7_3(3);
double degrees;
MeJoystick joystick_6(6);

void Turn(double degrees)
{
motor_9.run(255);
_delay((0.00113888888) * (degrees));
motor_9.run(0);
pointing += degrees;
while(!((360) > (pointing)))
{
pointing = (pointing) - (360);
}
}

void Value(double number)
{
seg7_3.display((float)number);
}

void setup(){
}

void loop(){
Turn((degrees) - (pointing));
if((abs(joystick_6.read(1))) < (abs(joystick_6.read(2)))){
if(!(((String(joystick_6.read(1)).charAt(1-1))==(-)))){
degrees = 90;
}
if(((String(joystick_6.read(1)).charAt(1-1))==(-))){
degrees = 270;
}
}else{
if((abs(joystick_6.read(1))) > (abs(joystick_6.read(2)))){
if(!(((String(joystick_6.read(2)).charAt(1-1))==(-)))){
degrees = 0;
}
if(((String(joystick_6.read(2)).charAt(1-1))==(-))){
degrees = 180;
}
}
}
_loop();
}

void _delay(float seconds){
long endTime = millis() + seconds * 1000;
while(millis() < endTime)_loop();
}

void _loop(){
}

project_ROBOTC_1.SB29_4.ino: In function ‘void loop()’:
project_ROBOTC_1.SB29_4.ino:50:59: error: expected primary-expression before ‘)’ token
project_ROBOTC_1.SB29_4.ino:53:57: error: expected primary-expression before ‘)’ token
project_ROBOTC_1.SB29_4.ino:58:63: error: expected primary-expression before ‘)’ token
project_ROBOTC_1.SB29_4.ino:61:61: error: expected primary-expression before ‘)’ token
expected primary-expression before ‘)’ token