RMRobotics / FTC_5421_2014-2015

Assets for 2014-2015 Team 5421 FIRST Tech Challenge.
MIT License
6 stars 1 forks source link

Including #pragma config #8

Closed jimmyli97 closed 9 years ago

jimmyli97 commented 10 years ago

See if it is possible to include a .c file with all pragma configurations (makes it so that we only have to change them in one place).

It probably isn't possible (Xander says you should just put them in each .c file), but it's so annoying I sort of want to check :)

Suggestions include: -Changing Motor.h into Motor.c. All motor assignments should only be done in Motor.h, so in theory the pragmas are only need there -Creating a Setup.c that only has pragmas and then including that file

jimmyli97 commented 10 years ago

Came across this, so I guess it's impossible :(.

pmaldonado commented 10 years ago

Ok Peter just told me this is possible (because we have six RobotC 4.0 licenses I didn't know about...)

TheAlchenmist commented 9 years ago

IT WORKS!!!!!!!!!!