Quote:
Originally Posted by Mr.Paulson
Code:
if(Driver_Controller->bool GetRawButton(4)==0){
Talon3->Set(1);
}
else if(Driver_Controller->bool GetRawButton(1)==0){
Talon3->Set(-1);
}
else{
Talon3->Set(0);
|
You will almost certainly have trouble with the lines:
Code:
if(Driver_Controller->bool GetRawButton(4)==0){
and
Code:
else if(Driver_Controller->bool GetRawButton(1)==0){
You should not have that bolded bool there; it simply is not necessary in C/C++ to put that identifier there when calling a function. It's certainly possible that you have other problems, but your code won't compile if you leave those in.
If you are still having issues, it would be convenient if you specifically quoted the error in question and identified the line corresponding to the error (most error messages will mention a line number; if you can point out exactly which line the error message is referring to, it is easier for people to help). Also, the code tags mentioned earlier are helpful for formatting; if you put a large chunk of code in code tags then it will keep constant width characters and handle whitespace nicely, as well as condensing the code so it doesn't take up as much space when scrolling through the thread.