2013-12-15 18:30:16 -05:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2018-01-02 09:20:21 -08:00
|
|
|
/* Copyright (c) 2008-2018 FIRST. All Rights Reserved. */
|
2013-12-15 18:30:16 -05:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
2016-01-02 03:02:34 -08:00
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
2013-12-15 18:30:16 -05:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
2018-07-20 00:03:45 -07:00
|
|
|
#include "frc/Jaguar.h"
|
2016-09-25 16:50:13 -07:00
|
|
|
|
2018-07-20 00:03:45 -07:00
|
|
|
#include <hal/HAL.h>
|
2017-08-27 00:11:52 -07:00
|
|
|
|
2016-11-01 22:33:12 -07:00
|
|
|
using namespace frc;
|
|
|
|
|
|
2016-09-06 00:01:45 -07:00
|
|
|
Jaguar::Jaguar(int channel) : PWMSpeedController(channel) {
|
2018-05-31 20:47:15 -07:00
|
|
|
/* Input profile defined by Luminary Micro.
|
2015-06-25 15:07:55 -04:00
|
|
|
*
|
|
|
|
|
* Full reverse ranges from 0.671325ms to 0.6972211ms
|
|
|
|
|
* Proportional reverse ranges from 0.6972211ms to 1.4482078ms
|
|
|
|
|
* Neutral ranges from 1.4482078ms to 1.5517922ms
|
|
|
|
|
* Proportional forward ranges from 1.5517922ms to 2.3027789ms
|
|
|
|
|
* Full forward ranges from 2.3027789ms to 2.328675ms
|
|
|
|
|
*/
|
|
|
|
|
SetBounds(2.31, 1.55, 1.507, 1.454, .697);
|
|
|
|
|
SetPeriodMultiplier(kPeriodMultiplier_1X);
|
2016-07-08 21:29:29 -07:00
|
|
|
SetSpeed(0.0);
|
2015-06-25 15:07:55 -04:00
|
|
|
SetZeroLatch();
|
2013-12-15 18:30:16 -05:00
|
|
|
|
2016-07-09 00:24:26 -07:00
|
|
|
HAL_Report(HALUsageReporting::kResourceType_Jaguar, GetChannel());
|
2017-12-04 23:28:33 -08:00
|
|
|
SetName("Jaguar", GetChannel());
|
2013-12-15 18:30:16 -05:00
|
|
|
}
|