📄 wheelencoder.java
字号:
package nanovm.ctbot.drivers;public class WheelEncoder{ /** * maximum value for tick increment */ public static final int MAXIMUM = 32767; /** * minimum value for tick increment */ public static final int MINIMUM = -32768; /** * minimum value for speed */ public static final int MAXIMUM_SPEED = 130; /** * maximum value for speed */ public static final int MINIMUM_SPEED = -130; /** * get tick-count from left wheel since last call */ public static native int getLeftInc(); /** * get tick-count from right wheel since last call */ public static native int getRightInc(); /** * get actual speed (ticks/second) from left wheel */ public static native int getLeftSpeed(); /** * get actual speed (ticks/second) from right wheel */ public static native int getRightSpeed(); /** * enable and disable the wheel-encoder */ public static native void setEnabled(boolean enable); /** * get status of wheel-encoder */ public static native boolean getEnabled();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -