Thread: No Robot Code
View Single Post
  #5   Spotlight this post!  
Unread 17-01-2013, 20:31
agartner01 agartner01 is offline
Captain + Control Sys & Design
FRC #4174
Team Role: Engineer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Hector MN
Posts: 109
agartner01 is an unknown quantity at this point
Re: No Robot Code

Code:
#ifndef TEAM3138_PWMREADER_H
#define TEAM3138_PWMREADER_H

#include <WPILib.h>
#include <SmartDashboard/SmartDashboard.h>
#include <PWM.h>

class PWMTester: public PWM {
public:
	explicit PWMTester(UINT32 channel);
	PWMTester(UINT8 moduleNumber, UINT32 channel);
	virtual ~PWMTester();
	void Update();

private:

};

#endif
#include "PWMReader.h"

PWMTester:WMTester(UINT32 channel) : PWM(channel)

{

}

PWMTester:WMTester(UINT8 moduleNumber, UINT32 channel) : PWM(UINT8 moduleNumber, UINT32 channel)

{

}

dash->PutNumber("PWM Output", m_PWMTester.GetRaw());
Click the button then paste your code inbetween [.code] and [/code]

Last edited by agartner01 : 17-01-2013 at 20:35.
Reply With Quote