Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Jetracer Calibrated Values
#VEHICLE
DRIVE_LOOP_HZ = 50
#CAMERA
CAMERA_TYPE = "LEOPARD"
IMAGE_W = 224
IMAGE_H = 224
IMAGE_DEPTH = 3
CAMERA_FRAMERATE = DRIVE_LOOP_HZ
CAMERA_VFLIP = False
CAMERA_HFLIP = False
# #9865
PCA9685_I2C_ADDR = 0x40
PCA9685_I2C_BUSNUM = 0
# #SSD1306_128_32
USE_SSD1306_128_32 = True
SSD1306_128_32_I2C_BUSNUM = 1
# #STEERING
STEERING_CHANNEL = 1
STEERING_LEFT_PWM = 300
STEERING_RIGHT_PWM = 440
# #THROTTLE
THROTTLE_CHANNEL = 0
THROTTLE_FORWARD_PWM = 525
THROTTLE_STOPPED_PWM = 395
THROTTLE_REVERSE_PWM = 295
# #JOYSTICK
USE_JOYSTICK_AS_DEFAULT = True
JOYSTICK_MAX_THROTTLE = 0.5
JOYSTICK_STEERING_SCALE = 1.0
AUTO_RECORD_ON_THROTTLE = True
CONTROLLER_TYPE='xbox'
USE_NETWORKED_JS = False
JOYSTICK_DEADZONE = 0.05
JOYSTICK_THROTTLE_DIR = 1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment