Skip to content

lasarobotics/PurpleLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 1, 2024
2886fe8 · Apr 1, 2024
Feb 10, 2024
Oct 28, 2023
Jan 7, 2024
Oct 24, 2023
Apr 1, 2024
Mar 19, 2024
Oct 24, 2023
Oct 28, 2023
Jan 26, 2024
Feb 26, 2024
Apr 1, 2024
Mar 19, 2024
Oct 24, 2023
Oct 24, 2023
Nov 7, 2023

Repository files navigation

PurpleLib Release

Custom library for 418 Purple Haze

Note: CTRE will not be as well supported as REV products as our team primarily lives in the REV Robotics ecosystem

Features

  • Hardware wrappers with built-in AdvantageKit logging
    • REV Robotics
      • Spark Max with SmoothMotionTM
      • Spark Flex with SmoothMotionTM
      • Through bore encoder connected to Spark Max/Flex in absolute mode ONLY!
      • Spark Flex and NEO Vortex MUST be paired together!
      • 3-way communication to ensure parameters are set
      • Improved velocity PID performance
      • More accurate velocity readings
    • CTRE
      • CANivore
      • Pidgeon 2.0
      • CANCoder
      • VictorSPX
      • TalonSRX
    • Kauai Labs
      • NavX2 (MXP port only)
    • Generic
      • Analog sensor
      • Compressor
      • Single and double solenoid
      • Limit switch
      • Servo
  • MAXSwerve module support
    • Supports NEO v1.0/1.1 or NEO Vortex + NEO 550 configuration only
    • REV through bore encoder must be used
    • Module must be calibrated using REV MAXSwerve calibration tool
  • Robot rotation PID
  • Traction control
  • Swerve second order kinematics correction
  • Configurable input maps
  • LED strip support
  • JSON read/write
  • Battery scanning and tracking

Installing

Add the following dependencies to your project:

Add the following to build.gradle where VERSION is the release version, e.g. 2023.0.0

repositories {
  maven { url "https://jitpack.io" }
}
dependencies {
  implementation 'org.apache.commons:commons-math3:3.+'
  implementation 'com.github.lasarobotics:PurpleLib:VERSION'
}

Releasing

Create a release in GitHub. JitPack does the rest.

Examples

Usage examples can be found here

An example swerve project is here

Documentation

Javadocs available here