Skip to content

LemLib/hardware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hardware

Hardware abstractions for PROS

This PROS template aims to simplify interactions with devices, and implement a common interface so virtually any custom sensors can be used in projects which depend on this template.

Features

  • Unitized

  • Advanced Error Handling

  • Device disconnect/reconnect callbacks

  • Compile-time Port Checks

  • Motor

    • Changing encoder units don't affect reported angle
    • Current limit
    • Differentiate 11W and 5.5W motors
    • -1.0 to +1.0 power levels, adjusts automatically to motor type
    • Type Safe enums
    • Micro-disconnect detection
  • Motor Groups

    • Motor disconnects/reconnects don't affect measured angle
    • Removing motors doesn't affect the measured angle
    • Automatic per-motor gear ratio calculations
    • Micro-disconnect detection
  • Abstract Distance Sensor

    • Generic interface for any distance sensor
    • Support for all VEX distance sensors
      • V5 Distance Sensor
      • V5 Optical Sensor
      • ADI Ultrasonic Sensor
  • Abstract Color Sensor

    • Generic interface for any color sensor
    • Support for all VEX color sensors
      • V5 Optical Sensor
  • Abstract Encoders

    • Generic interface for any encoder
      • Support for all VEX encoders
        • Motors / Motor Groups
        • V5 Rotation Sensor
        • Optical Shaft encoder
        • ADI Potentiometer V1
        • ADI Potentiometer V2
  • Abstract Gyro

    • Generic interface for any gyro
    • Gyro Scaling
    • Support for all VEX gyros
      • V5 Inertial Sensor
      • V5 GPS Sensor
      • ADI analog gyro
  • Abstract Accelerometer

    • Generic interface for any accelerometer
    • Support for all VEX accelerometers
      • V5 Inertial Sensor
      • V5 GPS Sensor
      • ADI Accelerometer
  • Abstract IMU

    • Generic interface for any IMU
    • Support for all VEX IMUs
      • V5 Inertial Sensor
      • V5 GPS Sensor

Who Should Use This?

Anyone who uses PROS. This API is simpler, safer, and more powerful than that of PROS. Library developers should use this in order to support custom sensors which may be used by VURC and VAIRC teams.

About

Hardware Abstractions for the Vex V5

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •