Class Pigeon2Configurator

java.lang.Object
com.ctre.phoenixpro.configs.ParentConfigurator
com.ctre.phoenixpro.configs.Pigeon2Configurator

@Deprecated(forRemoval=true)
public class Pigeon2Configurator
extends ParentConfigurator
Deprecated, for removal: This API element is subject to removal in a future version.
Classes in the phoenixpro package will be removed in 2024. Users should instead use classes from the phoenix6 package.
Class description for the Pigeon 2 IMU sensor that measures orientation. This handles the configurations for the Pigeon2
  • Field Summary

    Fields inherited from class com.ctre.phoenixpro.configs.ParentConfigurator

    defaultTimeoutSeconds
  • Constructor Summary

    Constructors 
    Constructor Description
    Pigeon2Configurator​(DeviceIdentifier id)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type Method Description
    StatusCode apply​(GyroTrimConfigs configs)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Applies the contents of the specified config to the device.
    StatusCode apply​(GyroTrimConfigs configs, double timeoutSeconds)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Applies the contents of the specified config to the device.
    StatusCode apply​(MountPoseConfigs configs)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Applies the contents of the specified config to the device.
    StatusCode apply​(MountPoseConfigs configs, double timeoutSeconds)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Applies the contents of the specified config to the device.
    StatusCode apply​(Pigeon2Configuration configs)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Applies the contents of the specified config to the device.
    StatusCode apply​(Pigeon2Configuration configs, double timeoutSeconds)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Applies the contents of the specified config to the device.
    StatusCode apply​(Pigeon2FeaturesConfigs configs)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Applies the contents of the specified config to the device.
    StatusCode apply​(Pigeon2FeaturesConfigs configs, double timeoutSeconds)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Applies the contents of the specified config to the device.
    StatusCode clearStickyFaults()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Clear the sticky faults in the device.
    StatusCode clearStickyFaults​(double timeoutSeconds)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Clear the sticky faults in the device.
    StatusCode refresh​(GyroTrimConfigs configs)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Refreshes the values of the specified config group.
    StatusCode refresh​(GyroTrimConfigs configs, double timeoutSeconds)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Refreshes the values of the specified config group.
    StatusCode refresh​(MountPoseConfigs configs)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Refreshes the values of the specified config group.
    StatusCode refresh​(MountPoseConfigs configs, double timeoutSeconds)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Refreshes the values of the specified config group.
    StatusCode refresh​(Pigeon2Configuration configs)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Refreshes the values of the specified config group.
    StatusCode refresh​(Pigeon2Configuration configs, double timeoutSeconds)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Refreshes the values of the specified config group.
    StatusCode refresh​(Pigeon2FeaturesConfigs configs)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Refreshes the values of the specified config group.
    StatusCode refresh​(Pigeon2FeaturesConfigs configs, double timeoutSeconds)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Refreshes the values of the specified config group.
    StatusCode setYaw​(double newValue)
    Deprecated, for removal: This API element is subject to removal in a future version.
    The yaw to set the Pigeon2 to right now.
    StatusCode setYaw​(double newValue, double timeoutSeconds)
    Deprecated, for removal: This API element is subject to removal in a future version.
    The yaw to set the Pigeon2 to right now.

    Methods inherited from class com.ctre.phoenixpro.configs.ParentConfigurator

    getConfigsPrivate, setConfigsPrivate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • refresh

      Deprecated, for removal: This API element is subject to removal in a future version.
      Refreshes the values of the specified config group.

      This will wait up to ParentConfigurator.defaultTimeoutSeconds.

      Call to refresh the selected configs from the device.

      Parameters:
      configs - The configs to refresh
      Returns:
      StatusCode of refreshing the configs
    • refresh

      public StatusCode refresh​(Pigeon2Configuration configs, double timeoutSeconds)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Refreshes the values of the specified config group.

      Call to refresh the selected configs from the device.

      Parameters:
      configs - The configs to refresh
      timeoutSeconds - Maximum amount of time to wait when performing configuration
      Returns:
      StatusCode of refreshing the configs
    • apply

      public StatusCode apply​(Pigeon2Configuration configs)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Applies the contents of the specified config to the device.

      This will wait up to ParentConfigurator.defaultTimeoutSeconds.

      Call to apply the selected configs.

      Parameters:
      configs - Configs to apply against.
      Returns:
      StatusCode of the set command
    • apply

      public StatusCode apply​(Pigeon2Configuration configs, double timeoutSeconds)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Applies the contents of the specified config to the device.

      Call to apply the selected configs.

      Parameters:
      configs - Configs to apply against.
      timeoutSeconds - Maximum amount of time to wait when performing configuration
      Returns:
      StatusCode of the set command
    • refresh

      public StatusCode refresh​(MountPoseConfigs configs)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Refreshes the values of the specified config group.

      This will wait up to ParentConfigurator.defaultTimeoutSeconds.

      Call to refresh the selected configs from the device.

      Parameters:
      configs - The configs to refresh
      Returns:
      StatusCode of refreshing the configs
    • refresh

      public StatusCode refresh​(MountPoseConfigs configs, double timeoutSeconds)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Refreshes the values of the specified config group.

      Call to refresh the selected configs from the device.

      Parameters:
      configs - The configs to refresh
      timeoutSeconds - Maximum amount of time to wait when performing configuration
      Returns:
      StatusCode of refreshing the configs
    • apply

      public StatusCode apply​(MountPoseConfigs configs)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Applies the contents of the specified config to the device.

      This will wait up to ParentConfigurator.defaultTimeoutSeconds.

      Call to apply the selected configs.

      Parameters:
      configs - Configs to apply against.
      Returns:
      StatusCode of the set command
    • apply

      public StatusCode apply​(MountPoseConfigs configs, double timeoutSeconds)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Applies the contents of the specified config to the device.

      Call to apply the selected configs.

      Parameters:
      configs - Configs to apply against.
      timeoutSeconds - Maximum amount of time to wait when performing configuration
      Returns:
      StatusCode of the set command
    • refresh

      public StatusCode refresh​(GyroTrimConfigs configs)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Refreshes the values of the specified config group.

      This will wait up to ParentConfigurator.defaultTimeoutSeconds.

      Call to refresh the selected configs from the device.

      Parameters:
      configs - The configs to refresh
      Returns:
      StatusCode of refreshing the configs
    • refresh

      public StatusCode refresh​(GyroTrimConfigs configs, double timeoutSeconds)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Refreshes the values of the specified config group.

      Call to refresh the selected configs from the device.

      Parameters:
      configs - The configs to refresh
      timeoutSeconds - Maximum amount of time to wait when performing configuration
      Returns:
      StatusCode of refreshing the configs
    • apply

      public StatusCode apply​(GyroTrimConfigs configs)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Applies the contents of the specified config to the device.

      This will wait up to ParentConfigurator.defaultTimeoutSeconds.

      Call to apply the selected configs.

      Parameters:
      configs - Configs to apply against.
      Returns:
      StatusCode of the set command
    • apply

      public StatusCode apply​(GyroTrimConfigs configs, double timeoutSeconds)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Applies the contents of the specified config to the device.

      Call to apply the selected configs.

      Parameters:
      configs - Configs to apply against.
      timeoutSeconds - Maximum amount of time to wait when performing configuration
      Returns:
      StatusCode of the set command
    • refresh

      Deprecated, for removal: This API element is subject to removal in a future version.
      Refreshes the values of the specified config group.

      This will wait up to ParentConfigurator.defaultTimeoutSeconds.

      Call to refresh the selected configs from the device.

      Parameters:
      configs - The configs to refresh
      Returns:
      StatusCode of refreshing the configs
    • refresh

      public StatusCode refresh​(Pigeon2FeaturesConfigs configs, double timeoutSeconds)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Refreshes the values of the specified config group.

      Call to refresh the selected configs from the device.

      Parameters:
      configs - The configs to refresh
      timeoutSeconds - Maximum amount of time to wait when performing configuration
      Returns:
      StatusCode of refreshing the configs
    • apply

      Deprecated, for removal: This API element is subject to removal in a future version.
      Applies the contents of the specified config to the device.

      This will wait up to ParentConfigurator.defaultTimeoutSeconds.

      Call to apply the selected configs.

      Parameters:
      configs - Configs to apply against.
      Returns:
      StatusCode of the set command
    • apply

      public StatusCode apply​(Pigeon2FeaturesConfigs configs, double timeoutSeconds)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Applies the contents of the specified config to the device.

      Call to apply the selected configs.

      Parameters:
      configs - Configs to apply against.
      timeoutSeconds - Maximum amount of time to wait when performing configuration
      Returns:
      StatusCode of the set command
    • setYaw

      public StatusCode setYaw​(double newValue)
      Deprecated, for removal: This API element is subject to removal in a future version.
      The yaw to set the Pigeon2 to right now.

      This will wait up to ParentConfigurator.defaultTimeoutSeconds.

      This is available in the configurator in case the user wants to initialize their device entirely without passing a device reference down to the code that performs the initialization. In this case, the user passes down the configurator object and performs all the initialization code on the object.

      Parameters:
      newValue - Value to set to.
      Returns:
      StatusCode of the set command
    • setYaw

      public StatusCode setYaw​(double newValue, double timeoutSeconds)
      Deprecated, for removal: This API element is subject to removal in a future version.
      The yaw to set the Pigeon2 to right now.

      This is available in the configurator in case the user wants to initialize their device entirely without passing a device reference down to the code that performs the initialization. In this case, the user passes down the configurator object and performs all the initialization code on the object.

      Parameters:
      newValue - Value to set to.
      timeoutSeconds - Maximum time to wait up to in seconds.
      Returns:
      StatusCode of the set command
    • clearStickyFaults

      Deprecated, for removal: This API element is subject to removal in a future version.
      Clear the sticky faults in the device.

      This typically has no impact on the device functionality. Instead, it just clears telemetry faults that are accessible via API and Tuner Self-Test.

      This will wait up to ParentConfigurator.defaultTimeoutSeconds.

      This is available in the configurator in case the user wants to initialize their device entirely without passing a device reference down to the code that performs the initialization. In this case, the user passes down the configurator object and performs all the initialization code on the object.

      Returns:
      StatusCode of the set command
    • clearStickyFaults

      public StatusCode clearStickyFaults​(double timeoutSeconds)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Clear the sticky faults in the device.

      This typically has no impact on the device functionality. Instead, it just clears telemetry faults that are accessible via API and Tuner Self-Test.

      This is available in the configurator in case the user wants to initialize their device entirely without passing a device reference down to the code that performs the initialization. In this case, the user passes down the configurator object and performs all the initialization code on the object.

      Parameters:
      timeoutSeconds - Maximum time to wait up to in seconds.
      Returns:
      StatusCode of the set command