View Single Post
  #2   Spotlight this post!  
Unread 04-02-2004, 15:00
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Simple problem with variables

Quote:
Originally Posted by sear_yoda
static unsigned int pressure = Get_Analog_Value(rc_ana_in01);
If this is a global variable, you can't use a function to initialize it at its declaration. To initialize it with a function, put something like this:
Code:
 pressure = Get_Analog_Value(rc_ana_in01);
in user_initialazation(). (in the file user_routines.c)

Hope that helps.
__________________