View Single Post
  #1   Spotlight this post!  
Unread 10-02-2015, 02:34
Pikaqiu Pikaqiu is offline
Registered User
FRC #5700
 
Join Date: Dec 2014
Location: San Francisco
Posts: 2
Pikaqiu is an unknown quantity at this point
requires function

I have an issue with my robot code.
"Function 'requires' could not be resolved."

#include "toggleDown.h"
#include "Robot.h"
#include "RobotMap.h"

toggleDown::toggleDown() {
// Use requires() here to declare subsystem dependencies
// eg. requires(chassis);
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=REQUIRES
requires(Robot::elevator);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=REQUIRES
}

Where can I find the function definition of requires?

I built my code with robotbuilder.

Please help,
Thanks.
Reply With Quote