Thread: No Robot Code
View Single Post
  #2   Spotlight this post!  
Unread 17-01-2013, 20:29
pfish3138 pfish3138 is offline
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Dayton
Posts: 8
pfish3138 is an unknown quantity at this point
Re: No Robot 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());
Reply With Quote