Package com.ctre.phoenixpro.controls.jni
Class ControlJNI
java.lang.Object
com.ctre.phoenixpro.controls.jni.ControlJNI
public class ControlJNI extends Object
-
Constructor Summary
Constructors Constructor Description ControlJNI()
-
Method Summary
Modifier and Type Method Description static int
JNI_RequestConfigApply(String canbus, int deviceHash, double timeoutSeconds, String serializedStr, boolean forceApply)
static int
JNI_RequestControlBalanceBattery(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests)
static int
JNI_RequestControlBMSClearFault(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests)
static int
JNI_RequestControlBMSManualIsolator(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, boolean Enable)
static int
JNI_RequestControlBMSManualPwmJunction(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, int JunctionSelect, double JunctionDutyCycle)
static int
JNI_RequestControlBMSManualVboost(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, boolean EnableClosedLoop, double TargetVoltage, double TargetDutyCycle)
static int
JNI_RequestControlCoastOut(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests)
static int
JNI_RequestControlDutyCycleOut(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Output, boolean EnableFOC, boolean OverrideBrakeDurNeutral)
static int
JNI_RequestControlFollower(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, int MasterID, boolean OpposeMasterDirection)
static int
JNI_RequestControlMotionMagicDutyCycle(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Position, boolean EnableFOC, double FeedForward, int Slot, boolean OverrideBrakeDurNeutral)
static int
JNI_RequestControlMotionMagicTorqueCurrentFOC(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Position, double FeedForward, int Slot, boolean OverrideCoastDurNeutral)
static int
JNI_RequestControlMotionMagicVoltage(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Position, boolean EnableFOC, double FeedForward, int Slot, boolean OverrideBrakeDurNeutral)
static int
JNI_RequestControlNeutralOut(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests)
static int
JNI_RequestControlPositionDutyCycle(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Position, boolean EnableFOC, double FeedForward, int Slot, boolean OverrideBrakeDurNeutral)
static int
JNI_RequestControlPositionTorqueCurrentFOC(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Position, double FeedForward, int Slot, boolean OverrideCoastDurNeutral)
static int
JNI_RequestControlPositionVoltage(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Position, boolean EnableFOC, double FeedForward, int Slot, boolean OverrideBrakeDurNeutral)
static int
JNI_RequestControlStaticBrake(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests)
static int
JNI_RequestControlStrictFollower(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, int MasterID)
static int
JNI_RequestControlTorqueCurrentFOC(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Output, double MaxAbsDutyCycle, double Deadband, boolean OverrideCoastDurNeutral)
static int
JNI_RequestControlVelocityDutyCycle(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Velocity, boolean EnableFOC, double FeedForward, int Slot, boolean OverrideBrakeDurNeutral)
static int
JNI_RequestControlVelocityTorqueCurrentFOC(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Velocity, double FeedForward, int Slot, boolean OverrideCoastDurNeutral)
static int
JNI_RequestControlVelocityVoltage(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Velocity, boolean EnableFOC, double FeedForward, int Slot, boolean OverrideBrakeDurNeutral)
static int
JNI_RequestControlVoltageOut(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Output, boolean EnableFOC, boolean OverrideBrakeDurNeutral)
-
Constructor Details
-
ControlJNI
public ControlJNI()
-
-
Method Details
-
JNI_RequestConfigApply
public static int JNI_RequestConfigApply(String canbus, int deviceHash, double timeoutSeconds, String serializedStr, boolean forceApply) -
JNI_RequestControlDutyCycleOut
public static int JNI_RequestControlDutyCycleOut(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Output, boolean EnableFOC, boolean OverrideBrakeDurNeutral) -
JNI_RequestControlTorqueCurrentFOC
public static int JNI_RequestControlTorqueCurrentFOC(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Output, double MaxAbsDutyCycle, double Deadband, boolean OverrideCoastDurNeutral) -
JNI_RequestControlVoltageOut
public static int JNI_RequestControlVoltageOut(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Output, boolean EnableFOC, boolean OverrideBrakeDurNeutral) -
JNI_RequestControlPositionDutyCycle
public static int JNI_RequestControlPositionDutyCycle(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Position, boolean EnableFOC, double FeedForward, int Slot, boolean OverrideBrakeDurNeutral) -
JNI_RequestControlPositionVoltage
public static int JNI_RequestControlPositionVoltage(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Position, boolean EnableFOC, double FeedForward, int Slot, boolean OverrideBrakeDurNeutral) -
JNI_RequestControlPositionTorqueCurrentFOC
public static int JNI_RequestControlPositionTorqueCurrentFOC(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Position, double FeedForward, int Slot, boolean OverrideCoastDurNeutral) -
JNI_RequestControlVelocityDutyCycle
public static int JNI_RequestControlVelocityDutyCycle(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Velocity, boolean EnableFOC, double FeedForward, int Slot, boolean OverrideBrakeDurNeutral) -
JNI_RequestControlVelocityVoltage
public static int JNI_RequestControlVelocityVoltage(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Velocity, boolean EnableFOC, double FeedForward, int Slot, boolean OverrideBrakeDurNeutral) -
JNI_RequestControlVelocityTorqueCurrentFOC
public static int JNI_RequestControlVelocityTorqueCurrentFOC(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Velocity, double FeedForward, int Slot, boolean OverrideCoastDurNeutral) -
JNI_RequestControlMotionMagicDutyCycle
public static int JNI_RequestControlMotionMagicDutyCycle(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Position, boolean EnableFOC, double FeedForward, int Slot, boolean OverrideBrakeDurNeutral) -
JNI_RequestControlMotionMagicVoltage
public static int JNI_RequestControlMotionMagicVoltage(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Position, boolean EnableFOC, double FeedForward, int Slot, boolean OverrideBrakeDurNeutral) -
JNI_RequestControlMotionMagicTorqueCurrentFOC
public static int JNI_RequestControlMotionMagicTorqueCurrentFOC(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, double Position, double FeedForward, int Slot, boolean OverrideCoastDurNeutral) -
JNI_RequestControlFollower
public static int JNI_RequestControlFollower(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, int MasterID, boolean OpposeMasterDirection) -
JNI_RequestControlStrictFollower
public static int JNI_RequestControlStrictFollower(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, int MasterID) -
JNI_RequestControlNeutralOut
public static int JNI_RequestControlNeutralOut(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests) -
JNI_RequestControlCoastOut
public static int JNI_RequestControlCoastOut(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests) -
JNI_RequestControlStaticBrake
public static int JNI_RequestControlStaticBrake(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests) -
JNI_RequestControlBalanceBattery
public static int JNI_RequestControlBalanceBattery(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests) -
JNI_RequestControlBMSManualIsolator
public static int JNI_RequestControlBMSManualIsolator(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, boolean Enable) -
JNI_RequestControlBMSManualVboost
public static int JNI_RequestControlBMSManualVboost(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, boolean EnableClosedLoop, double TargetVoltage, double TargetDutyCycle) -
JNI_RequestControlBMSManualPwmJunction
public static int JNI_RequestControlBMSManualPwmJunction(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests, int JunctionSelect, double JunctionDutyCycle) -
JNI_RequestControlBMSClearFault
public static int JNI_RequestControlBMSClearFault(String canbus, int deviceHash, double updateTime, boolean cancelOtherRequests)
-