mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
Remove functions and classes deprecated for 2018 season (#1059)
This commit is contained in:
committed by
Peter Johnson
parent
eeb1025ac7
commit
9e45373a74
@@ -1,5 +1,5 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Copyright (c) 2008-2018 FIRST. All Rights Reserved. */
|
||||
/* Copyright (c) 2008-2019 FIRST. All Rights Reserved. */
|
||||
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
||||
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||||
/* the project. */
|
||||
@@ -99,15 +99,6 @@ class Joystick : public GenericHID {
|
||||
*/
|
||||
void SetThrottleChannel(int channel);
|
||||
|
||||
/**
|
||||
* Set the channel associated with a specified axis.
|
||||
*
|
||||
* @param axis The axis to set the channel for.
|
||||
* @param channel The channel to set the axis to.
|
||||
*/
|
||||
WPI_DEPRECATED("Use the more specific axis channel setter functions.")
|
||||
void SetAxisChannel(AxisType axis, int channel);
|
||||
|
||||
/**
|
||||
* Get the channel currently associated with the X axis.
|
||||
*
|
||||
@@ -184,19 +175,6 @@ class Joystick : public GenericHID {
|
||||
*/
|
||||
double GetThrottle() const;
|
||||
|
||||
/**
|
||||
* For the current joystick, return the axis determined by the argument.
|
||||
*
|
||||
* This is for cases where the joystick axis is returned programatically,
|
||||
* otherwise one of the previous functions would be preferable (for example
|
||||
* GetX()).
|
||||
*
|
||||
* @param axis The axis to read.
|
||||
* @return The value of the axis.
|
||||
*/
|
||||
WPI_DEPRECATED("Use the more specific axis channel getter functions.")
|
||||
double GetAxis(AxisType axis) const;
|
||||
|
||||
/**
|
||||
* Read the state of the trigger on the joystick.
|
||||
*
|
||||
@@ -243,20 +221,6 @@ class Joystick : public GenericHID {
|
||||
*/
|
||||
bool GetTopReleased();
|
||||
|
||||
WPI_DEPRECATED("Use Joystick instances instead.")
|
||||
static Joystick* GetStickForPort(int port);
|
||||
|
||||
/**
|
||||
* Get buttons based on an enumerated type.
|
||||
*
|
||||
* The button type will be looked up in the list of buttons and then read.
|
||||
*
|
||||
* @param button The type of button to read.
|
||||
* @return The state of the button.
|
||||
*/
|
||||
WPI_DEPRECATED("Use the more specific button getter functions.")
|
||||
bool GetButton(ButtonType button) const;
|
||||
|
||||
/**
|
||||
* Get the magnitude of the direction vector formed by the joystick's
|
||||
* current position relative to its origin.
|
||||
|
||||
Reference in New Issue
Block a user