From 43f16510fad28f385290481be617005ab4f28d02 Mon Sep 17 00:00:00 2001 From: peter mitrano Date: Tue, 28 Jul 2015 13:55:53 -0400 Subject: [PATCH] moved ctre includes from C++Devices into Hal Change-Id: I0d0460516b5e26345faa321ed6e24d80eba65358 --- .../Athena/ctre => include/HAL}/CanTalonSRX.h | 4 +- hal/lib/Athena/ctre/CanTalonSRX.cpp | 2 +- wpilibc/wpilibC++Devices/include/CANTalon.h | 2 +- .../include/ctre/CanTalonSRX.h | 441 ------ .../include/ctre/CtreCanNode.h | 97 -- wpilibc/wpilibC++Devices/include/ctre/ctre.h | 51 - wpilibj/wpilibJavaJNI/lib/CanTalonSRXJNI.cpp | 1322 ++++++++--------- 7 files changed, 665 insertions(+), 1254 deletions(-) rename hal/{lib/Athena/ctre => include/HAL}/CanTalonSRX.h (97%) delete mode 100644 wpilibc/wpilibC++Devices/include/ctre/CanTalonSRX.h delete mode 100644 wpilibc/wpilibC++Devices/include/ctre/CtreCanNode.h delete mode 100644 wpilibc/wpilibC++Devices/include/ctre/ctre.h diff --git a/hal/lib/Athena/ctre/CanTalonSRX.h b/hal/include/HAL/CanTalonSRX.h similarity index 97% rename from hal/lib/Athena/ctre/CanTalonSRX.h rename to hal/include/HAL/CanTalonSRX.h index cc2236b06d..f04ce3c3a0 100644 --- a/hal/lib/Athena/ctre/CanTalonSRX.h +++ b/hal/include/HAL/CanTalonSRX.h @@ -71,8 +71,8 @@ */ #ifndef CanTalonSRX_H_ #define CanTalonSRX_H_ -#include "ctre.h" //BIT Defines + Typedefs -#include "CtreCanNode.h" +#include "ctre/ctre.h" //BIT Defines + Typedefs +#include "ctre/CtreCanNode.h" #include //CAN Comm #include class CanTalonSRX : public CtreCanNode diff --git a/hal/lib/Athena/ctre/CanTalonSRX.cpp b/hal/lib/Athena/ctre/CanTalonSRX.cpp index a51099c2b7..a3177cd3ad 100644 --- a/hal/lib/Athena/ctre/CanTalonSRX.cpp +++ b/hal/lib/Athena/ctre/CanTalonSRX.cpp @@ -69,7 +69,7 @@ * auto generated using spreadsheet and WpiClassGen.csproj * @link https://docs.google.com/spreadsheets/d/1OU_ZV7fZLGYUQ-Uhc8sVAmUmWTlT8XBFYK8lfjg_tac/edit#gid=1766046967 */ -#include "CanTalonSRX.h" +#include "HAL/CanTalonSRX.h" #include "NetworkCommunication/CANSessionMux.h" //CAN Comm #include // memset #include // usleep diff --git a/wpilibc/wpilibC++Devices/include/CANTalon.h b/wpilibc/wpilibC++Devices/include/CANTalon.h index 21c812444a..3c2545938d 100644 --- a/wpilibc/wpilibC++Devices/include/CANTalon.h +++ b/wpilibc/wpilibC++Devices/include/CANTalon.h @@ -10,7 +10,7 @@ #include "PIDOutput.h" #include "PIDSource.h" #include "PIDInterface.h" -#include "ctre/CanTalonSRX.h" +#include "HAL/CanTalonSRX.h" #include "MotorSafetyHelper.h" #include "LiveWindow/LiveWindowSendable.h" #include "tables/ITable.h" diff --git a/wpilibc/wpilibC++Devices/include/ctre/CanTalonSRX.h b/wpilibc/wpilibC++Devices/include/ctre/CanTalonSRX.h deleted file mode 100644 index 3e8cb77234..0000000000 --- a/wpilibc/wpilibC++Devices/include/ctre/CanTalonSRX.h +++ /dev/null @@ -1,441 +0,0 @@ -/** - * @brief CAN TALON SRX driver. - * - * The TALON SRX is designed to instrument all runtime signals periodically. - * The default periods are chosen to support 16 TALONs - * with 10ms update rate for control (throttle or setpoint). However these can - * be overridden with SetStatusFrameRate. @see SetStatusFrameRate - * The getters for these unsolicited signals are auto generated at the bottom of - * this module. - * - * Likewise most control signals are sent periodically using the fire-and-forget - * CAN API. - * The setters for these unsolicited signals are auto generated at the bottom of - * this module. - * - * Signals that are not available in an unsolicited fashion are the Close Loop - * gains. - * For teams that have a single profile for their TALON close loop they can use - * either the webpage to configure their TALONs once - * or set the PIDF,Izone,CloseLoopRampRate,etc... once in the robot - * application. These parameters are saved to flash so once they are - * loaded in the TALON, they will persist through power cycles and mode - * changes. - * - * For teams that have one or two profiles to switch between, they can use the - * same strategy since there are two slots to choose from - * and the ProfileSlotSelect is periodically sent in the 10 ms control frame. - * - * For teams that require changing gains frequently, they can use the soliciting - * API to get and set those parameters. Most likely - * they will only need to set them in a periodic fashion as a function of what - * motion the application is attempting. - * If this API is used, be mindful of the CAN utilization reported in the driver - * station. - * - * Encoder position is measured in encoder edges. Every edge is counted - * (similar to roboRIO 4X mode). - * Analog position is 10 bits, meaning 1024 ticks per rotation (0V => 3.3V). - * Use SetFeedbackDeviceSelect to select which sensor type you need. Once you - * do that you can use GetSensorPosition() - * and GetSensorVelocity(). These signals are updated on CANBus every 20ms (by - * default). - * If a relative sensor is selected, you can zero (or change the current value) - * using SetSensorPosition. - * - * Analog Input and quadrature position (and velocity) are also explicitly - * reported in GetEncPosition, GetEncVel, GetAnalogInWithOv, GetAnalogInVel. - * These signals are available all the time, regardless of what sensor is - * selected at a rate of 100ms. This allows easy instrumentation - * for "in the pits" checking of all sensors regardless of modeselect. The - * 100ms rate is overridable for teams who want to acquire sensor - * data for processing, not just instrumentation. Or just select the sensor - * using SetFeedbackDeviceSelect to get it at 20ms. - * - * Velocity is in position ticks / 100ms. - * - * All output units are in respect to duty cycle (throttle) which is -1023(full - * reverse) to +1023 (full forward). - * This includes demand (which specifies duty cycle when in duty cycle mode) - * and rampRamp, which is in throttle units per 10ms (if nonzero). - * - * Pos and velocity close loops are calc'd as - * err = target - posOrVel. - * iErr += err; - * if( (IZone!=0) and abs(err) > IZone) - * ClearIaccum() - * output = P X err + I X iErr + D X dErr + F X target - * dErr = err - lastErr - * P, I,and D gains are always positive. F can be negative. - * Motor direction can be reversed using SetRevMotDuringCloseLoopEn if - * sensor and motor are out of phase. - * Similarly feedback sensor can also be reversed (multiplied by -1) if you - * prefer the sensor to be inverted. - * - * P gain is specified in throttle per error tick. For example, a value of 102 - * is ~9.9% (which is 102/1023) throttle per 1 - * ADC unit(10bit) or 1 quadrature encoder edge depending on - * selected sensor. - * - * I gain is specified in throttle per integrated error. For example, a value of - * 10 equates to ~0.99% (which is 10/1023) - * for each accumulated ADC unit(10bit) or 1 quadrature encoder edge - * depending on selected sensor. - * Close loop and integral accumulator runs every 1ms. - * - * D gain is specified in throttle per derivative error. For example a value of - * 102 equates to ~9.9% (which is 102/1023) - * per change of 1 unit (ADC or encoder) per ms. - * - * I Zone is specified in the same units as sensor position (ADC units or - * quadrature edges). If pos/vel error is outside of - * this value, the integrated error will auto-clear... - * if( (IZone!=0) and abs(err) > IZone) - * ClearIaccum() - * ...this is very useful in preventing integral windup and is - * highly recommended if using full PID to keep stability low. - * - * CloseLoopRampRate is in throttle units per 1ms. Set to zero to disable - * ramping. - * Works the same as RampThrottle but only is in effect when a close - * loop mode and profile slot is selected. - * - * auto generated using spreadsheet and WpiClassGen.csproj - * @link - * https://docs.google.com/spreadsheets/d/1OU_ZV7fZLGYUQ-Uhc8sVAmUmWTlT8XBFYK8lfjg_tac/edit#gid=1766046967 - */ -#ifndef CanTalonSRX_H_ -#define CanTalonSRX_H_ -#include "ctre.h" //BIT Defines + Typedefs -#include "CtreCanNode.h" -#include //CAN Comm -#include -class CanTalonSRX : public CtreCanNode { - private: - /** just in case user wants to modify periods of certain status frames. - * Default the vars to match the firmware default. */ - uint32_t _statusRateMs[4]; - //---------------------- Vars for opening a CAN stream if caller needs signals - //that require soliciting */ - uint32_t _can_h; //!< Session handle for catching response params. - int32_t _can_stat; //!< Session handle status. - struct tCANStreamMessage _msgBuff[20]; - static int const kMsgCapacity = 20; - typedef std::map sigs_t; - sigs_t _sigs; //!< Catches signal updates that are solicited. Expect this to - //be very few. - void OpenSessionIfNeedBe(); - void ProcessStreamMessages(); - /** - * Send a one shot frame to set an arbitrary signal. - * Most signals are in the control frame so avoid using this API unless you - * have to. - * Use this api for... - * -A motor controller profile signal eProfileParam_XXXs. These are backed up - * in flash. If you are gain-scheduling then call this periodically. - * -Default brake and limit switch signals... eOnBoot_XXXs. Avoid doing this, - * use the override signals in the control frame. - * Talon will automatically send a PARAM_RESPONSE after the set, so - * GetParamResponse will catch the latest value after a couple ms. - */ - CTR_Code SetParamRaw(uint32_t paramEnum, int32_t rawBits); - /** - * Checks cached CAN frames and updating solicited signals. - */ - CTR_Code GetParamResponseRaw(uint32_t paramEnum, int32_t &rawBits); - - public: - static const int kDefaultControlPeriodMs = - 10; //!< default control update rate is 10ms. - CanTalonSRX(int deviceNumber = 0, - int controlPeriodMs = kDefaultControlPeriodMs); - ~CanTalonSRX(); - void Set(double value); - /* mode select enumerations */ - static const int kMode_DutyCycle = - 0; //!< Demand is 11bit signed duty cycle [-1023,1023]. - static const int kMode_PositionCloseLoop = 1; //!< Position PIDF. - static const int kMode_VelocityCloseLoop = 2; //!< Velocity PIDF. - static const int kMode_CurrentCloseLoop = - 3; //!< Current close loop - not done. - static const int kMode_VoltCompen = 4; //!< Voltage Compensation Mode - not - //done. Demand is fixed pt target 8.8 - //volts. - static const int kMode_SlaveFollower = - 5; //!< Demand is the 6 bit Device ID of the 'master' TALON SRX. - static const int kMode_NoDrive = - 15; //!< Zero the output (honors brake/coast) regardless of demand. - //Might be useful if we need to change modes but can't atomically - //change all the signals we want in between. - /* limit switch enumerations */ - static const int kLimitSwitchOverride_UseDefaultsFromFlash = 1; - static const int kLimitSwitchOverride_DisableFwd_DisableRev = 4; - static const int kLimitSwitchOverride_DisableFwd_EnableRev = 5; - static const int kLimitSwitchOverride_EnableFwd_DisableRev = 6; - static const int kLimitSwitchOverride_EnableFwd_EnableRev = 7; - /* brake override enumerations */ - static const int kBrakeOverride_UseDefaultsFromFlash = 0; - static const int kBrakeOverride_OverrideCoast = 1; - static const int kBrakeOverride_OverrideBrake = 2; - /* feedback device enumerations */ - static const int kFeedbackDev_DigitalQuadEnc = 0; - static const int kFeedbackDev_AnalogPot = 2; - static const int kFeedbackDev_AnalogEncoder = 3; - static const int kFeedbackDev_CountEveryRisingEdge = 4; - static const int kFeedbackDev_CountEveryFallingEdge = 5; - static const int kFeedbackDev_PosIsPulseWidth = 8; - /* ProfileSlotSelect enumerations*/ - static const int kProfileSlotSelect_Slot0 = 0; - static const int kProfileSlotSelect_Slot1 = 1; - /* status frame rate types */ - static const int kStatusFrame_General = 0; - static const int kStatusFrame_Feedback = 1; - static const int kStatusFrame_Encoder = 2; - static const int kStatusFrame_AnalogTempVbat = 3; - /** - * Signal enumeration for generic signal access. - * Although every signal is enumerated, only use this for traffic that must be - * solicited. - * Use the auto generated getters/setters at bottom of this header as much as - * possible. - */ - typedef enum _param_t { - eProfileParamSlot0_P = 1, - eProfileParamSlot0_I = 2, - eProfileParamSlot0_D = 3, - eProfileParamSlot0_F = 4, - eProfileParamSlot0_IZone = 5, - eProfileParamSlot0_CloseLoopRampRate = 6, - eProfileParamSlot1_P = 11, - eProfileParamSlot1_I = 12, - eProfileParamSlot1_D = 13, - eProfileParamSlot1_F = 14, - eProfileParamSlot1_IZone = 15, - eProfileParamSlot1_CloseLoopRampRate = 16, - eProfileParamSoftLimitForThreshold = 21, - eProfileParamSoftLimitRevThreshold = 22, - eProfileParamSoftLimitForEnable = 23, - eProfileParamSoftLimitRevEnable = 24, - eOnBoot_BrakeMode = 31, - eOnBoot_LimitSwitch_Forward_NormallyClosed = 32, - eOnBoot_LimitSwitch_Reverse_NormallyClosed = 33, - eOnBoot_LimitSwitch_Forward_Disable = 34, - eOnBoot_LimitSwitch_Reverse_Disable = 35, - eFault_OverTemp = 41, - eFault_UnderVoltage = 42, - eFault_ForLim = 43, - eFault_RevLim = 44, - eFault_HardwareFailure = 45, - eFault_ForSoftLim = 46, - eFault_RevSoftLim = 47, - eStckyFault_OverTemp = 48, - eStckyFault_UnderVoltage = 49, - eStckyFault_ForLim = 50, - eStckyFault_RevLim = 51, - eStckyFault_ForSoftLim = 52, - eStckyFault_RevSoftLim = 53, - eAppliedThrottle = 61, - eCloseLoopErr = 62, - eFeedbackDeviceSelect = 63, - eRevMotDuringCloseLoopEn = 64, - eModeSelect = 65, - eProfileSlotSelect = 66, - eRampThrottle = 67, - eRevFeedbackSensor = 68, - eLimitSwitchEn = 69, - eLimitSwitchClosedFor = 70, - eLimitSwitchClosedRev = 71, - eSensorPosition = 73, - eSensorVelocity = 74, - eCurrent = 75, - eBrakeIsEnabled = 76, - eEncPosition = 77, - eEncVel = 78, - eEncIndexRiseEvents = 79, - eQuadApin = 80, - eQuadBpin = 81, - eQuadIdxpin = 82, - eAnalogInWithOv = 83, - eAnalogInVel = 84, - eTemp = 85, - eBatteryV = 86, - eResetCount = 87, - eResetFlags = 88, - eFirmVers = 89, - eSettingsChanged = 90, - eQuadFilterEn = 91, - ePidIaccum = 93, - } param_t; - /*---------------------setters and getters that use the solicated param request/response-------------*/ /** - * Send a one shot frame to set an arbitrary signal. - * Most signals are in the control frame so avoid using this API unless you - * have to. - * Use this api for... - * -A motor controller profile signal eProfileParam_XXXs. These are backed - * up in flash. If you are gain-scheduling then call this periodically. - * -Default brake and limit switch signals... eOnBoot_XXXs. Avoid doing - * this, use the override signals in the control frame. - * Talon will automatically send a PARAM_RESPONSE after the set, so - * GetParamResponse will catch the latest value after a couple ms. - */ - CTR_Code SetParam(param_t paramEnum, double value); - /** - * Asks TALON to immedietely respond with signal value. This API is only used - * for signals that are not sent periodically. - * This can be useful for reading params that rarely change like Limit Switch - * settings and PIDF values. - * @param param to request. - */ - CTR_Code RequestParam(param_t paramEnum); - CTR_Code GetParamResponse(param_t paramEnum, double &value); - CTR_Code GetParamResponseInt32(param_t paramEnum, int &value); - /*----- getters and setters that use param request/response. These signals are - * backed up in flash and will survive a power cycle. ---------*/ - /*----- If your application requires changing these values consider using both - * slots and switch between slot0 <=> slot1. ------------------*/ - /*----- If your application requires changing these signals frequently then it - * makes sense to leverage this API. --------------------------*/ - /*----- Getters don't block, so it may require several calls to get the latest - * value. --------------------------*/ - CTR_Code SetPgain(unsigned slotIdx, double gain); - CTR_Code SetIgain(unsigned slotIdx, double gain); - CTR_Code SetDgain(unsigned slotIdx, double gain); - CTR_Code SetFgain(unsigned slotIdx, double gain); - CTR_Code SetIzone(unsigned slotIdx, int zone); - CTR_Code SetCloseLoopRampRate(unsigned slotIdx, int closeLoopRampRate); - CTR_Code SetSensorPosition(int pos); - CTR_Code SetForwardSoftLimit(int forwardLimit); - CTR_Code SetReverseSoftLimit(int reverseLimit); - CTR_Code SetForwardSoftEnable(int enable); - CTR_Code SetReverseSoftEnable(int enable); - CTR_Code GetPgain(unsigned slotIdx, double &gain); - CTR_Code GetIgain(unsigned slotIdx, double &gain); - CTR_Code GetDgain(unsigned slotIdx, double &gain); - CTR_Code GetFgain(unsigned slotIdx, double &gain); - CTR_Code GetIzone(unsigned slotIdx, int &zone); - CTR_Code GetCloseLoopRampRate(unsigned slotIdx, int &closeLoopRampRate); - CTR_Code GetForwardSoftLimit(int &forwardLimit); - CTR_Code GetReverseSoftLimit(int &reverseLimit); - CTR_Code GetForwardSoftEnable(int &enable); - CTR_Code GetReverseSoftEnable(int &enable); - /** - * Change the periodMs of a TALON's status frame. See kStatusFrame_* enums - * for what's available. - */ - CTR_Code SetStatusFrameRate(unsigned frameEnum, unsigned periodMs); - /** - * Clear all sticky faults in TALON. - */ - CTR_Code ClearStickyFaults(); - /*------------------------ auto generated. This API is optimal since it uses - * the fire-and-forget CAN interface ----------------------*/ - /*------------------------ These signals should cover the majority of all use - * cases. ----------------------------------*/ - CTR_Code GetFault_OverTemp(int ¶m); - CTR_Code GetFault_UnderVoltage(int ¶m); - CTR_Code GetFault_ForLim(int ¶m); - CTR_Code GetFault_RevLim(int ¶m); - CTR_Code GetFault_HardwareFailure(int ¶m); - CTR_Code GetFault_ForSoftLim(int ¶m); - CTR_Code GetFault_RevSoftLim(int ¶m); - CTR_Code GetStckyFault_OverTemp(int ¶m); - CTR_Code GetStckyFault_UnderVoltage(int ¶m); - CTR_Code GetStckyFault_ForLim(int ¶m); - CTR_Code GetStckyFault_RevLim(int ¶m); - CTR_Code GetStckyFault_ForSoftLim(int ¶m); - CTR_Code GetStckyFault_RevSoftLim(int ¶m); - CTR_Code GetAppliedThrottle(int ¶m); - CTR_Code GetCloseLoopErr(int ¶m); - CTR_Code GetFeedbackDeviceSelect(int ¶m); - CTR_Code GetModeSelect(int ¶m); - CTR_Code GetLimitSwitchEn(int ¶m); - CTR_Code GetLimitSwitchClosedFor(int ¶m); - CTR_Code GetLimitSwitchClosedRev(int ¶m); - CTR_Code GetSensorPosition(int ¶m); - CTR_Code GetSensorVelocity(int ¶m); - CTR_Code GetCurrent(double ¶m); - CTR_Code GetBrakeIsEnabled(int ¶m); - CTR_Code GetEncPosition(int ¶m); - CTR_Code GetEncVel(int ¶m); - CTR_Code GetEncIndexRiseEvents(int ¶m); - CTR_Code GetQuadApin(int ¶m); - CTR_Code GetQuadBpin(int ¶m); - CTR_Code GetQuadIdxpin(int ¶m); - CTR_Code GetAnalogInWithOv(int ¶m); - CTR_Code GetAnalogInVel(int ¶m); - CTR_Code GetTemp(double ¶m); - CTR_Code GetBatteryV(double ¶m); - CTR_Code GetResetCount(int ¶m); - CTR_Code GetResetFlags(int ¶m); - CTR_Code GetFirmVers(int ¶m); - CTR_Code SetDemand(int param); - CTR_Code SetOverrideLimitSwitchEn(int param); - CTR_Code SetFeedbackDeviceSelect(int param); - CTR_Code SetRevMotDuringCloseLoopEn(int param); - CTR_Code SetOverrideBrakeType(int param); - CTR_Code SetModeSelect(int param); - CTR_Code SetModeSelect(int modeSelect, int demand); - CTR_Code SetProfileSlotSelect(int param); - CTR_Code SetRampThrottle(int param); - CTR_Code SetRevFeedbackSensor(int param); -}; -extern "C" { -void *c_TalonSRX_Create(int deviceNumber, int controlPeriodMs); -void c_TalonSRX_Destroy(void *handle); -CTR_Code c_TalonSRX_SetParam(void *handle, int paramEnum, double value); -CTR_Code c_TalonSRX_RequestParam(void *handle, int paramEnum); -CTR_Code c_TalonSRX_GetParamResponse(void *handle, int paramEnum, - double *value); -CTR_Code c_TalonSRX_GetParamResponseInt32(void *handle, int paramEnum, - int *value); -CTR_Code c_TalonSRX_SetStatusFrameRate(void *handle, unsigned frameEnum, - unsigned periodMs); -CTR_Code c_TalonSRX_ClearStickyFaults(void *handle); -CTR_Code c_TalonSRX_GetFault_OverTemp(void *handle, int *param); -CTR_Code c_TalonSRX_GetFault_UnderVoltage(void *handle, int *param); -CTR_Code c_TalonSRX_GetFault_ForLim(void *handle, int *param); -CTR_Code c_TalonSRX_GetFault_RevLim(void *handle, int *param); -CTR_Code c_TalonSRX_GetFault_HardwareFailure(void *handle, int *param); -CTR_Code c_TalonSRX_GetFault_ForSoftLim(void *handle, int *param); -CTR_Code c_TalonSRX_GetFault_RevSoftLim(void *handle, int *param); -CTR_Code c_TalonSRX_GetStckyFault_OverTemp(void *handle, int *param); -CTR_Code c_TalonSRX_GetStckyFault_UnderVoltage(void *handle, int *param); -CTR_Code c_TalonSRX_GetStckyFault_ForLim(void *handle, int *param); -CTR_Code c_TalonSRX_GetStckyFault_RevLim(void *handle, int *param); -CTR_Code c_TalonSRX_GetStckyFault_ForSoftLim(void *handle, int *param); -CTR_Code c_TalonSRX_GetStckyFault_RevSoftLim(void *handle, int *param); -CTR_Code c_TalonSRX_GetAppliedThrottle(void *handle, int *param); -CTR_Code c_TalonSRX_GetCloseLoopErr(void *handle, int *param); -CTR_Code c_TalonSRX_GetFeedbackDeviceSelect(void *handle, int *param); -CTR_Code c_TalonSRX_GetModeSelect(void *handle, int *param); -CTR_Code c_TalonSRX_GetLimitSwitchEn(void *handle, int *param); -CTR_Code c_TalonSRX_GetLimitSwitchClosedFor(void *handle, int *param); -CTR_Code c_TalonSRX_GetLimitSwitchClosedRev(void *handle, int *param); -CTR_Code c_TalonSRX_GetSensorPosition(void *handle, int *param); -CTR_Code c_TalonSRX_GetSensorVelocity(void *handle, int *param); -CTR_Code c_TalonSRX_GetCurrent(void *handle, double *param); -CTR_Code c_TalonSRX_GetBrakeIsEnabled(void *handle, int *param); -CTR_Code c_TalonSRX_GetEncPosition(void *handle, int *param); -CTR_Code c_TalonSRX_GetEncVel(void *handle, int *param); -CTR_Code c_TalonSRX_GetEncIndexRiseEvents(void *handle, int *param); -CTR_Code c_TalonSRX_GetQuadApin(void *handle, int *param); -CTR_Code c_TalonSRX_GetQuadBpin(void *handle, int *param); -CTR_Code c_TalonSRX_GetQuadIdxpin(void *handle, int *param); -CTR_Code c_TalonSRX_GetAnalogInWithOv(void *handle, int *param); -CTR_Code c_TalonSRX_GetAnalogInVel(void *handle, int *param); -CTR_Code c_TalonSRX_GetTemp(void *handle, double *param); -CTR_Code c_TalonSRX_GetBatteryV(void *handle, double *param); -CTR_Code c_TalonSRX_GetResetCount(void *handle, int *param); -CTR_Code c_TalonSRX_GetResetFlags(void *handle, int *param); -CTR_Code c_TalonSRX_GetFirmVers(void *handle, int *param); -CTR_Code c_TalonSRX_SetDemand(void *handle, int param); -CTR_Code c_TalonSRX_SetOverrideLimitSwitchEn(void *handle, int param); -CTR_Code c_TalonSRX_SetFeedbackDeviceSelect(void *handle, int param); -CTR_Code c_TalonSRX_SetRevMotDuringCloseLoopEn(void *handle, int param); -CTR_Code c_TalonSRX_SetOverrideBrakeType(void *handle, int param); -CTR_Code c_TalonSRX_SetModeSelect(void *handle, int param); -CTR_Code c_TalonSRX_SetProfileSlotSelect(void *handle, int param); -CTR_Code c_TalonSRX_SetRampThrottle(void *handle, int param); -CTR_Code c_TalonSRX_SetRevFeedbackSensor(void *handle, int param); -} -#endif diff --git a/wpilibc/wpilibC++Devices/include/ctre/CtreCanNode.h b/wpilibc/wpilibC++Devices/include/ctre/CtreCanNode.h deleted file mode 100644 index 671f4d0688..0000000000 --- a/wpilibc/wpilibC++Devices/include/ctre/CtreCanNode.h +++ /dev/null @@ -1,97 +0,0 @@ -#ifndef CtreCanNode_H_ -#define CtreCanNode_H_ -#include "ctre.h" //BIT Defines + Typedefs -#include //CAN Comm -#include -#include -#include // memcpy -#include -class CtreCanNode { - public: - CtreCanNode(UINT8 deviceNumber); - ~CtreCanNode(); - - UINT8 GetDeviceNumber() { return _deviceNumber; } - - protected: - template - class txTask { - public: - uint32_t arbId; - T *toSend; - T *operator->() { return toSend; } - T &operator*() { return *toSend; } - bool IsEmpty() { - if (toSend == 0) return true; - return false; - } - }; - template - class recMsg { - public: - uint32_t arbId; - uint8_t bytes[8]; - CTR_Code err; - T *operator->() { return (T *)bytes; } - T &operator*() { return *(T *)bytes; } - }; - UINT8 _deviceNumber; - void RegisterRx(uint32_t arbId); - void RegisterTx(uint32_t arbId, uint32_t periodMs); - - CTR_Code GetRx(uint32_t arbId, uint8_t *dataBytes, uint32_t timeoutMs); - void FlushTx(uint32_t arbId); - - template - txTask GetTx(uint32_t arbId) { - txTask retval = {0}; - txJobs_t::iterator i = _txJobs.find(arbId); - if (i != _txJobs.end()) { - retval.arbId = i->second.arbId; - retval.toSend = (T *)i->second.toSend; - } - return retval; - } - template - void FlushTx(T &par) { - FlushTx(par.arbId); - } - - template - recMsg GetRx(uint32_t arbId, uint32_t timeoutMs) { - recMsg retval; - retval.err = GetRx(arbId, retval.bytes, timeoutMs); - return retval; - } - - private: - class txJob_t { - public: - uint32_t arbId; - uint8_t toSend[8]; - uint32_t periodMs; - }; - - class rxEvent_t { - public: - uint8_t bytes[8]; - struct timespec time; - rxEvent_t() { - bytes[0] = 0; - bytes[1] = 0; - bytes[2] = 0; - bytes[3] = 0; - bytes[4] = 0; - bytes[5] = 0; - bytes[6] = 0; - bytes[7] = 0; - } - }; - - typedef std::map txJobs_t; - txJobs_t _txJobs; - - typedef std::map rxRxEvents_t; - rxRxEvents_t _rxRxEvents; -}; -#endif diff --git a/wpilibc/wpilibC++Devices/include/ctre/ctre.h b/wpilibc/wpilibC++Devices/include/ctre/ctre.h deleted file mode 100644 index 01d4c55e5e..0000000000 --- a/wpilibc/wpilibC++Devices/include/ctre/ctre.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef GLOBAL_H -#define GLOBAL_H - -// Bit Defines -#define BIT0 0x01 -#define BIT1 0x02 -#define BIT2 0x04 -#define BIT3 0x08 -#define BIT4 0x10 -#define BIT5 0x20 -#define BIT6 0x40 -#define BIT7 0x80 -#define BIT8 0x0100 -#define BIT9 0x0200 -#define BIT10 0x0400 -#define BIT11 0x0800 -#define BIT12 0x1000 -#define BIT13 0x2000 -#define BIT14 0x4000 -#define BIT15 0x8000 - -// Signed -typedef signed char INT8; -typedef signed short INT16; -typedef signed int INT32; -typedef signed long long INT64; - -// Unsigned -typedef unsigned char UINT8; -typedef unsigned short UINT16; -typedef unsigned int UINT32; -typedef unsigned long long UINT64; - -// Other -typedef unsigned char UCHAR; -typedef unsigned short USHORT; -typedef unsigned int UINT; -typedef unsigned long ULONG; - -typedef enum { - CTR_OKAY, //!< No Error - Function executed as expected - CTR_RxTimeout, //!< CAN frame has not been received within specified period - //of time. - CTR_TxTimeout, //!< Not used. - CTR_InvalidParamValue, //!< Caller passed an invalid param - CTR_UnexpectedArbId, //!< Specified CAN Id is invalid. - CTR_TxFailed, //!< Could not transmit the CAN frame. - CTR_SigNotUpdated, //!< Have not received an value response for signal. -} CTR_Code; - -#endif diff --git a/wpilibj/wpilibJavaJNI/lib/CanTalonSRXJNI.cpp b/wpilibj/wpilibJavaJNI/lib/CanTalonSRXJNI.cpp index ac7810269e..bdf64faa5a 100644 --- a/wpilibj/wpilibJavaJNI/lib/CanTalonSRXJNI.cpp +++ b/wpilibj/wpilibJavaJNI/lib/CanTalonSRXJNI.cpp @@ -163,9 +163,9 @@ template T SwigValueInit() { /* Support for throwing Java exceptions */ typedef enum { - SWIG_JavaOutOfMemoryError = 1, - SWIG_JavaIOException, - SWIG_JavaRuntimeException, + SWIG_JavaOutOfMemoryError = 1, + SWIG_JavaIOException, + SWIG_JavaRuntimeException, SWIG_JavaIndexOutOfBoundsException, SWIG_JavaArithmeticException, SWIG_JavaIllegalArgumentException, @@ -211,19 +211,19 @@ static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionC #define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else -#include "ctre/CanTalonSRX.h" +#include "HAL/CanTalonSRX.h" -static double *new_doublep() { - return new double(); +static double *new_doublep() { + return new double(); } -static double *copy_doublep(double value) { - return new double(value); +static double *copy_doublep(double value) { + return new double(value); } -static void delete_doublep(double *obj) { - if (obj) delete obj; +static void delete_doublep(double *obj) { + if (obj) delete obj; } static void doublep_assign(double *obj, double value) { @@ -235,16 +235,16 @@ static double doublep_value(double *obj) { } -static int *new_intp() { - return new int(); +static int *new_intp() { + return new int(); } -static int *copy_intp(int value) { - return new int(value); +static int *copy_intp(int value) { + return new int(value); } -static void delete_intp(int *obj) { - if (obj) delete obj; +static void delete_intp(int *obj) { + if (obj) delete obj; } static void intp_assign(int *obj, int value) { @@ -256,16 +256,16 @@ static int intp_value(int *obj) { } -static uint32_t *new_uint32_tp() { - return new uint32_t(); +static uint32_t *new_uint32_tp() { + return new uint32_t(); } -static uint32_t *copy_uint32_tp(uint32_t value) { - return new uint32_t(value); +static uint32_t *copy_uint32_tp(uint32_t value) { + return new uint32_t(value); } -static void delete_uint32_tp(uint32_t *obj) { - if (obj) delete obj; +static void delete_uint32_tp(uint32_t *obj) { + if (obj) delete obj; } static void uint32_tp_assign(uint32_t *obj, uint32_t value) { @@ -277,16 +277,16 @@ static uint32_t uint32_tp_value(uint32_t *obj) { } -static int32_t *new_int32_tp() { - return new int32_t(); +static int32_t *new_int32_tp() { + return new int32_t(); } -static int32_t *copy_int32_tp(int32_t value) { - return new int32_t(value); +static int32_t *copy_int32_tp(int32_t value) { + return new int32_t(value); } -static void delete_int32_tp(int32_t *obj) { - if (obj) delete obj; +static void delete_int32_tp(int32_t *obj) { + if (obj) delete obj; } static void int32_tp_assign(int32_t *obj, int32_t value) { @@ -298,16 +298,16 @@ static int32_t int32_tp_value(int32_t *obj) { } -static uint8_t *new_uint8_tp() { - return new uint8_t(); +static uint8_t *new_uint8_tp() { + return new uint8_t(); } -static uint8_t *copy_uint8_tp(uint8_t value) { - return new uint8_t(value); +static uint8_t *copy_uint8_tp(uint8_t value) { + return new uint8_t(value); } -static void delete_uint8_tp(uint8_t *obj) { - if (obj) delete obj; +static void delete_uint8_tp(uint8_t *obj) { + if (obj) delete obj; } static void uint8_tp_assign(uint8_t *obj, uint8_t value) { @@ -319,16 +319,16 @@ static uint8_t uint8_tp_value(uint8_t *obj) { } -static CTR_Code *new_CTR_Codep() { - return new CTR_Code(); +static CTR_Code *new_CTR_Codep() { + return new CTR_Code(); } -static CTR_Code *copy_CTR_Codep(CTR_Code value) { - return new CTR_Code(value); +static CTR_Code *copy_CTR_Codep(CTR_Code value) { + return new CTR_Code(value); } -static void delete_CTR_Codep(CTR_Code *obj) { - if (obj) delete obj; +static void delete_CTR_Codep(CTR_Code *obj) { + if (obj) delete obj; } static void CTR_Codep_assign(CTR_Code *obj, CTR_Code value) { @@ -340,16 +340,16 @@ static CTR_Code CTR_Codep_value(CTR_Code *obj) { } -static float *new_floatp() { - return new float(); +static float *new_floatp() { + return new float(); } -static float *copy_floatp(float value) { - return new float(value); +static float *copy_floatp(float value) { + return new float(value); } -static void delete_floatp(float *obj) { - if (obj) delete obj; +static void delete_floatp(float *obj) { + if (obj) delete obj; } static void floatp_assign(float *obj, float value) { @@ -368,11 +368,11 @@ extern "C" { SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_new_1doublep(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; double *result = 0 ; - + (void)jenv; (void)jcls; result = (double *)new_doublep(); - *(double **)&jresult = result; + *(double **)&jresult = result; return jresult; } @@ -381,22 +381,22 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_copy_1double jlong jresult = 0 ; double arg1 ; double *result = 0 ; - + (void)jenv; (void)jcls; - arg1 = (double)jarg1; + arg1 = (double)jarg1; result = (double *)copy_doublep(arg1); - *(double **)&jresult = result; + *(double **)&jresult = result; return jresult; } SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_delete_1doublep(JNIEnv *jenv, jclass jcls, jlong jarg1) { double *arg1 = (double *) 0 ; - + (void)jenv; (void)jcls; - arg1 = *(double **)&jarg1; + arg1 = *(double **)&jarg1; delete_doublep(arg1); } @@ -404,11 +404,11 @@ SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_delete_1doubl SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_doublep_1assign(JNIEnv *jenv, jclass jcls, jlong jarg1, jdouble jarg2) { double *arg1 = (double *) 0 ; double arg2 ; - + (void)jenv; (void)jcls; - arg1 = *(double **)&jarg1; - arg2 = (double)jarg2; + arg1 = *(double **)&jarg1; + arg2 = (double)jarg2; doublep_assign(arg1,arg2); } @@ -417,12 +417,12 @@ SWIGEXPORT jdouble JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_doublep_1v jdouble jresult = 0 ; double *arg1 = (double *) 0 ; double result; - + (void)jenv; (void)jcls; - arg1 = *(double **)&jarg1; + arg1 = *(double **)&jarg1; result = (double)doublep_value(arg1); - jresult = (jdouble)result; + jresult = (jdouble)result; return jresult; } @@ -430,11 +430,11 @@ SWIGEXPORT jdouble JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_doublep_1v SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_new_1intp(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; int *result = 0 ; - + (void)jenv; (void)jcls; result = (int *)new_intp(); - *(int **)&jresult = result; + *(int **)&jresult = result; return jresult; } @@ -443,22 +443,22 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_copy_1intp(J jlong jresult = 0 ; int arg1 ; int *result = 0 ; - + (void)jenv; (void)jcls; - arg1 = (int)jarg1; + arg1 = (int)jarg1; result = (int *)copy_intp(arg1); - *(int **)&jresult = result; + *(int **)&jresult = result; return jresult; } SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_delete_1intp(JNIEnv *jenv, jclass jcls, jlong jarg1) { int *arg1 = (int *) 0 ; - + (void)jenv; (void)jcls; - arg1 = *(int **)&jarg1; + arg1 = *(int **)&jarg1; delete_intp(arg1); } @@ -466,11 +466,11 @@ SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_delete_1intp( SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_intp_1assign(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) { int *arg1 = (int *) 0 ; int arg2 ; - + (void)jenv; (void)jcls; - arg1 = *(int **)&jarg1; - arg2 = (int)jarg2; + arg1 = *(int **)&jarg1; + arg2 = (int)jarg2; intp_assign(arg1,arg2); } @@ -479,12 +479,12 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_intp_1value(J jint jresult = 0 ; int *arg1 = (int *) 0 ; int result; - + (void)jenv; (void)jcls; - arg1 = *(int **)&jarg1; + arg1 = *(int **)&jarg1; result = (int)intp_value(arg1); - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -492,11 +492,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_intp_1value(J SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_new_1uint32_1tp(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; uint32_t *result = 0 ; - + (void)jenv; (void)jcls; result = (uint32_t *)new_uint32_tp(); - *(uint32_t **)&jresult = result; + *(uint32_t **)&jresult = result; return jresult; } @@ -506,27 +506,27 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_copy_1uint32 uint32_t arg1 ; uint32_t *argp1 ; uint32_t *result = 0 ; - + (void)jenv; (void)jcls; - argp1 = *(uint32_t **)&jarg1; + argp1 = *(uint32_t **)&jarg1; if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null uint32_t"); return 0; } - arg1 = *argp1; + arg1 = *argp1; result = (uint32_t *)copy_uint32_tp(arg1); - *(uint32_t **)&jresult = result; + *(uint32_t **)&jresult = result; return jresult; } SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_delete_1uint32_1tp(JNIEnv *jenv, jclass jcls, jlong jarg1) { uint32_t *arg1 = (uint32_t *) 0 ; - + (void)jenv; (void)jcls; - arg1 = *(uint32_t **)&jarg1; + arg1 = *(uint32_t **)&jarg1; delete_uint32_tp(arg1); } @@ -535,16 +535,16 @@ SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_uint32_1tp_1a uint32_t *arg1 = (uint32_t *) 0 ; uint32_t arg2 ; uint32_t *argp2 ; - + (void)jenv; (void)jcls; - arg1 = *(uint32_t **)&jarg1; - argp2 = *(uint32_t **)&jarg2; + arg1 = *(uint32_t **)&jarg1; + argp2 = *(uint32_t **)&jarg2; if (!argp2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null uint32_t"); return ; } - arg2 = *argp2; + arg2 = *argp2; uint32_tp_assign(arg1,arg2); } @@ -553,12 +553,12 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_uint32_1tp_1 jlong jresult = 0 ; uint32_t *arg1 = (uint32_t *) 0 ; uint32_t result; - + (void)jenv; (void)jcls; - arg1 = *(uint32_t **)&jarg1; + arg1 = *(uint32_t **)&jarg1; result = uint32_tp_value(arg1); - *(uint32_t **)&jresult = new uint32_t((const uint32_t &)result); + *(uint32_t **)&jresult = new uint32_t((const uint32_t &)result); return jresult; } @@ -566,11 +566,11 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_uint32_1tp_1 SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_new_1int32_1tp(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; int32_t *result = 0 ; - + (void)jenv; (void)jcls; result = (int32_t *)new_int32_tp(); - *(int32_t **)&jresult = result; + *(int32_t **)&jresult = result; return jresult; } @@ -580,27 +580,27 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_copy_1int32_ int32_t arg1 ; int32_t *argp1 ; int32_t *result = 0 ; - + (void)jenv; (void)jcls; - argp1 = *(int32_t **)&jarg1; + argp1 = *(int32_t **)&jarg1; if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null int32_t"); return 0; } - arg1 = *argp1; + arg1 = *argp1; result = (int32_t *)copy_int32_tp(arg1); - *(int32_t **)&jresult = result; + *(int32_t **)&jresult = result; return jresult; } SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_delete_1int32_1tp(JNIEnv *jenv, jclass jcls, jlong jarg1) { int32_t *arg1 = (int32_t *) 0 ; - + (void)jenv; (void)jcls; - arg1 = *(int32_t **)&jarg1; + arg1 = *(int32_t **)&jarg1; delete_int32_tp(arg1); } @@ -609,16 +609,16 @@ SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_int32_1tp_1as int32_t *arg1 = (int32_t *) 0 ; int32_t arg2 ; int32_t *argp2 ; - + (void)jenv; (void)jcls; - arg1 = *(int32_t **)&jarg1; - argp2 = *(int32_t **)&jarg2; + arg1 = *(int32_t **)&jarg1; + argp2 = *(int32_t **)&jarg2; if (!argp2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null int32_t"); return ; } - arg2 = *argp2; + arg2 = *argp2; int32_tp_assign(arg1,arg2); } @@ -627,12 +627,12 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_int32_1tp_1v jlong jresult = 0 ; int32_t *arg1 = (int32_t *) 0 ; int32_t result; - + (void)jenv; (void)jcls; - arg1 = *(int32_t **)&jarg1; + arg1 = *(int32_t **)&jarg1; result = int32_tp_value(arg1); - *(int32_t **)&jresult = new int32_t((const int32_t &)result); + *(int32_t **)&jresult = new int32_t((const int32_t &)result); return jresult; } @@ -640,11 +640,11 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_int32_1tp_1v SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_new_1uint8_1tp(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; uint8_t *result = 0 ; - + (void)jenv; (void)jcls; result = (uint8_t *)new_uint8_tp(); - *(uint8_t **)&jresult = result; + *(uint8_t **)&jresult = result; return jresult; } @@ -654,27 +654,27 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_copy_1uint8_ uint8_t arg1 ; uint8_t *argp1 ; uint8_t *result = 0 ; - + (void)jenv; (void)jcls; - argp1 = *(uint8_t **)&jarg1; + argp1 = *(uint8_t **)&jarg1; if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null uint8_t"); return 0; } - arg1 = *argp1; + arg1 = *argp1; result = (uint8_t *)copy_uint8_tp(arg1); - *(uint8_t **)&jresult = result; + *(uint8_t **)&jresult = result; return jresult; } SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_delete_1uint8_1tp(JNIEnv *jenv, jclass jcls, jlong jarg1) { uint8_t *arg1 = (uint8_t *) 0 ; - + (void)jenv; (void)jcls; - arg1 = *(uint8_t **)&jarg1; + arg1 = *(uint8_t **)&jarg1; delete_uint8_tp(arg1); } @@ -683,16 +683,16 @@ SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_uint8_1tp_1as uint8_t *arg1 = (uint8_t *) 0 ; uint8_t arg2 ; uint8_t *argp2 ; - + (void)jenv; (void)jcls; - arg1 = *(uint8_t **)&jarg1; - argp2 = *(uint8_t **)&jarg2; + arg1 = *(uint8_t **)&jarg1; + argp2 = *(uint8_t **)&jarg2; if (!argp2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null uint8_t"); return ; } - arg2 = *argp2; + arg2 = *argp2; uint8_tp_assign(arg1,arg2); } @@ -701,12 +701,12 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_uint8_1tp_1v jlong jresult = 0 ; uint8_t *arg1 = (uint8_t *) 0 ; uint8_t result; - + (void)jenv; (void)jcls; - arg1 = *(uint8_t **)&jarg1; + arg1 = *(uint8_t **)&jarg1; result = uint8_tp_value(arg1); - *(uint8_t **)&jresult = new uint8_t((const uint8_t &)result); + *(uint8_t **)&jresult = new uint8_t((const uint8_t &)result); return jresult; } @@ -714,11 +714,11 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_uint8_1tp_1v SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_new_1CTR_1Codep(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; CTR_Code *result = 0 ; - + (void)jenv; (void)jcls; result = (CTR_Code *)new_CTR_Codep(); - *(CTR_Code **)&jresult = result; + *(CTR_Code **)&jresult = result; return jresult; } @@ -728,27 +728,27 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_copy_1CTR_1C CTR_Code arg1 ; CTR_Code *argp1 ; CTR_Code *result = 0 ; - + (void)jenv; (void)jcls; - argp1 = *(CTR_Code **)&jarg1; + argp1 = *(CTR_Code **)&jarg1; if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null CTR_Code"); return 0; } - arg1 = *argp1; + arg1 = *argp1; result = (CTR_Code *)copy_CTR_Codep(arg1); - *(CTR_Code **)&jresult = result; + *(CTR_Code **)&jresult = result; return jresult; } SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_delete_1CTR_1Codep(JNIEnv *jenv, jclass jcls, jlong jarg1) { CTR_Code *arg1 = (CTR_Code *) 0 ; - + (void)jenv; (void)jcls; - arg1 = *(CTR_Code **)&jarg1; + arg1 = *(CTR_Code **)&jarg1; delete_CTR_Codep(arg1); } @@ -757,16 +757,16 @@ SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CTR_1Codep_1a CTR_Code *arg1 = (CTR_Code *) 0 ; CTR_Code arg2 ; CTR_Code *argp2 ; - + (void)jenv; (void)jcls; - arg1 = *(CTR_Code **)&jarg1; - argp2 = *(CTR_Code **)&jarg2; + arg1 = *(CTR_Code **)&jarg1; + argp2 = *(CTR_Code **)&jarg2; if (!argp2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null CTR_Code"); return ; } - arg2 = *argp2; + arg2 = *argp2; CTR_Codep_assign(arg1,arg2); } @@ -775,12 +775,12 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CTR_1Codep_1 jlong jresult = 0 ; CTR_Code *arg1 = (CTR_Code *) 0 ; CTR_Code result; - + (void)jenv; (void)jcls; - arg1 = *(CTR_Code **)&jarg1; + arg1 = *(CTR_Code **)&jarg1; result = CTR_Codep_value(arg1); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -788,11 +788,11 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CTR_1Codep_1 SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_new_1floatp(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; float *result = 0 ; - + (void)jenv; (void)jcls; result = (float *)new_floatp(); - *(float **)&jresult = result; + *(float **)&jresult = result; return jresult; } @@ -801,22 +801,22 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_copy_1floatp jlong jresult = 0 ; float arg1 ; float *result = 0 ; - + (void)jenv; (void)jcls; - arg1 = (float)jarg1; + arg1 = (float)jarg1; result = (float *)copy_floatp(arg1); - *(float **)&jresult = result; + *(float **)&jresult = result; return jresult; } SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_delete_1floatp(JNIEnv *jenv, jclass jcls, jlong jarg1) { float *arg1 = (float *) 0 ; - + (void)jenv; (void)jcls; - arg1 = *(float **)&jarg1; + arg1 = *(float **)&jarg1; delete_floatp(arg1); } @@ -824,11 +824,11 @@ SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_delete_1float SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_floatp_1assign(JNIEnv *jenv, jclass jcls, jlong jarg1, jfloat jarg2) { float *arg1 = (float *) 0 ; float arg2 ; - + (void)jenv; (void)jcls; - arg1 = *(float **)&jarg1; - arg2 = (float)jarg2; + arg1 = *(float **)&jarg1; + arg2 = (float)jarg2; floatp_assign(arg1,arg2); } @@ -837,12 +837,12 @@ SWIGEXPORT jfloat JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_floatp_1val jfloat jresult = 0 ; float *arg1 = (float *) 0 ; float result; - + (void)jenv; (void)jcls; - arg1 = *(float **)&jarg1; + arg1 = *(float **)&jarg1; result = (float)floatp_value(arg1); - jresult = (jfloat)result; + jresult = (jfloat)result; return jresult; } @@ -852,27 +852,27 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_new_1CtreCan UINT8 arg1 ; UINT8 *argp1 ; CtreCanNode *result = 0 ; - + (void)jenv; (void)jcls; - argp1 = *(UINT8 **)&jarg1; + argp1 = *(UINT8 **)&jarg1; if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null UINT8"); return 0; } - arg1 = *argp1; + arg1 = *argp1; result = (CtreCanNode *)new CtreCanNode(arg1); - *(CtreCanNode **)&jresult = result; + *(CtreCanNode **)&jresult = result; return jresult; } SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_delete_1CtreCanNode(JNIEnv *jenv, jclass jcls, jlong jarg1) { CtreCanNode *arg1 = (CtreCanNode *) 0 ; - + (void)jenv; (void)jcls; - arg1 = *(CtreCanNode **)&jarg1; + arg1 = *(CtreCanNode **)&jarg1; delete arg1; } @@ -881,13 +881,13 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CtreCanNode_ jlong jresult = 0 ; CtreCanNode *arg1 = (CtreCanNode *) 0 ; UINT8 result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CtreCanNode **)&jarg1; + arg1 = *(CtreCanNode **)&jarg1; result = (arg1)->GetDeviceNumber(); - *(UINT8 **)&jresult = new UINT8((const UINT8 &)result); + *(UINT8 **)&jresult = new UINT8((const UINT8 &)result); return jresult; } @@ -895,11 +895,11 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CtreCanNode_ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kDefaultControlPeriodMs_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kDefaultControlPeriodMs; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -909,13 +909,13 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_new_1CanTalo int arg1 ; int arg2 ; CanTalonSRX *result = 0 ; - + (void)jenv; (void)jcls; - arg1 = (int)jarg1; - arg2 = (int)jarg2; + arg1 = (int)jarg1; + arg2 = (int)jarg2; result = (CanTalonSRX *)new CanTalonSRX(arg1,arg2); - *(CanTalonSRX **)&jresult = result; + *(CanTalonSRX **)&jresult = result; return jresult; } @@ -924,12 +924,12 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_new_1CanTalo jlong jresult = 0 ; int arg1 ; CanTalonSRX *result = 0 ; - + (void)jenv; (void)jcls; - arg1 = (int)jarg1; + arg1 = (int)jarg1; result = (CanTalonSRX *)new CanTalonSRX(arg1); - *(CanTalonSRX **)&jresult = result; + *(CanTalonSRX **)&jresult = result; return jresult; } @@ -937,21 +937,21 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_new_1CanTalo SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_new_1CanTalonSRX_1_1SWIG_12(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; CanTalonSRX *result = 0 ; - + (void)jenv; (void)jcls; result = (CanTalonSRX *)new CanTalonSRX(); - *(CanTalonSRX **)&jresult = result; + *(CanTalonSRX **)&jresult = result; return jresult; } SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_delete_1CanTalonSRX(JNIEnv *jenv, jclass jcls, jlong jarg1) { CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; - + (void)jenv; (void)jcls; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; delete arg1; } @@ -959,12 +959,12 @@ SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_delete_1CanTa SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1Set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2) { CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; double arg2 ; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (double)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (double)jarg2; (arg1)->Set(arg2); } @@ -972,11 +972,11 @@ SWIGEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kMode_1DutyCycle_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kMode_DutyCycle; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -984,11 +984,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kMode_1PositionCloseLoop_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kMode_PositionCloseLoop; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -996,11 +996,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kMode_1VelocityCloseLoop_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kMode_VelocityCloseLoop; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1008,11 +1008,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kMode_1CurrentCloseLoop_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kMode_CurrentCloseLoop; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1020,11 +1020,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kMode_1VoltCompen_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kMode_VoltCompen; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1032,11 +1032,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kMode_1SlaveFollower_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kMode_SlaveFollower; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1044,11 +1044,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kMode_1NoDrive_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kMode_NoDrive; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1056,11 +1056,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kLimitSwitchOverride_1UseDefaultsFromFlash_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kLimitSwitchOverride_UseDefaultsFromFlash; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1068,11 +1068,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kLimitSwitchOverride_1DisableFwd_1DisableRev_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kLimitSwitchOverride_DisableFwd_DisableRev; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1080,11 +1080,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kLimitSwitchOverride_1DisableFwd_1EnableRev_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kLimitSwitchOverride_DisableFwd_EnableRev; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1092,11 +1092,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kLimitSwitchOverride_1EnableFwd_1DisableRev_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kLimitSwitchOverride_EnableFwd_DisableRev; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1104,11 +1104,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kLimitSwitchOverride_1EnableFwd_1EnableRev_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kLimitSwitchOverride_EnableFwd_EnableRev; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1116,11 +1116,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kBrakeOverride_1UseDefaultsFromFlash_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kBrakeOverride_UseDefaultsFromFlash; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1128,11 +1128,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kBrakeOverride_1OverrideCoast_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kBrakeOverride_OverrideCoast; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1140,11 +1140,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kBrakeOverride_1OverrideBrake_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kBrakeOverride_OverrideBrake; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1152,11 +1152,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kFeedbackDev_1DigitalQuadEnc_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kFeedbackDev_DigitalQuadEnc; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1164,11 +1164,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kFeedbackDev_1AnalogPot_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kFeedbackDev_AnalogPot; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1176,11 +1176,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kFeedbackDev_1AnalogEncoder_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kFeedbackDev_AnalogEncoder; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1188,11 +1188,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kFeedbackDev_1CountEveryRisingEdge_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kFeedbackDev_CountEveryRisingEdge; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1200,11 +1200,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kFeedbackDev_1CountEveryFallingEdge_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kFeedbackDev_CountEveryFallingEdge; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1212,11 +1212,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kFeedbackDev_1PosIsPulseWidth_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kFeedbackDev_PosIsPulseWidth; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1224,11 +1224,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kProfileSlotSelect_1Slot0_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kProfileSlotSelect_Slot0; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1236,11 +1236,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kProfileSlotSelect_1Slot1_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kProfileSlotSelect_Slot1; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1248,11 +1248,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kStatusFrame_1General_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kStatusFrame_General; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1260,11 +1260,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kStatusFrame_1Feedback_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kStatusFrame_Feedback; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1272,11 +1272,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kStatusFrame_1Encoder_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kStatusFrame_Encoder; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1284,11 +1284,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1kStatusFrame_1AnalogTempVbat_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; - + (void)jenv; (void)jcls; result = (int)CanTalonSRX::kStatusFrame_AnalogTempVbat; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1296,11 +1296,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileParamSlot0_1P_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileParamSlot0_P; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1308,11 +1308,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileParamSlot0_1I_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileParamSlot0_I; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1320,11 +1320,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileParamSlot0_1D_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileParamSlot0_D; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1332,11 +1332,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileParamSlot0_1F_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileParamSlot0_F; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1344,11 +1344,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileParamSlot0_1IZone_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileParamSlot0_IZone; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1356,11 +1356,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileParamSlot0_1CloseLoopRampRate_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileParamSlot0_CloseLoopRampRate; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1368,11 +1368,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileParamSlot1_1P_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileParamSlot1_P; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1380,11 +1380,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileParamSlot1_1I_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileParamSlot1_I; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1392,11 +1392,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileParamSlot1_1D_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileParamSlot1_D; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1404,11 +1404,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileParamSlot1_1F_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileParamSlot1_F; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1416,11 +1416,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileParamSlot1_1IZone_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileParamSlot1_IZone; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1428,11 +1428,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileParamSlot1_1CloseLoopRampRate_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileParamSlot1_CloseLoopRampRate; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1440,11 +1440,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileParamSoftLimitForThreshold_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileParamSoftLimitForThreshold; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1452,11 +1452,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileParamSoftLimitRevThreshold_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileParamSoftLimitRevThreshold; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1464,11 +1464,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileParamSoftLimitForEnable_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileParamSoftLimitForEnable; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1476,11 +1476,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileParamSoftLimitRevEnable_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileParamSoftLimitRevEnable; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1488,11 +1488,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eOnBoot_1BrakeMode_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eOnBoot_BrakeMode; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1500,11 +1500,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eOnBoot_1LimitSwitch_1Forward_1NormallyClosed_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eOnBoot_LimitSwitch_Forward_NormallyClosed; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1512,11 +1512,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eOnBoot_1LimitSwitch_1Reverse_1NormallyClosed_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eOnBoot_LimitSwitch_Reverse_NormallyClosed; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1524,11 +1524,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eOnBoot_1LimitSwitch_1Forward_1Disable_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eOnBoot_LimitSwitch_Forward_Disable; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1536,11 +1536,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eOnBoot_1LimitSwitch_1Reverse_1Disable_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eOnBoot_LimitSwitch_Reverse_Disable; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1548,11 +1548,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eFault_1OverTemp_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eFault_OverTemp; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1560,11 +1560,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eFault_1UnderVoltage_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eFault_UnderVoltage; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1572,11 +1572,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eFault_1ForLim_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eFault_ForLim; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1584,11 +1584,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eFault_1RevLim_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eFault_RevLim; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1596,11 +1596,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eFault_1HardwareFailure_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eFault_HardwareFailure; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1608,11 +1608,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eFault_1ForSoftLim_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eFault_ForSoftLim; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1620,11 +1620,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eFault_1RevSoftLim_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eFault_RevSoftLim; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1632,11 +1632,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eStckyFault_1OverTemp_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eStckyFault_OverTemp; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1644,11 +1644,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eStckyFault_1UnderVoltage_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eStckyFault_UnderVoltage; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1656,11 +1656,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eStckyFault_1ForLim_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eStckyFault_ForLim; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1668,11 +1668,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eStckyFault_1RevLim_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eStckyFault_RevLim; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1680,11 +1680,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eStckyFault_1ForSoftLim_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eStckyFault_ForSoftLim; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1692,11 +1692,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eStckyFault_1RevSoftLim_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eStckyFault_RevSoftLim; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1704,11 +1704,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eAppliedThrottle_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eAppliedThrottle; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1716,11 +1716,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eCloseLoopErr_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eCloseLoopErr; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1728,11 +1728,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eFeedbackDeviceSelect_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eFeedbackDeviceSelect; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1740,11 +1740,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eRevMotDuringCloseLoopEn_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eRevMotDuringCloseLoopEn; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1752,11 +1752,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eModeSelect_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eModeSelect; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1764,11 +1764,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eProfileSlotSelect_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eProfileSlotSelect; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1776,11 +1776,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eRampThrottle_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eRampThrottle; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1788,11 +1788,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eRevFeedbackSensor_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eRevFeedbackSensor; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1800,11 +1800,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eLimitSwitchEn_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eLimitSwitchEn; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1812,11 +1812,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eLimitSwitchClosedFor_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eLimitSwitchClosedFor; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1824,11 +1824,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eLimitSwitchClosedRev_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eLimitSwitchClosedRev; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1836,11 +1836,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eSensorPosition_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eSensorPosition; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1848,11 +1848,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eSensorVelocity_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eSensorVelocity; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1860,11 +1860,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eCurrent_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eCurrent; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1872,11 +1872,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eBrakeIsEnabled_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eBrakeIsEnabled; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1884,11 +1884,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eEncPosition_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eEncPosition; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1896,11 +1896,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eEncVel_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eEncVel; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1908,11 +1908,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eEncIndexRiseEvents_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eEncIndexRiseEvents; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1920,11 +1920,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eQuadApin_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eQuadApin; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1932,11 +1932,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eQuadBpin_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eQuadBpin; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1944,11 +1944,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eQuadIdxpin_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eQuadIdxpin; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1956,11 +1956,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eAnalogInWithOv_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eAnalogInWithOv; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1968,11 +1968,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eAnalogInVel_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eAnalogInVel; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1980,11 +1980,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eTemp_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eTemp; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -1992,11 +1992,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eBatteryV_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eBatteryV; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -2004,11 +2004,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eResetCount_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eResetCount; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -2016,11 +2016,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eResetFlags_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eResetFlags; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -2028,11 +2028,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eFirmVers_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eFirmVers; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -2040,11 +2040,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eSettingsChanged_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eSettingsChanged; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -2052,11 +2052,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1eQuadFilterEn_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::eQuadFilterEn; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -2064,11 +2064,11 @@ SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1 SWIGEXPORT jint JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_1ePidIaccum_1get(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; CanTalonSRX::_param_t result; - + (void)jenv; (void)jcls; result = (CanTalonSRX::_param_t)CanTalonSRX::ePidIaccum; - jresult = (jint)result; + jresult = (jint)result; return jresult; } @@ -2079,15 +2079,15 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX::param_t arg2 ; double arg3 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (CanTalonSRX::param_t)jarg2; - arg3 = (double)jarg3; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (CanTalonSRX::param_t)jarg2; + arg3 = (double)jarg3; result = (arg1)->SetParam(arg2,arg3); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2097,14 +2097,14 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; CanTalonSRX::param_t arg2 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (CanTalonSRX::param_t)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (CanTalonSRX::param_t)jarg2; result = (arg1)->RequestParam(arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2115,19 +2115,19 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX::param_t arg2 ; double *arg3 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (CanTalonSRX::param_t)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (CanTalonSRX::param_t)jarg2; arg3 = *(double **)&jarg3; if (!arg3) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "double & reference is null"); return 0; - } + } result = (arg1)->GetParamResponse(arg2,*arg3); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2138,19 +2138,19 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX::param_t arg2 ; int *arg3 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (CanTalonSRX::param_t)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (CanTalonSRX::param_t)jarg2; arg3 = *(int **)&jarg3; if (!arg3) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetParamResponseInt32(arg2,*arg3); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2161,15 +2161,15 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ unsigned int arg2 ; double arg3 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (unsigned int)jarg2; - arg3 = (double)jarg3; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (double)jarg3; result = (arg1)->SetPgain(arg2,arg3); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2180,15 +2180,15 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ unsigned int arg2 ; double arg3 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (unsigned int)jarg2; - arg3 = (double)jarg3; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (double)jarg3; result = (arg1)->SetIgain(arg2,arg3); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2199,15 +2199,15 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ unsigned int arg2 ; double arg3 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (unsigned int)jarg2; - arg3 = (double)jarg3; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (double)jarg3; result = (arg1)->SetDgain(arg2,arg3); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2218,15 +2218,15 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ unsigned int arg2 ; double arg3 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (unsigned int)jarg2; - arg3 = (double)jarg3; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (double)jarg3; result = (arg1)->SetFgain(arg2,arg3); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2237,15 +2237,15 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ unsigned int arg2 ; int arg3 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (unsigned int)jarg2; - arg3 = (int)jarg3; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (int)jarg3; result = (arg1)->SetIzone(arg2,arg3); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2256,15 +2256,15 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ unsigned int arg2 ; int arg3 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (unsigned int)jarg2; - arg3 = (int)jarg3; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (int)jarg3; result = (arg1)->SetCloseLoopRampRate(arg2,arg3); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2274,14 +2274,14 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int arg2 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (int)jarg2; result = (arg1)->SetSensorPosition(arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2291,14 +2291,14 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int arg2 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (int)jarg2; result = (arg1)->SetForwardSoftLimit(arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2308,14 +2308,14 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int arg2 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (int)jarg2; result = (arg1)->SetReverseSoftLimit(arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2325,14 +2325,14 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int arg2 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (int)jarg2; result = (arg1)->SetForwardSoftEnable(arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2342,14 +2342,14 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int arg2 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (int)jarg2; result = (arg1)->SetReverseSoftEnable(arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2360,19 +2360,19 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ unsigned int arg2 ; double *arg3 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (unsigned int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (unsigned int)jarg2; arg3 = *(double **)&jarg3; if (!arg3) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "double & reference is null"); return 0; - } + } result = (arg1)->GetPgain(arg2,*arg3); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2383,19 +2383,19 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ unsigned int arg2 ; double *arg3 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (unsigned int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (unsigned int)jarg2; arg3 = *(double **)&jarg3; if (!arg3) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "double & reference is null"); return 0; - } + } result = (arg1)->GetIgain(arg2,*arg3); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2406,19 +2406,19 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ unsigned int arg2 ; double *arg3 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (unsigned int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (unsigned int)jarg2; arg3 = *(double **)&jarg3; if (!arg3) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "double & reference is null"); return 0; - } + } result = (arg1)->GetDgain(arg2,*arg3); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2429,19 +2429,19 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ unsigned int arg2 ; double *arg3 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (unsigned int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (unsigned int)jarg2; arg3 = *(double **)&jarg3; if (!arg3) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "double & reference is null"); return 0; - } + } result = (arg1)->GetFgain(arg2,*arg3); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2452,19 +2452,19 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ unsigned int arg2 ; int *arg3 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (unsigned int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (unsigned int)jarg2; arg3 = *(int **)&jarg3; if (!arg3) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetIzone(arg2,*arg3); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2475,19 +2475,19 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ unsigned int arg2 ; int *arg3 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (unsigned int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (unsigned int)jarg2; arg3 = *(int **)&jarg3; if (!arg3) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetCloseLoopRampRate(arg2,*arg3); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2497,18 +2497,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetForwardSoftLimit(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2518,18 +2518,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetReverseSoftLimit(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2539,18 +2539,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetForwardSoftEnable(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2560,18 +2560,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetReverseSoftEnable(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2582,15 +2582,15 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ unsigned int arg2 ; unsigned int arg3 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (unsigned int)jarg2; - arg3 = (unsigned int)jarg3; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; result = (arg1)->SetStatusFrameRate(arg2,arg3); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2599,13 +2599,13 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ jlong jresult = 0 ; CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; result = (arg1)->ClearStickyFaults(); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2615,18 +2615,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetFault_OverTemp(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2636,18 +2636,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetFault_UnderVoltage(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2657,18 +2657,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetFault_ForLim(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2678,18 +2678,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetFault_RevLim(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2699,18 +2699,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetFault_HardwareFailure(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2720,18 +2720,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetFault_ForSoftLim(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2741,18 +2741,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetFault_RevSoftLim(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2762,18 +2762,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetStckyFault_OverTemp(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2783,18 +2783,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetStckyFault_UnderVoltage(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2804,18 +2804,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetStckyFault_ForLim(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2825,18 +2825,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetStckyFault_RevLim(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2846,18 +2846,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetStckyFault_ForSoftLim(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2867,18 +2867,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetStckyFault_RevSoftLim(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2888,18 +2888,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetAppliedThrottle(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2909,18 +2909,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetCloseLoopErr(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2930,18 +2930,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetFeedbackDeviceSelect(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2951,18 +2951,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetModeSelect(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2972,18 +2972,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetLimitSwitchEn(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -2993,18 +2993,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetLimitSwitchClosedFor(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3014,18 +3014,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetLimitSwitchClosedRev(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3035,18 +3035,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetSensorPosition(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3056,18 +3056,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetSensorVelocity(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3077,18 +3077,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; double *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(double **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "double & reference is null"); return 0; - } + } result = (arg1)->GetCurrent(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3098,18 +3098,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetBrakeIsEnabled(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3119,18 +3119,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetEncPosition(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3140,18 +3140,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetEncVel(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3161,18 +3161,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetEncIndexRiseEvents(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3182,18 +3182,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetQuadApin(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3203,18 +3203,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetQuadBpin(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3224,18 +3224,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetQuadIdxpin(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3245,18 +3245,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetAnalogInWithOv(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3266,18 +3266,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetAnalogInVel(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3287,18 +3287,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; double *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(double **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "double & reference is null"); return 0; - } + } result = (arg1)->GetTemp(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3308,18 +3308,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; double *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(double **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "double & reference is null"); return 0; - } + } result = (arg1)->GetBatteryV(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3329,18 +3329,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetResetCount(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3350,18 +3350,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetResetFlags(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3371,18 +3371,18 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int *arg2 = 0 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; + arg1 = *(CanTalonSRX **)&jarg1; arg2 = *(int **)&jarg2; if (!arg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "int & reference is null"); return 0; - } + } result = (arg1)->GetFirmVers(*arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3392,14 +3392,14 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int arg2 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (int)jarg2; result = (arg1)->SetDemand(arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3409,14 +3409,14 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int arg2 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (int)jarg2; result = (arg1)->SetOverrideLimitSwitchEn(arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3426,14 +3426,14 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int arg2 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (int)jarg2; result = (arg1)->SetFeedbackDeviceSelect(arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3443,14 +3443,14 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int arg2 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (int)jarg2; result = (arg1)->SetRevMotDuringCloseLoopEn(arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3460,14 +3460,14 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int arg2 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (int)jarg2; result = (arg1)->SetOverrideBrakeType(arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3477,14 +3477,14 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int arg2 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (int)jarg2; result = (arg1)->SetModeSelect(arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3494,14 +3494,14 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int arg2 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (int)jarg2; result = (arg1)->SetProfileSlotSelect(arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3511,14 +3511,14 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int arg2 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (int)jarg2; result = (arg1)->SetRampThrottle(arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; } @@ -3528,14 +3528,14 @@ SWIGEXPORT jlong JNICALL Java_edu_wpi_first_wpilibj_hal_CanTalonJNI_CanTalonSRX_ CanTalonSRX *arg1 = (CanTalonSRX *) 0 ; int arg2 ; CTR_Code result; - + (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(CanTalonSRX **)&jarg1; - arg2 = (int)jarg2; + arg1 = *(CanTalonSRX **)&jarg1; + arg2 = (int)jarg2; result = (arg1)->SetRevFeedbackSensor(arg2); - *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); + *(CTR_Code **)&jresult = new CTR_Code((const CTR_Code &)result); return jresult; }