![]() |
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. |
Re: requires function
C++ is case sensitive.
Try Code:
Requires(Robot::elevator) |
| 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