Class NotificationPresets.QuestNav

java.lang.Object
frc.alotobots.util.NotificationPresets.QuestNav
Enclosing class:
NotificationPresets

public final class NotificationPresets.QuestNav extends Object
Contains notification methods related to the QuestNav tracking system.
  • Constructor Details

    • QuestNav

      public QuestNav()
  • Method Details

    • sendQuestNavPoseResetFailedNotification

      public static void sendQuestNavPoseResetFailedNotification()
      Sends a notification when the QuestNav pose reset fails.
    • sendQuestNavPoseResetNotification

      public static void sendQuestNavPoseResetNotification(Pose3d newPose)
      Sends a notification when the QuestNav pose is reset.
      Parameters:
      newPose - The new pose after reset
    • sendQuestNavHeadingResetFailedNotification

      public static void sendQuestNavHeadingResetFailedNotification()
      Sends a notification when the QuestNav heading reset fails.
    • sendQuestNavHeadingResetNotification

      public static void sendQuestNavHeadingResetNotification()
      Sends a notification when the QuestNav heading is reset.
    • sendQuestNavTransformUpdateNotification

      public static void sendQuestNavTransformUpdateNotification(Transform2d newTransform)
      Sends a notification when the QuestNav transform is updated.
      Parameters:
      newTransform - The new transform applied to the QuestNav
    • sendQuestNavReconnectedNotification

      public static void sendQuestNavReconnectedNotification()
      Sends a notification when the QuestNav reconnects. Only sends if a disconnection was previously reported.
    • sendQuestNavDisconnectedNotification

      public static void sendQuestNavDisconnectedNotification()
      Sends a notification when the QuestNav disconnects. Only sends the notification once until the device reconnects.
    • sendQuestNavBatteryLowNotification

      public static void sendQuestNavBatteryLowNotification()
      Sends a notification when the QuestNav battery is low. Only sends the notification once per battery discharge cycle.
    • sendQuestNavBatteryCriticalNotification

      public static void sendQuestNavBatteryCriticalNotification()
      Sends a notification when the QuestNav battery is critically low. Only sends the notification once per battery discharge cycle.
    • sendQuestNavTrackingLostNotification

      public static void sendQuestNavTrackingLostNotification(int totalTrackingLostEvents)
      Sends a notification when the QuestNav tracking is lost. Only sends the notification once until tracking is regained.
      Parameters:
      totalTrackingLostEvents - The times the quest has lost tracking total since app boot.
    • sendQuestNavTrackingRegainedNotification

      public static void sendQuestNavTrackingRegainedNotification()
      Sends a notification when the QuestNav tracking is regained. Only sends the notification once until tracking is lost again.