|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Functions in C++
If i was to create a header file that would control a motor would i declare it as such:
#ifndef CODE_H #define CODE_H #include "WPILib.h" class Code { private: Timer Time; public: Code(); void TurnForTime(Jaguar* Jag,float speed, float time); void Wait(float time); ~Code(); }; #endif |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|