View Single Post
  #1   Spotlight this post!  
Unread 16-02-2012, 20:40
inkspell4's Avatar
inkspell4 inkspell4 is offline
Registered User
FRC #3650 (Robo Raptors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Maryland
Posts: 326
inkspell4 will become famous soon enough
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
__________________
Chesapeake Regional : 2013, 2012, 2011
Rookie Year: 2011
2013 RoboRaptors Team 3650 Programming Team Captain
Team Website : http://www.roboraptorsfrcteam3650.com/index.html
_____________________________________________
Reply With Quote