View Single Post
  #8   Spotlight this post!  
Unread 23-01-2004, 14:10
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Beacon Code on Full Size RC?

Quote:
Originally Posted by doy
i just tested it with
Code:
#define _FRC_BOARD
Generate_Pwms(pwm13,pwm14,pwm15,pwm16);
in Process_Data_From_Master_uP() and it gives the same error... should i have to #define that? if i dont, Generate_Pwms() requires 8 argument, and i dont know what the difference is.
I don't think that's right. Ex:
Code:
const int SomeVal = 321;
#define SomeAlias SomeVal

void SomeSub(void)
{
 if (SomeVal == SomeAlias)
  Code_Allways_Executes();
 if (SomeVal <> SomeAlias)
  Code_Never_Executes;
}
Which is compiled as:
Code:
const int SomeVal = 321;

void SomeSub(void)
{
 if (SomeVal == SomeVal)
  Code_Allways_Executes();
 if (SomeVal <> SomeVal)
  Code_Never_Executes;
}
Get it?

Of course, I don't know all the ins and outs of C, so check the FRC default code.