View unanswered posts | View active topics It is currently Mon Jun 17, 2019 8:42 am






Reply to topic  [ 4 posts ] 
Our team has been working on this program and we had a error 
Author Message
Rookie

Joined: Wed Jan 28, 2015 2:06 pm
Posts: 6
Post Our team has been working on this program and we had a error
#include "JoystickDriver.c" is the error if any one can help please help

(program)

#pragma config(Sensor, S1, , sensorI2CMuxController)
#pragma config(Motor, motorA, motorB, tmotorNXT, PIDControl, encoder)
#pragma config(Motor, motorB, motorC, tmotorNXT, PIDControl, encoder)
#pragma config(Motor, mtr_S1_C1_1, motorD, tmotorTetrix, openLoop)
#pragma config(Motor, mtr_S1_C1_2, motorE, tmotorTetrix, openLoop)
#pragma config(Servo, srvo_S1_C2_1, servo1, tServoStandard)
#pragma config(Servo, srvo_S1_C2_2, servo2, tServoStandard)
#pragma config(Servo, srvo_S1_C2_3, servo3, tServoNone)
#pragma config(Servo, srvo_S1_C2_4, servo4, tServoNone)
#pragma config(Servo, srvo_S1_C2_5, servo5, tServoNone)
#pragma config(Servo, srvo_S1_C2_6, servo6, tServoNone)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//

#include "JoystickDriver.c"
#pragma DebuggerWindows("joystickSimple")

task main()
{

while(1 == 1)
{

getJoystickSettings(joystick);
motor[motorB] = joystick.joy1_y1;
motor[motorC] = joystick.joy1_y2;




if (joystick.joy1_Buttons == 0)//Bucket Twist
{
servoTarget[servo1] = 12;
}
else
{
servoTarget[servo1] = 117;
}
if(joystick.joy1_Buttons == 1)//Bucket Level, Angle 1
{
servoTarget[servo2] = 28;
servoTarget[servo2] = 209;
}
else
{
servoTarget[servo1] = 105;
servoTarget[servo2] = 137;
}
if(joystick.joy1_Buttons == 2)//Bucket Level, Angle 2
{
servoTarget[servo1] = 61;
servoTarget[servo2] = 176;
}
if(joystick.joy1_Buttons == 3)//Bucket Level, Angle 3
{
servoTarget[servo1] = 143;
servoTarget[servo2] = 176;
}
}
}


Wed Jan 28, 2015 2:12 pm
Profile
Rookie

Joined: Wed Jan 28, 2015 2:06 pm
Posts: 6
Post Re: Our team has been working on this program and we had a e
It says this

C:\Program Files\Robomatter Inc\ROBOTC Development Environment 4.X\Includes\JoystickDriver.c' has already been opened.


Wed Jan 28, 2015 2:20 pm
Profile
Rookie

Joined: Tue Jan 13, 2015 10:48 pm
Posts: 23
Post Re: Our team has been working on this program and we had a e
Disable natural language.


Wed Jan 28, 2015 5:10 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: Our team has been working on this program and we had a e
I am pretty sure that's just an informational message, rather than an actual error. However, as FTC_359 said, simply disabling natural language support will eliminate that message.

There are a few levels of messages in the Compiler Errors window:
Quote:
*info*: you can safely ignore these, they're more of an FYI.
*warning*: you should look into these, they may cause issues or unexpected behaviour.
*error*: this needs to be fixed, or nothing's going to work.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Thu Jan 29, 2015 1:59 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.