Package com.thunder.lib.jni
Class ThunderLibJNI
java.lang.Object
com.thunder.lib.jni.ThunderLibJNI
Class for loading the driver via JNI.
Do not interact with this class directly, use the wrapper classes instead.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHelper class for determining whether or not to load the driver on static initialization. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidForce load the library.static voidThunderAutoMode_delete(long handle) ThunderAutoMode JNI Methodsstatic longThunderAutoMode_getFirstStep(long handle) static longThunderAutoMode_getFirstStepOfBoolBranch(long handle, long branchStepHandle, boolean booleanCondition) static longThunderAutoMode_getFirstStepOfSwitchBranch(long handle, long branchStepHandle, int switchCondition) static longThunderAutoMode_getNextStep(long handle, long previousStepHandle) static booleanThunderAutoMode_isRunnable(long handle, long projectHandle) static voidThunderAutoModeStep_delete(long handle) ThunderAutoModeStep JNI Methodsstatic StringThunderAutoModeStep_getItemName(long handle) static ThunderAutoModeStep.TypeThunderAutoModeStep_getType(long handle) static booleanThunderAutoProject_areRemoteUpdatesEnabled(long handle) static longThunderAutoProject JNI methodsstatic longThunderAutoProject_constructWithPath(String projectPath) static voidThunderAutoProject_delete(long handle) static voidThunderAutoProject_disableRemoteUpdates(long handle) static booleanstatic voidThunderAutoProject_enableRemoteUpdates(long handle) ThunderAutoProject_getActionGroup(long handle, String actionName) static longThunderAutoProject_getAutoMode(long handle, String autoModeName) ThunderAutoProject_getAutoModeNames(long handle) static FieldDimensionsThunderAutoProject_getFieldDimensions(long handle) static FieldSymmetryThunderAutoProject_getFieldSymmetry(long handle) static StringThunderAutoProject_getName(long handle) static longThunderAutoProject_getTrajectory(long handle, String trajectoryName) ThunderAutoProject_getTrajectoryNames(long handle) static booleanThunderAutoProject_hasAction(long handle, String actionName) static booleanThunderAutoProject_hasAutoMode(long handle, String autoModeName) static booleanThunderAutoProject_hasTrajectory(long handle, String trajectoryName) static booleanThunderAutoProject_isActionCommand(long handle, String actionName) static booleanThunderAutoProject_isActionGroup(long handle, String actionName) static booleanThunderAutoProject_isConcurrentActionGroup(long handle, String actionName) static booleanThunderAutoProject_isLoaded(long handle) static booleanThunderAutoProject_isSequentialActionGroup(long handle, String actionName) static booleanThunderAutoProject_load(long handle, String projectPath) static longThunderAutoProject_registerRemoteUpdateSubscriber(long handle, Runnable callback) static voidThunderAutoProject_setRemoteUpdatesEnabled(long handle, boolean enabled) static booleanThunderAutoProject_unregisterRemoteUpdateSubscriber(long handle, long subscriberID) static voidThunderAutoSendableChooser_addAllAutoModesFromProject(long handle, String projectName) static voidThunderAutoSendableChooser_addAllTrajectoriesFromProject(long handle, String projectName) static booleanThunderAutoSendableChooser_addAutoModeFromProject(long handle, String projectName, String autoModeName) static booleanThunderAutoSendableChooser_addCustomCommand(long handle, String commandName) static booleanThunderAutoSendableChooser_addTrajectoryFromProject(long handle, String projectName, String trajectoryName) static longThunderAutoSendableChooser_construct(Consumer<ThunderAutoSendableChooser.ChooserSelection> addChoiceToChooser, Consumer<String> publishChooser) ThunderAutoSendableChooser JNI methodsstatic longThunderAutoSendableChooser_constructWithSmartDashboardKey(Consumer<ThunderAutoSendableChooser.ChooserSelection> addChoiceToChooser, Consumer<String> publishChooser, String smartDashboardKey) static voidThunderAutoSendableChooser_delete(long handle) static voidThunderAutoSendableChooser_includeProjectSource(long handle, long projectHandle, boolean addAllAutoModes, boolean addAllTrajectories) static voidThunderAutoSendableChooser_publish(long handle, String smartDashboardKey) static voidThunderAutoTrajectory_delete(long handle) ThunderAutoTrajectory JNI MethodsThunderAutoTrajectory_getActionsAtTime(long handle, double timeSeconds) ThunderAutoTrajectory_getActionTimes(long handle) static doubleThunderAutoTrajectory_getDurationSeconds(long handle) static StringThunderAutoTrajectory_getEndAction(long handle) static ThunderTrajectoryStateThunderAutoTrajectory_getFinalState(long handle) static ThunderTrajectoryStateThunderAutoTrajectory_getInitialState(long handle) static StringThunderAutoTrajectory_getStartAction(long handle) static StringThunderAutoTrajectory_getStopAction(long handle, double stopTimeSeconds) ThunderAutoTrajectory_getStopTimes(long handle) static ThunderTrajectoryStateThunderAutoTrajectory_sample(long handle, double timeSeconds)
-
Constructor Details
-
ThunderLibJNI
public ThunderLibJNI()
-
-
Method Details
-
forceLoad
public static void forceLoad()Force load the library. -
ThunderAutoProject_construct
public static long ThunderAutoProject_construct()ThunderAutoProject JNI methods -
ThunderAutoProject_constructWithPath
-
ThunderAutoProject_delete
public static void ThunderAutoProject_delete(long handle) -
ThunderAutoProject_load
-
ThunderAutoProject_discoverAndLoadFromDeployDirectory
public static boolean ThunderAutoProject_discoverAndLoadFromDeployDirectory(long handle) -
ThunderAutoProject_isLoaded
public static boolean ThunderAutoProject_isLoaded(long handle) -
ThunderAutoProject_getName
-
ThunderAutoProject_hasAction
-
ThunderAutoProject_isActionCommand
-
ThunderAutoProject_isActionGroup
-
ThunderAutoProject_getActionGroup
-
ThunderAutoProject_isSequentialActionGroup
-
ThunderAutoProject_isConcurrentActionGroup
-
ThunderAutoProject_getTrajectory
-
ThunderAutoProject_hasTrajectory
-
ThunderAutoProject_getTrajectoryNames
-
ThunderAutoProject_getAutoMode
-
ThunderAutoProject_hasAutoMode
-
ThunderAutoProject_getAutoModeNames
-
ThunderAutoProject_getFieldSymmetry
-
ThunderAutoProject_getFieldDimensions
-
ThunderAutoProject_setRemoteUpdatesEnabled
public static void ThunderAutoProject_setRemoteUpdatesEnabled(long handle, boolean enabled) -
ThunderAutoProject_enableRemoteUpdates
public static void ThunderAutoProject_enableRemoteUpdates(long handle) -
ThunderAutoProject_disableRemoteUpdates
public static void ThunderAutoProject_disableRemoteUpdates(long handle) -
ThunderAutoProject_areRemoteUpdatesEnabled
public static boolean ThunderAutoProject_areRemoteUpdatesEnabled(long handle) -
ThunderAutoProject_registerRemoteUpdateSubscriber
public static long ThunderAutoProject_registerRemoteUpdateSubscriber(long handle, Runnable callback) -
ThunderAutoProject_unregisterRemoteUpdateSubscriber
public static boolean ThunderAutoProject_unregisterRemoteUpdateSubscriber(long handle, long subscriberID) -
ThunderAutoSendableChooser_construct
public static long ThunderAutoSendableChooser_construct(Consumer<ThunderAutoSendableChooser.ChooserSelection> addChoiceToChooser, Consumer<String> publishChooser) ThunderAutoSendableChooser JNI methods -
ThunderAutoSendableChooser_constructWithSmartDashboardKey
public static long ThunderAutoSendableChooser_constructWithSmartDashboardKey(Consumer<ThunderAutoSendableChooser.ChooserSelection> addChoiceToChooser, Consumer<String> publishChooser, String smartDashboardKey) -
ThunderAutoSendableChooser_delete
public static void ThunderAutoSendableChooser_delete(long handle) -
ThunderAutoSendableChooser_publish
-
ThunderAutoSendableChooser_includeProjectSource
public static void ThunderAutoSendableChooser_includeProjectSource(long handle, long projectHandle, boolean addAllAutoModes, boolean addAllTrajectories) -
ThunderAutoSendableChooser_addAllTrajectoriesFromProject
public static void ThunderAutoSendableChooser_addAllTrajectoriesFromProject(long handle, String projectName) -
ThunderAutoSendableChooser_addAllAutoModesFromProject
public static void ThunderAutoSendableChooser_addAllAutoModesFromProject(long handle, String projectName) -
ThunderAutoSendableChooser_addTrajectoryFromProject
-
ThunderAutoSendableChooser_addCustomCommand
-
ThunderAutoSendableChooser_addAutoModeFromProject
-
ThunderAutoTrajectory_delete
public static void ThunderAutoTrajectory_delete(long handle) ThunderAutoTrajectory JNI Methods -
ThunderAutoTrajectory_sample
-
ThunderAutoTrajectory_getDurationSeconds
public static double ThunderAutoTrajectory_getDurationSeconds(long handle) -
ThunderAutoTrajectory_getInitialState
-
ThunderAutoTrajectory_getFinalState
-
ThunderAutoTrajectory_getStartAction
-
ThunderAutoTrajectory_getEndAction
-
ThunderAutoTrajectory_getStopTimes
-
ThunderAutoTrajectory_getStopAction
-
ThunderAutoTrajectory_getActionTimes
-
ThunderAutoTrajectory_getActionsAtTime
-
ThunderAutoModeStep_delete
public static void ThunderAutoModeStep_delete(long handle) ThunderAutoModeStep JNI Methods -
ThunderAutoModeStep_getType
-
ThunderAutoModeStep_getItemName
-
ThunderAutoMode_delete
public static void ThunderAutoMode_delete(long handle) ThunderAutoMode JNI Methods -
ThunderAutoMode_getFirstStep
public static long ThunderAutoMode_getFirstStep(long handle) -
ThunderAutoMode_getNextStep
public static long ThunderAutoMode_getNextStep(long handle, long previousStepHandle) -
ThunderAutoMode_getFirstStepOfBoolBranch
public static long ThunderAutoMode_getFirstStepOfBoolBranch(long handle, long branchStepHandle, boolean booleanCondition) -
ThunderAutoMode_getFirstStepOfSwitchBranch
public static long ThunderAutoMode_getFirstStepOfSwitchBranch(long handle, long branchStepHandle, int switchCondition) -
ThunderAutoMode_isRunnable
public static boolean ThunderAutoMode_isRunnable(long handle, long projectHandle)
-