Go to Post Instead of lowering a team's expectations, let's raise the amount of competitive resources available to them. ;) - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #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
  #2   Spotlight this post!  
Unread 10-02-2015, 07:21
jrw jrw is offline
Registered User
FRC #4774 (The Drop Bears)
Team Role: Mentor
 
Join Date: Sep 2013
Rookie Year: 2013
Location: Sydney
Posts: 6
jrw is an unknown quantity at this point
Re: requires function

C++ is case sensitive.

Try
Code:
Requires(Robot::elevator)
(with a capital 'R' for Requires)
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi