This is a python implementation of the kauailabs NavX library.
Note
The RobotPy project is not associated with or endorsed by kauailabs or Studica Robotics
Studica NavX3 sensors use navx.Navx rather than the older navx.AHRS API.
This project includes StudicaLib 2026.0.2, with USB support:
import navx
imu = navx.Navx(navx.Navx.Port.kUSB1) # or kUSB2
yaw = imu.getYaw()Use the Port enum for USB; passing an integer selects a CAN device ID.
See the USB example for a complete robot program.
The original NavX software is available under the MIT license, as is this.