ROBOTC.net forums
http://robotc.net/forums/

Our team has been working on this program and we had a error
http://robotc.net/forums/viewtopic.php?f=1&t=10388
Page 1 of 1

Author:  MotorA [ Wed Jan 28, 2015 2:12 pm ]
Post subject:  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;
}
}
}

Author:  MotorA [ Wed Jan 28, 2015 2:20 pm ]
Post subject:  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.

Author:  FTC_359 [ Wed Jan 28, 2015 5:10 pm ]
Post subject:  Re: Our team has been working on this program and we had a e

Disable natural language.

Author:  mightor [ Thu Jan 29, 2015 1:59 am ]
Post subject:  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

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/