USFirst.org
follow us on twitter
like us on facebookMNFTC.org
Bookmark and Share

Thanks

The team members of FRC Team 2220 would like to give a big thanks to all of the Sponsors, Mentors and Parents that make having this team possible.

Thank you!

Team Login



Collector.h Create PDF Send to Printer Email this Article
Written by TarinB   
Saturday, February 13 2010 16:37

#ifndef BTCOLLECTOR_H_

#define BTCOLLECTOR_H_

 

#include "WPILib.h"

#include <stdio.h>

#include "math.h"

#include "BaeUtilities.h"

#include "Autonomous.h"

 

class BTCollector

{

public:

bool collectorJammed;

double lastLimitChangeTime;

BTCollector(void);

void Enable(BTAutonomous*);

void Disable(void);

void Reverse(void);

void DetectJam(void);

static const float COLLECTOR_MOTOR_SPEED = 1.0;

static const float COLLECTOR_SLOW_REVERSE = -0.25;

static const float COLLECTOR_FAST_REVERSE = -1.0;

private:

bool lastLimitPosition;

bool enabled;

Jaguar* collMotor;

DigitalInput* jamLimit;

static const float COLL_LIMIT_TIMEOUT = 1.0;

};

 

#endif

 

 

 

 

 

 

 

 

 

 

 
Lockheed Martin
Valid XHTML 1.0 Transitional Valid CSS!
Blanda
Blanda
Copyright © 2012 Eagan Robotics. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.