The Wayback Machine - https://web.archive.org/web/20220324175417/https://github.com/topics/hal
Skip to content
#

hal

Here are 395 public repositories matching this topic...

calcmogul
calcmogul commented Mar 17, 2022
  @Override
  @SuppressWarnings("ParameterName")
  public Rotation2d interpolate(Rotation2d endValue, double t) {
    return new Rotation2d(MathUtil.interpolate(this.getRadians(), endValue.getRadians(), t));
  }

For two angles at the edge of the (-pi, pi) range (e.g., -5/4pi and 5/4pi), this code will interpolate the long way around. The Rotation2d functions like plus(), minus()

type: bug good first issue component: wpimath
johnnyegel
johnnyegel commented Nov 17, 2020

All examples seems to put all code in the main() function, and demonstrate some static condition happening once. However, this does not reflect any real use cases, and I struggle really hard to implement anything actually useful using the HAL (unless of course I would put all logic into the main() function). There should be some examples which shows actual useful use-cases, and not just PoCs.

good first issue

Improve this page

Add a description, image, and links to the hal topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the hal topic, visit your repo's landing page and select "manage topics."

Learn more