Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   requires function (http://www.chiefdelphi.com/forums/showthread.php?t=134281)

Pikaqiu 10-02-2015 02:34

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.

jrw 10-02-2015 07:21

Re: requires function
 
C++ is case sensitive.

Try
Code:

Requires(Robot::elevator)
(with a capital 'R' for Requires)


All times are GMT -5. The time now is 22:00.

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