001/* 002 * Copyright (C) Cross The Road Electronics. All rights reserved. 003 * License information can be found in CTRE_LICENSE.txt 004 * For support and suggestions contact support@ctr-electronics.com or file 005 * an issue tracker at https://github.com/CrossTheRoadElec/Phoenix-Releases 006 */ 007package com.ctre.phoenix6.hardware.traits; 008 009import com.ctre.phoenix6.*; 010import com.ctre.phoenix6.signals.*; 011import edu.wpi.first.units.*; 012import edu.wpi.first.units.measure.*; 013 014/** 015 * Contains all status signals available for devices that support Talon signals. 016 */ 017public interface HasTalonSignals extends CommonDevice 018{ 019 020 /** 021 * App Major Version number. 022 * 023 * <ul> 024 * <li> <b>Minimum Value:</b> 0 025 * <li> <b>Maximum Value:</b> 255 026 * <li> <b>Default Value:</b> 0 027 * <li> <b>Units:</b> 028 * </ul> 029 * <p> 030 * This refreshes and returns a cached StatusSignal object. 031 * 032 * @return VersionMajor Status Signal Object 033 */ 034 StatusSignal<Integer> getVersionMajor(); 035 036 /** 037 * App Major Version number. 038 * 039 * <ul> 040 * <li> <b>Minimum Value:</b> 0 041 * <li> <b>Maximum Value:</b> 255 042 * <li> <b>Default Value:</b> 0 043 * <li> <b>Units:</b> 044 * </ul> 045 * <p> 046 * This refreshes and returns a cached StatusSignal object. 047 * 048 * @param refresh Whether to refresh the StatusSignal before returning it; 049 * defaults to true 050 * @return VersionMajor Status Signal Object 051 */ 052 StatusSignal<Integer> getVersionMajor(boolean refresh); 053 054 /** 055 * App Minor Version number. 056 * 057 * <ul> 058 * <li> <b>Minimum Value:</b> 0 059 * <li> <b>Maximum Value:</b> 255 060 * <li> <b>Default Value:</b> 0 061 * <li> <b>Units:</b> 062 * </ul> 063 * <p> 064 * This refreshes and returns a cached StatusSignal object. 065 * 066 * @return VersionMinor Status Signal Object 067 */ 068 StatusSignal<Integer> getVersionMinor(); 069 070 /** 071 * App Minor Version number. 072 * 073 * <ul> 074 * <li> <b>Minimum Value:</b> 0 075 * <li> <b>Maximum Value:</b> 255 076 * <li> <b>Default Value:</b> 0 077 * <li> <b>Units:</b> 078 * </ul> 079 * <p> 080 * This refreshes and returns a cached StatusSignal object. 081 * 082 * @param refresh Whether to refresh the StatusSignal before returning it; 083 * defaults to true 084 * @return VersionMinor Status Signal Object 085 */ 086 StatusSignal<Integer> getVersionMinor(boolean refresh); 087 088 /** 089 * App Bugfix Version number. 090 * 091 * <ul> 092 * <li> <b>Minimum Value:</b> 0 093 * <li> <b>Maximum Value:</b> 255 094 * <li> <b>Default Value:</b> 0 095 * <li> <b>Units:</b> 096 * </ul> 097 * <p> 098 * This refreshes and returns a cached StatusSignal object. 099 * 100 * @return VersionBugfix Status Signal Object 101 */ 102 StatusSignal<Integer> getVersionBugfix(); 103 104 /** 105 * App Bugfix Version number. 106 * 107 * <ul> 108 * <li> <b>Minimum Value:</b> 0 109 * <li> <b>Maximum Value:</b> 255 110 * <li> <b>Default Value:</b> 0 111 * <li> <b>Units:</b> 112 * </ul> 113 * <p> 114 * This refreshes and returns a cached StatusSignal object. 115 * 116 * @param refresh Whether to refresh the StatusSignal before returning it; 117 * defaults to true 118 * @return VersionBugfix Status Signal Object 119 */ 120 StatusSignal<Integer> getVersionBugfix(boolean refresh); 121 122 /** 123 * App Build Version number. 124 * 125 * <ul> 126 * <li> <b>Minimum Value:</b> 0 127 * <li> <b>Maximum Value:</b> 255 128 * <li> <b>Default Value:</b> 0 129 * <li> <b>Units:</b> 130 * </ul> 131 * <p> 132 * This refreshes and returns a cached StatusSignal object. 133 * 134 * @return VersionBuild Status Signal Object 135 */ 136 StatusSignal<Integer> getVersionBuild(); 137 138 /** 139 * App Build Version number. 140 * 141 * <ul> 142 * <li> <b>Minimum Value:</b> 0 143 * <li> <b>Maximum Value:</b> 255 144 * <li> <b>Default Value:</b> 0 145 * <li> <b>Units:</b> 146 * </ul> 147 * <p> 148 * This refreshes and returns a cached StatusSignal object. 149 * 150 * @param refresh Whether to refresh the StatusSignal before returning it; 151 * defaults to true 152 * @return VersionBuild Status Signal Object 153 */ 154 StatusSignal<Integer> getVersionBuild(boolean refresh); 155 156 /** 157 * Full Version of firmware in device. The format is a four byte 158 * value. 159 * 160 * <ul> 161 * <li> <b>Minimum Value:</b> 0 162 * <li> <b>Maximum Value:</b> 4294967295 163 * <li> <b>Default Value:</b> 0 164 * <li> <b>Units:</b> 165 * </ul> 166 * <p> 167 * This refreshes and returns a cached StatusSignal object. 168 * 169 * @return Version Status Signal Object 170 */ 171 StatusSignal<Integer> getVersion(); 172 173 /** 174 * Full Version of firmware in device. The format is a four byte 175 * value. 176 * 177 * <ul> 178 * <li> <b>Minimum Value:</b> 0 179 * <li> <b>Maximum Value:</b> 4294967295 180 * <li> <b>Default Value:</b> 0 181 * <li> <b>Units:</b> 182 * </ul> 183 * <p> 184 * This refreshes and returns a cached StatusSignal object. 185 * 186 * @param refresh Whether to refresh the StatusSignal before returning it; 187 * defaults to true 188 * @return Version Status Signal Object 189 */ 190 StatusSignal<Integer> getVersion(boolean refresh); 191 192 /** 193 * Integer representing all fault flags reported by the device. 194 * <p> 195 * These are device specific and are not used directly in typical 196 * applications. Use the signal specific GetFault_*() methods instead. 197 * 198 * <ul> 199 * <li> <b>Minimum Value:</b> 0 200 * <li> <b>Maximum Value:</b> 4294967295 201 * <li> <b>Default Value:</b> 0 202 * <li> <b>Units:</b> 203 * </ul> 204 * <p> 205 * This refreshes and returns a cached StatusSignal object. 206 * 207 * @return FaultField Status Signal Object 208 */ 209 StatusSignal<Integer> getFaultField(); 210 211 /** 212 * Integer representing all fault flags reported by the device. 213 * <p> 214 * These are device specific and are not used directly in typical 215 * applications. Use the signal specific GetFault_*() methods instead. 216 * 217 * <ul> 218 * <li> <b>Minimum Value:</b> 0 219 * <li> <b>Maximum Value:</b> 4294967295 220 * <li> <b>Default Value:</b> 0 221 * <li> <b>Units:</b> 222 * </ul> 223 * <p> 224 * This refreshes and returns a cached StatusSignal object. 225 * 226 * @param refresh Whether to refresh the StatusSignal before returning it; 227 * defaults to true 228 * @return FaultField Status Signal Object 229 */ 230 StatusSignal<Integer> getFaultField(boolean refresh); 231 232 /** 233 * Integer representing all (persistent) sticky fault flags reported 234 * by the device. 235 * <p> 236 * These are device specific and are not used directly in typical 237 * applications. Use the signal specific GetStickyFault_*() methods 238 * instead. 239 * 240 * <ul> 241 * <li> <b>Minimum Value:</b> 0 242 * <li> <b>Maximum Value:</b> 4294967295 243 * <li> <b>Default Value:</b> 0 244 * <li> <b>Units:</b> 245 * </ul> 246 * <p> 247 * This refreshes and returns a cached StatusSignal object. 248 * 249 * @return StickyFaultField Status Signal Object 250 */ 251 StatusSignal<Integer> getStickyFaultField(); 252 253 /** 254 * Integer representing all (persistent) sticky fault flags reported 255 * by the device. 256 * <p> 257 * These are device specific and are not used directly in typical 258 * applications. Use the signal specific GetStickyFault_*() methods 259 * instead. 260 * 261 * <ul> 262 * <li> <b>Minimum Value:</b> 0 263 * <li> <b>Maximum Value:</b> 4294967295 264 * <li> <b>Default Value:</b> 0 265 * <li> <b>Units:</b> 266 * </ul> 267 * <p> 268 * This refreshes and returns a cached StatusSignal object. 269 * 270 * @param refresh Whether to refresh the StatusSignal before returning it; 271 * defaults to true 272 * @return StickyFaultField Status Signal Object 273 */ 274 StatusSignal<Integer> getStickyFaultField(boolean refresh); 275 276 /** 277 * The applied (output) motor voltage. 278 * 279 * <ul> 280 * <li> <b>Minimum Value:</b> -40.96 281 * <li> <b>Maximum Value:</b> 40.95 282 * <li> <b>Default Value:</b> 0 283 * <li> <b>Units:</b> V 284 * </ul> 285 * <p> 286 * This refreshes and returns a cached StatusSignal object. 287 * 288 * @return MotorVoltage Status Signal Object 289 */ 290 StatusSignal<Voltage> getMotorVoltage(); 291 292 /** 293 * The applied (output) motor voltage. 294 * 295 * <ul> 296 * <li> <b>Minimum Value:</b> -40.96 297 * <li> <b>Maximum Value:</b> 40.95 298 * <li> <b>Default Value:</b> 0 299 * <li> <b>Units:</b> V 300 * </ul> 301 * <p> 302 * This refreshes and returns a cached StatusSignal object. 303 * 304 * @param refresh Whether to refresh the StatusSignal before returning it; 305 * defaults to true 306 * @return MotorVoltage Status Signal Object 307 */ 308 StatusSignal<Voltage> getMotorVoltage(boolean refresh); 309 310 /** 311 * Forward Limit Pin. 312 * 313 * <p> 314 * This refreshes and returns a cached StatusSignal object. 315 * 316 * @return ForwardLimit Status Signal Object 317 */ 318 StatusSignal<ForwardLimitValue> getForwardLimit(); 319 320 /** 321 * Forward Limit Pin. 322 * 323 * <p> 324 * This refreshes and returns a cached StatusSignal object. 325 * 326 * @param refresh Whether to refresh the StatusSignal before returning it; 327 * defaults to true 328 * @return ForwardLimit Status Signal Object 329 */ 330 StatusSignal<ForwardLimitValue> getForwardLimit(boolean refresh); 331 332 /** 333 * Reverse Limit Pin. 334 * 335 * <p> 336 * This refreshes and returns a cached StatusSignal object. 337 * 338 * @return ReverseLimit Status Signal Object 339 */ 340 StatusSignal<ReverseLimitValue> getReverseLimit(); 341 342 /** 343 * Reverse Limit Pin. 344 * 345 * <p> 346 * This refreshes and returns a cached StatusSignal object. 347 * 348 * @param refresh Whether to refresh the StatusSignal before returning it; 349 * defaults to true 350 * @return ReverseLimit Status Signal Object 351 */ 352 StatusSignal<ReverseLimitValue> getReverseLimit(boolean refresh); 353 354 /** 355 * The applied rotor polarity as seen from the front of the motor. 356 * This typically is determined by the Inverted config, but can be 357 * overridden if using Follower features. 358 * 359 * <p> 360 * This refreshes and returns a cached StatusSignal object. 361 * 362 * @return AppliedRotorPolarity Status Signal Object 363 */ 364 StatusSignal<AppliedRotorPolarityValue> getAppliedRotorPolarity(); 365 366 /** 367 * The applied rotor polarity as seen from the front of the motor. 368 * This typically is determined by the Inverted config, but can be 369 * overridden if using Follower features. 370 * 371 * <p> 372 * This refreshes and returns a cached StatusSignal object. 373 * 374 * @param refresh Whether to refresh the StatusSignal before returning it; 375 * defaults to true 376 * @return AppliedRotorPolarity Status Signal Object 377 */ 378 StatusSignal<AppliedRotorPolarityValue> getAppliedRotorPolarity(boolean refresh); 379 380 /** 381 * The applied motor duty cycle. 382 * 383 * <ul> 384 * <li> <b>Minimum Value:</b> -2.0 385 * <li> <b>Maximum Value:</b> 1.9990234375 386 * <li> <b>Default Value:</b> 0 387 * <li> <b>Units:</b> fractional 388 * </ul> 389 * <p> 390 * This refreshes and returns a cached StatusSignal object. 391 * 392 * @return DutyCycle Status Signal Object 393 */ 394 StatusSignal<Double> getDutyCycle(); 395 396 /** 397 * The applied motor duty cycle. 398 * 399 * <ul> 400 * <li> <b>Minimum Value:</b> -2.0 401 * <li> <b>Maximum Value:</b> 1.9990234375 402 * <li> <b>Default Value:</b> 0 403 * <li> <b>Units:</b> fractional 404 * </ul> 405 * <p> 406 * This refreshes and returns a cached StatusSignal object. 407 * 408 * @param refresh Whether to refresh the StatusSignal before returning it; 409 * defaults to true 410 * @return DutyCycle Status Signal Object 411 */ 412 StatusSignal<Double> getDutyCycle(boolean refresh); 413 414 /** 415 * Current corresponding to the torque output by the motor. Similar to 416 * StatorCurrent. Users will likely prefer this current to calculate 417 * the applied torque to the rotor. 418 * <p> 419 * Stator current where positive current means torque is applied in 420 * the forward direction as determined by the Inverted setting. 421 * 422 * <ul> 423 * <li> <b>Minimum Value:</b> -327.68 424 * <li> <b>Maximum Value:</b> 327.67 425 * <li> <b>Default Value:</b> 0 426 * <li> <b>Units:</b> A 427 * </ul> 428 * <p> 429 * This refreshes and returns a cached StatusSignal object. 430 * 431 * @return TorqueCurrent Status Signal Object 432 */ 433 StatusSignal<Current> getTorqueCurrent(); 434 435 /** 436 * Current corresponding to the torque output by the motor. Similar to 437 * StatorCurrent. Users will likely prefer this current to calculate 438 * the applied torque to the rotor. 439 * <p> 440 * Stator current where positive current means torque is applied in 441 * the forward direction as determined by the Inverted setting. 442 * 443 * <ul> 444 * <li> <b>Minimum Value:</b> -327.68 445 * <li> <b>Maximum Value:</b> 327.67 446 * <li> <b>Default Value:</b> 0 447 * <li> <b>Units:</b> A 448 * </ul> 449 * <p> 450 * This refreshes and returns a cached StatusSignal object. 451 * 452 * @param refresh Whether to refresh the StatusSignal before returning it; 453 * defaults to true 454 * @return TorqueCurrent Status Signal Object 455 */ 456 StatusSignal<Current> getTorqueCurrent(boolean refresh); 457 458 /** 459 * Current corresponding to the stator windings. Similar to 460 * TorqueCurrent. Users will likely prefer TorqueCurrent over 461 * StatorCurrent. 462 * <p> 463 * Stator current where Positive current indicates motoring regardless 464 * of direction. Negative current indicates regenerative braking 465 * regardless of direction. 466 * 467 * <ul> 468 * <li> <b>Minimum Value:</b> -327.68 469 * <li> <b>Maximum Value:</b> 327.66 470 * <li> <b>Default Value:</b> 0 471 * <li> <b>Units:</b> A 472 * </ul> 473 * <p> 474 * This refreshes and returns a cached StatusSignal object. 475 * 476 * @return StatorCurrent Status Signal Object 477 */ 478 StatusSignal<Current> getStatorCurrent(); 479 480 /** 481 * Current corresponding to the stator windings. Similar to 482 * TorqueCurrent. Users will likely prefer TorqueCurrent over 483 * StatorCurrent. 484 * <p> 485 * Stator current where Positive current indicates motoring regardless 486 * of direction. Negative current indicates regenerative braking 487 * regardless of direction. 488 * 489 * <ul> 490 * <li> <b>Minimum Value:</b> -327.68 491 * <li> <b>Maximum Value:</b> 327.66 492 * <li> <b>Default Value:</b> 0 493 * <li> <b>Units:</b> A 494 * </ul> 495 * <p> 496 * This refreshes and returns a cached StatusSignal object. 497 * 498 * @param refresh Whether to refresh the StatusSignal before returning it; 499 * defaults to true 500 * @return StatorCurrent Status Signal Object 501 */ 502 StatusSignal<Current> getStatorCurrent(boolean refresh); 503 504 /** 505 * Measured supply side current. 506 * 507 * <ul> 508 * <li> <b>Minimum Value:</b> -327.68 509 * <li> <b>Maximum Value:</b> 327.66 510 * <li> <b>Default Value:</b> 0 511 * <li> <b>Units:</b> A 512 * </ul> 513 * <p> 514 * This refreshes and returns a cached StatusSignal object. 515 * 516 * @return SupplyCurrent Status Signal Object 517 */ 518 StatusSignal<Current> getSupplyCurrent(); 519 520 /** 521 * Measured supply side current. 522 * 523 * <ul> 524 * <li> <b>Minimum Value:</b> -327.68 525 * <li> <b>Maximum Value:</b> 327.66 526 * <li> <b>Default Value:</b> 0 527 * <li> <b>Units:</b> A 528 * </ul> 529 * <p> 530 * This refreshes and returns a cached StatusSignal object. 531 * 532 * @param refresh Whether to refresh the StatusSignal before returning it; 533 * defaults to true 534 * @return SupplyCurrent Status Signal Object 535 */ 536 StatusSignal<Current> getSupplyCurrent(boolean refresh); 537 538 /** 539 * Measured supply voltage to the device. 540 * 541 * <ul> 542 * <li> <b>Minimum Value:</b> 4 543 * <li> <b>Maximum Value:</b> 29.575 544 * <li> <b>Default Value:</b> 4 545 * <li> <b>Units:</b> V 546 * </ul> 547 * <p> 548 * This refreshes and returns a cached StatusSignal object. 549 * 550 * @return SupplyVoltage Status Signal Object 551 */ 552 StatusSignal<Voltage> getSupplyVoltage(); 553 554 /** 555 * Measured supply voltage to the device. 556 * 557 * <ul> 558 * <li> <b>Minimum Value:</b> 4 559 * <li> <b>Maximum Value:</b> 29.575 560 * <li> <b>Default Value:</b> 4 561 * <li> <b>Units:</b> V 562 * </ul> 563 * <p> 564 * This refreshes and returns a cached StatusSignal object. 565 * 566 * @param refresh Whether to refresh the StatusSignal before returning it; 567 * defaults to true 568 * @return SupplyVoltage Status Signal Object 569 */ 570 StatusSignal<Voltage> getSupplyVoltage(boolean refresh); 571 572 /** 573 * Temperature of device. 574 * <p> 575 * This is the temperature that the device measures itself to be at. 576 * Similar to Processor Temperature. 577 * 578 * <ul> 579 * <li> <b>Minimum Value:</b> 0.0 580 * <li> <b>Maximum Value:</b> 255.0 581 * <li> <b>Default Value:</b> 0 582 * <li> <b>Units:</b> ℃ 583 * </ul> 584 * <p> 585 * This refreshes and returns a cached StatusSignal object. 586 * 587 * @return DeviceTemp Status Signal Object 588 */ 589 StatusSignal<Temperature> getDeviceTemp(); 590 591 /** 592 * Temperature of device. 593 * <p> 594 * This is the temperature that the device measures itself to be at. 595 * Similar to Processor Temperature. 596 * 597 * <ul> 598 * <li> <b>Minimum Value:</b> 0.0 599 * <li> <b>Maximum Value:</b> 255.0 600 * <li> <b>Default Value:</b> 0 601 * <li> <b>Units:</b> ℃ 602 * </ul> 603 * <p> 604 * This refreshes and returns a cached StatusSignal object. 605 * 606 * @param refresh Whether to refresh the StatusSignal before returning it; 607 * defaults to true 608 * @return DeviceTemp Status Signal Object 609 */ 610 StatusSignal<Temperature> getDeviceTemp(boolean refresh); 611 612 /** 613 * Temperature of the processor. 614 * <p> 615 * This is the temperature that the processor measures itself to be 616 * at. Similar to Device Temperature. 617 * 618 * <ul> 619 * <li> <b>Minimum Value:</b> 0.0 620 * <li> <b>Maximum Value:</b> 255.0 621 * <li> <b>Default Value:</b> 0 622 * <li> <b>Units:</b> ℃ 623 * </ul> 624 * <p> 625 * This refreshes and returns a cached StatusSignal object. 626 * 627 * @return ProcessorTemp Status Signal Object 628 */ 629 StatusSignal<Temperature> getProcessorTemp(); 630 631 /** 632 * Temperature of the processor. 633 * <p> 634 * This is the temperature that the processor measures itself to be 635 * at. Similar to Device Temperature. 636 * 637 * <ul> 638 * <li> <b>Minimum Value:</b> 0.0 639 * <li> <b>Maximum Value:</b> 255.0 640 * <li> <b>Default Value:</b> 0 641 * <li> <b>Units:</b> ℃ 642 * </ul> 643 * <p> 644 * This refreshes and returns a cached StatusSignal object. 645 * 646 * @param refresh Whether to refresh the StatusSignal before returning it; 647 * defaults to true 648 * @return ProcessorTemp Status Signal Object 649 */ 650 StatusSignal<Temperature> getProcessorTemp(boolean refresh); 651 652 /** 653 * Velocity of the motor rotor. This velocity is not affected by any 654 * feedback configs. 655 * 656 * <ul> 657 * <li> <b>Minimum Value:</b> -512.0 658 * <li> <b>Maximum Value:</b> 511.998046875 659 * <li> <b>Default Value:</b> 0 660 * <li> <b>Units:</b> rotations per second 661 * </ul> 662 * <p> 663 * This refreshes and returns a cached StatusSignal object. 664 * 665 * @return RotorVelocity Status Signal Object 666 */ 667 StatusSignal<AngularVelocity> getRotorVelocity(); 668 669 /** 670 * Velocity of the motor rotor. This velocity is not affected by any 671 * feedback configs. 672 * 673 * <ul> 674 * <li> <b>Minimum Value:</b> -512.0 675 * <li> <b>Maximum Value:</b> 511.998046875 676 * <li> <b>Default Value:</b> 0 677 * <li> <b>Units:</b> rotations per second 678 * </ul> 679 * <p> 680 * This refreshes and returns a cached StatusSignal object. 681 * 682 * @param refresh Whether to refresh the StatusSignal before returning it; 683 * defaults to true 684 * @return RotorVelocity Status Signal Object 685 */ 686 StatusSignal<AngularVelocity> getRotorVelocity(boolean refresh); 687 688 /** 689 * Position of the motor rotor. This position is only affected by the 690 * RotorOffset config and calls to setPosition. 691 * 692 * <ul> 693 * <li> <b>Minimum Value:</b> -16384.0 694 * <li> <b>Maximum Value:</b> 16383.999755859375 695 * <li> <b>Default Value:</b> 0 696 * <li> <b>Units:</b> rotations 697 * </ul> 698 * <p> 699 * This refreshes and returns a cached StatusSignal object. 700 * 701 * @return RotorPosition Status Signal Object 702 */ 703 StatusSignal<Angle> getRotorPosition(); 704 705 /** 706 * Position of the motor rotor. This position is only affected by the 707 * RotorOffset config and calls to setPosition. 708 * 709 * <ul> 710 * <li> <b>Minimum Value:</b> -16384.0 711 * <li> <b>Maximum Value:</b> 16383.999755859375 712 * <li> <b>Default Value:</b> 0 713 * <li> <b>Units:</b> rotations 714 * </ul> 715 * <p> 716 * This refreshes and returns a cached StatusSignal object. 717 * 718 * @param refresh Whether to refresh the StatusSignal before returning it; 719 * defaults to true 720 * @return RotorPosition Status Signal Object 721 */ 722 StatusSignal<Angle> getRotorPosition(boolean refresh); 723 724 /** 725 * Velocity of the device in mechanism rotations per second. This can 726 * be the velocity of a remote sensor and is affected by the 727 * RotorToSensorRatio and SensorToMechanismRatio configs. 728 * 729 * <ul> 730 * <li> <b>Minimum Value:</b> -512.0 731 * <li> <b>Maximum Value:</b> 511.998046875 732 * <li> <b>Default Value:</b> 0 733 * <li> <b>Units:</b> rotations per second 734 * </ul> 735 * <p> 736 * This refreshes and returns a cached StatusSignal object. 737 * 738 * @return Velocity Status Signal Object 739 */ 740 StatusSignal<AngularVelocity> getVelocity(); 741 742 /** 743 * Velocity of the device in mechanism rotations per second. This can 744 * be the velocity of a remote sensor and is affected by the 745 * RotorToSensorRatio and SensorToMechanismRatio configs. 746 * 747 * <ul> 748 * <li> <b>Minimum Value:</b> -512.0 749 * <li> <b>Maximum Value:</b> 511.998046875 750 * <li> <b>Default Value:</b> 0 751 * <li> <b>Units:</b> rotations per second 752 * </ul> 753 * <p> 754 * This refreshes and returns a cached StatusSignal object. 755 * 756 * @param refresh Whether to refresh the StatusSignal before returning it; 757 * defaults to true 758 * @return Velocity Status Signal Object 759 */ 760 StatusSignal<AngularVelocity> getVelocity(boolean refresh); 761 762 /** 763 * Position of the device in mechanism rotations. This can be the 764 * position of a remote sensor and is affected by the 765 * RotorToSensorRatio and SensorToMechanismRatio configs, as well as 766 * calls to setPosition. 767 * 768 * <ul> 769 * <li> <b>Minimum Value:</b> -16384.0 770 * <li> <b>Maximum Value:</b> 16383.999755859375 771 * <li> <b>Default Value:</b> 0 772 * <li> <b>Units:</b> rotations 773 * </ul> 774 * <p> 775 * This refreshes and returns a cached StatusSignal object. 776 * 777 * @return Position Status Signal Object 778 */ 779 StatusSignal<Angle> getPosition(); 780 781 /** 782 * Position of the device in mechanism rotations. This can be the 783 * position of a remote sensor and is affected by the 784 * RotorToSensorRatio and SensorToMechanismRatio configs, as well as 785 * calls to setPosition. 786 * 787 * <ul> 788 * <li> <b>Minimum Value:</b> -16384.0 789 * <li> <b>Maximum Value:</b> 16383.999755859375 790 * <li> <b>Default Value:</b> 0 791 * <li> <b>Units:</b> rotations 792 * </ul> 793 * <p> 794 * This refreshes and returns a cached StatusSignal object. 795 * 796 * @param refresh Whether to refresh the StatusSignal before returning it; 797 * defaults to true 798 * @return Position Status Signal Object 799 */ 800 StatusSignal<Angle> getPosition(boolean refresh); 801 802 /** 803 * Acceleration of the device in mechanism rotations per second². This 804 * can be the acceleration of a remote sensor and is affected by the 805 * RotorToSensorRatio and SensorToMechanismRatio configs. 806 * 807 * <ul> 808 * <li> <b>Minimum Value:</b> -2048.0 809 * <li> <b>Maximum Value:</b> 2047.75 810 * <li> <b>Default Value:</b> 0 811 * <li> <b>Units:</b> rotations per second² 812 * </ul> 813 * <p> 814 * This refreshes and returns a cached StatusSignal object. 815 * 816 * @return Acceleration Status Signal Object 817 */ 818 StatusSignal<AngularAcceleration> getAcceleration(); 819 820 /** 821 * Acceleration of the device in mechanism rotations per second². This 822 * can be the acceleration of a remote sensor and is affected by the 823 * RotorToSensorRatio and SensorToMechanismRatio configs. 824 * 825 * <ul> 826 * <li> <b>Minimum Value:</b> -2048.0 827 * <li> <b>Maximum Value:</b> 2047.75 828 * <li> <b>Default Value:</b> 0 829 * <li> <b>Units:</b> rotations per second² 830 * </ul> 831 * <p> 832 * This refreshes and returns a cached StatusSignal object. 833 * 834 * @param refresh Whether to refresh the StatusSignal before returning it; 835 * defaults to true 836 * @return Acceleration Status Signal Object 837 */ 838 StatusSignal<AngularAcceleration> getAcceleration(boolean refresh); 839 840 /** 841 * The active control mode of the motor controller. 842 * 843 * <p> 844 * This refreshes and returns a cached StatusSignal object. 845 * 846 * @return ControlMode Status Signal Object 847 */ 848 StatusSignal<ControlModeValue> getControlMode(); 849 850 /** 851 * The active control mode of the motor controller. 852 * 853 * <p> 854 * This refreshes and returns a cached StatusSignal object. 855 * 856 * @param refresh Whether to refresh the StatusSignal before returning it; 857 * defaults to true 858 * @return ControlMode Status Signal Object 859 */ 860 StatusSignal<ControlModeValue> getControlMode(boolean refresh); 861 862 /** 863 * Check if the Motion Magic® profile has reached the target. This is 864 * equivalent to checking that MotionMagicIsRunning, the 865 * ClosedLoopReference is the target, and the ClosedLoopReferenceSlope 866 * is 0. 867 * 868 * <ul> 869 * <li> <b>Default Value:</b> False 870 * </ul> 871 * <p> 872 * This refreshes and returns a cached StatusSignal object. 873 * 874 * @return MotionMagicAtTarget Status Signal Object 875 */ 876 StatusSignal<Boolean> getMotionMagicAtTarget(); 877 878 /** 879 * Check if the Motion Magic® profile has reached the target. This is 880 * equivalent to checking that MotionMagicIsRunning, the 881 * ClosedLoopReference is the target, and the ClosedLoopReferenceSlope 882 * is 0. 883 * 884 * <ul> 885 * <li> <b>Default Value:</b> False 886 * </ul> 887 * <p> 888 * This refreshes and returns a cached StatusSignal object. 889 * 890 * @param refresh Whether to refresh the StatusSignal before returning it; 891 * defaults to true 892 * @return MotionMagicAtTarget Status Signal Object 893 */ 894 StatusSignal<Boolean> getMotionMagicAtTarget(boolean refresh); 895 896 /** 897 * Check if Motion Magic® is running. This is equivalent to checking 898 * that the reported control mode is a Motion Magic® based mode. 899 * 900 * <ul> 901 * <li> <b>Default Value:</b> False 902 * </ul> 903 * <p> 904 * This refreshes and returns a cached StatusSignal object. 905 * 906 * @return MotionMagicIsRunning Status Signal Object 907 */ 908 StatusSignal<Boolean> getMotionMagicIsRunning(); 909 910 /** 911 * Check if Motion Magic® is running. This is equivalent to checking 912 * that the reported control mode is a Motion Magic® based mode. 913 * 914 * <ul> 915 * <li> <b>Default Value:</b> False 916 * </ul> 917 * <p> 918 * This refreshes and returns a cached StatusSignal object. 919 * 920 * @param refresh Whether to refresh the StatusSignal before returning it; 921 * defaults to true 922 * @return MotionMagicIsRunning Status Signal Object 923 */ 924 StatusSignal<Boolean> getMotionMagicIsRunning(boolean refresh); 925 926 /** 927 * Indicates if the robot is enabled. 928 * 929 * <p> 930 * This refreshes and returns a cached StatusSignal object. 931 * 932 * @return RobotEnable Status Signal Object 933 */ 934 StatusSignal<RobotEnableValue> getRobotEnable(); 935 936 /** 937 * Indicates if the robot is enabled. 938 * 939 * <p> 940 * This refreshes and returns a cached StatusSignal object. 941 * 942 * @param refresh Whether to refresh the StatusSignal before returning it; 943 * defaults to true 944 * @return RobotEnable Status Signal Object 945 */ 946 StatusSignal<RobotEnableValue> getRobotEnable(boolean refresh); 947 948 /** 949 * Indicates if device is actuator enabled. 950 * 951 * <p> 952 * This refreshes and returns a cached StatusSignal object. 953 * 954 * @return DeviceEnable Status Signal Object 955 */ 956 StatusSignal<DeviceEnableValue> getDeviceEnable(); 957 958 /** 959 * Indicates if device is actuator enabled. 960 * 961 * <p> 962 * This refreshes and returns a cached StatusSignal object. 963 * 964 * @param refresh Whether to refresh the StatusSignal before returning it; 965 * defaults to true 966 * @return DeviceEnable Status Signal Object 967 */ 968 StatusSignal<DeviceEnableValue> getDeviceEnable(boolean refresh); 969 970 /** 971 * The slot that the closed-loop PID is using. 972 * 973 * <ul> 974 * <li> <b>Minimum Value:</b> 0 975 * <li> <b>Maximum Value:</b> 2 976 * <li> <b>Default Value:</b> 0 977 * <li> <b>Units:</b> 978 * </ul> 979 * <p> 980 * This refreshes and returns a cached StatusSignal object. 981 * 982 * @return ClosedLoopSlot Status Signal Object 983 */ 984 StatusSignal<Integer> getClosedLoopSlot(); 985 986 /** 987 * The slot that the closed-loop PID is using. 988 * 989 * <ul> 990 * <li> <b>Minimum Value:</b> 0 991 * <li> <b>Maximum Value:</b> 2 992 * <li> <b>Default Value:</b> 0 993 * <li> <b>Units:</b> 994 * </ul> 995 * <p> 996 * This refreshes and returns a cached StatusSignal object. 997 * 998 * @param refresh Whether to refresh the StatusSignal before returning it; 999 * defaults to true 1000 * @return ClosedLoopSlot Status Signal Object 1001 */ 1002 StatusSignal<Integer> getClosedLoopSlot(boolean refresh); 1003 1004 /** 1005 * Assess the status of the motor output with respect to load and 1006 * supply. 1007 * <p> 1008 * This routine can be used to determine the general status of motor 1009 * commutation. 1010 * 1011 * <p> 1012 * This refreshes and returns a cached StatusSignal object. 1013 * 1014 * @return MotorOutputStatus Status Signal Object 1015 */ 1016 StatusSignal<MotorOutputStatusValue> getMotorOutputStatus(); 1017 1018 /** 1019 * Assess the status of the motor output with respect to load and 1020 * supply. 1021 * <p> 1022 * This routine can be used to determine the general status of motor 1023 * commutation. 1024 * 1025 * <p> 1026 * This refreshes and returns a cached StatusSignal object. 1027 * 1028 * @param refresh Whether to refresh the StatusSignal before returning it; 1029 * defaults to true 1030 * @return MotorOutputStatus Status Signal Object 1031 */ 1032 StatusSignal<MotorOutputStatusValue> getMotorOutputStatus(boolean refresh); 1033 1034 /** 1035 * The active control mode of the differential controller. 1036 * 1037 * <p> 1038 * This refreshes and returns a cached StatusSignal object. 1039 * 1040 * @return DifferentialControlMode Status Signal Object 1041 */ 1042 StatusSignal<DifferentialControlModeValue> getDifferentialControlMode(); 1043 1044 /** 1045 * The active control mode of the differential controller. 1046 * 1047 * <p> 1048 * This refreshes and returns a cached StatusSignal object. 1049 * 1050 * @param refresh Whether to refresh the StatusSignal before returning it; 1051 * defaults to true 1052 * @return DifferentialControlMode Status Signal Object 1053 */ 1054 StatusSignal<DifferentialControlModeValue> getDifferentialControlMode(boolean refresh); 1055 1056 /** 1057 * Average component of the differential velocity of device. 1058 * 1059 * <ul> 1060 * <li> <b>Minimum Value:</b> -512.0 1061 * <li> <b>Maximum Value:</b> 511.998046875 1062 * <li> <b>Default Value:</b> 0 1063 * <li> <b>Units:</b> rotations per second 1064 * </ul> 1065 * <p> 1066 * This refreshes and returns a cached StatusSignal object. 1067 * 1068 * @return DifferentialAverageVelocity Status Signal Object 1069 */ 1070 StatusSignal<AngularVelocity> getDifferentialAverageVelocity(); 1071 1072 /** 1073 * Average component of the differential velocity of device. 1074 * 1075 * <ul> 1076 * <li> <b>Minimum Value:</b> -512.0 1077 * <li> <b>Maximum Value:</b> 511.998046875 1078 * <li> <b>Default Value:</b> 0 1079 * <li> <b>Units:</b> rotations per second 1080 * </ul> 1081 * <p> 1082 * This refreshes and returns a cached StatusSignal object. 1083 * 1084 * @param refresh Whether to refresh the StatusSignal before returning it; 1085 * defaults to true 1086 * @return DifferentialAverageVelocity Status Signal Object 1087 */ 1088 StatusSignal<AngularVelocity> getDifferentialAverageVelocity(boolean refresh); 1089 1090 /** 1091 * Average component of the differential position of device. 1092 * 1093 * <ul> 1094 * <li> <b>Minimum Value:</b> -16384.0 1095 * <li> <b>Maximum Value:</b> 16383.999755859375 1096 * <li> <b>Default Value:</b> 0 1097 * <li> <b>Units:</b> rotations 1098 * </ul> 1099 * <p> 1100 * This refreshes and returns a cached StatusSignal object. 1101 * 1102 * @return DifferentialAveragePosition Status Signal Object 1103 */ 1104 StatusSignal<Angle> getDifferentialAveragePosition(); 1105 1106 /** 1107 * Average component of the differential position of device. 1108 * 1109 * <ul> 1110 * <li> <b>Minimum Value:</b> -16384.0 1111 * <li> <b>Maximum Value:</b> 16383.999755859375 1112 * <li> <b>Default Value:</b> 0 1113 * <li> <b>Units:</b> rotations 1114 * </ul> 1115 * <p> 1116 * This refreshes and returns a cached StatusSignal object. 1117 * 1118 * @param refresh Whether to refresh the StatusSignal before returning it; 1119 * defaults to true 1120 * @return DifferentialAveragePosition Status Signal Object 1121 */ 1122 StatusSignal<Angle> getDifferentialAveragePosition(boolean refresh); 1123 1124 /** 1125 * Difference component of the differential velocity of device. 1126 * 1127 * <ul> 1128 * <li> <b>Minimum Value:</b> -512.0 1129 * <li> <b>Maximum Value:</b> 511.998046875 1130 * <li> <b>Default Value:</b> 0 1131 * <li> <b>Units:</b> rotations per second 1132 * </ul> 1133 * <p> 1134 * This refreshes and returns a cached StatusSignal object. 1135 * 1136 * @return DifferentialDifferenceVelocity Status Signal Object 1137 */ 1138 StatusSignal<AngularVelocity> getDifferentialDifferenceVelocity(); 1139 1140 /** 1141 * Difference component of the differential velocity of device. 1142 * 1143 * <ul> 1144 * <li> <b>Minimum Value:</b> -512.0 1145 * <li> <b>Maximum Value:</b> 511.998046875 1146 * <li> <b>Default Value:</b> 0 1147 * <li> <b>Units:</b> rotations per second 1148 * </ul> 1149 * <p> 1150 * This refreshes and returns a cached StatusSignal object. 1151 * 1152 * @param refresh Whether to refresh the StatusSignal before returning it; 1153 * defaults to true 1154 * @return DifferentialDifferenceVelocity Status Signal Object 1155 */ 1156 StatusSignal<AngularVelocity> getDifferentialDifferenceVelocity(boolean refresh); 1157 1158 /** 1159 * Difference component of the differential position of device. 1160 * 1161 * <ul> 1162 * <li> <b>Minimum Value:</b> -16384.0 1163 * <li> <b>Maximum Value:</b> 16383.999755859375 1164 * <li> <b>Default Value:</b> 0 1165 * <li> <b>Units:</b> rotations 1166 * </ul> 1167 * <p> 1168 * This refreshes and returns a cached StatusSignal object. 1169 * 1170 * @return DifferentialDifferencePosition Status Signal Object 1171 */ 1172 StatusSignal<Angle> getDifferentialDifferencePosition(); 1173 1174 /** 1175 * Difference component of the differential position of device. 1176 * 1177 * <ul> 1178 * <li> <b>Minimum Value:</b> -16384.0 1179 * <li> <b>Maximum Value:</b> 16383.999755859375 1180 * <li> <b>Default Value:</b> 0 1181 * <li> <b>Units:</b> rotations 1182 * </ul> 1183 * <p> 1184 * This refreshes and returns a cached StatusSignal object. 1185 * 1186 * @param refresh Whether to refresh the StatusSignal before returning it; 1187 * defaults to true 1188 * @return DifferentialDifferencePosition Status Signal Object 1189 */ 1190 StatusSignal<Angle> getDifferentialDifferencePosition(boolean refresh); 1191 1192 /** 1193 * The slot that the closed-loop differential PID is using. 1194 * 1195 * <ul> 1196 * <li> <b>Minimum Value:</b> 0 1197 * <li> <b>Maximum Value:</b> 2 1198 * <li> <b>Default Value:</b> 0 1199 * <li> <b>Units:</b> 1200 * </ul> 1201 * <p> 1202 * This refreshes and returns a cached StatusSignal object. 1203 * 1204 * @return DifferentialClosedLoopSlot Status Signal Object 1205 */ 1206 StatusSignal<Integer> getDifferentialClosedLoopSlot(); 1207 1208 /** 1209 * The slot that the closed-loop differential PID is using. 1210 * 1211 * <ul> 1212 * <li> <b>Minimum Value:</b> 0 1213 * <li> <b>Maximum Value:</b> 2 1214 * <li> <b>Default Value:</b> 0 1215 * <li> <b>Units:</b> 1216 * </ul> 1217 * <p> 1218 * This refreshes and returns a cached StatusSignal object. 1219 * 1220 * @param refresh Whether to refresh the StatusSignal before returning it; 1221 * defaults to true 1222 * @return DifferentialClosedLoopSlot Status Signal Object 1223 */ 1224 StatusSignal<Integer> getDifferentialClosedLoopSlot(boolean refresh); 1225 1226 /** 1227 * The torque constant (K_T) of the motor. 1228 * 1229 * <ul> 1230 * <li> <b>Minimum Value:</b> 0.0 1231 * <li> <b>Maximum Value:</b> 0.025500000000000002 1232 * <li> <b>Default Value:</b> 0 1233 * <li> <b>Units:</b> Nm/A 1234 * </ul> 1235 * <p> 1236 * This refreshes and returns a cached StatusSignal object. 1237 * 1238 * @return MotorKT Status Signal Object 1239 */ 1240 StatusSignal<Per<TorqueUnit, CurrentUnit>> getMotorKT(); 1241 1242 /** 1243 * The torque constant (K_T) of the motor. 1244 * 1245 * <ul> 1246 * <li> <b>Minimum Value:</b> 0.0 1247 * <li> <b>Maximum Value:</b> 0.025500000000000002 1248 * <li> <b>Default Value:</b> 0 1249 * <li> <b>Units:</b> Nm/A 1250 * </ul> 1251 * <p> 1252 * This refreshes and returns a cached StatusSignal object. 1253 * 1254 * @param refresh Whether to refresh the StatusSignal before returning it; 1255 * defaults to true 1256 * @return MotorKT Status Signal Object 1257 */ 1258 StatusSignal<Per<TorqueUnit, CurrentUnit>> getMotorKT(boolean refresh); 1259 1260 /** 1261 * The velocity constant (K_V) of the motor. 1262 * 1263 * <ul> 1264 * <li> <b>Minimum Value:</b> 0.0 1265 * <li> <b>Maximum Value:</b> 2047.0 1266 * <li> <b>Default Value:</b> 0 1267 * <li> <b>Units:</b> RPM/V 1268 * </ul> 1269 * <p> 1270 * This refreshes and returns a cached StatusSignal object. 1271 * 1272 * @return MotorKV Status Signal Object 1273 */ 1274 StatusSignal<Per<AngularVelocityUnit, VoltageUnit>> getMotorKV(); 1275 1276 /** 1277 * The velocity constant (K_V) of the motor. 1278 * 1279 * <ul> 1280 * <li> <b>Minimum Value:</b> 0.0 1281 * <li> <b>Maximum Value:</b> 2047.0 1282 * <li> <b>Default Value:</b> 0 1283 * <li> <b>Units:</b> RPM/V 1284 * </ul> 1285 * <p> 1286 * This refreshes and returns a cached StatusSignal object. 1287 * 1288 * @param refresh Whether to refresh the StatusSignal before returning it; 1289 * defaults to true 1290 * @return MotorKV Status Signal Object 1291 */ 1292 StatusSignal<Per<AngularVelocityUnit, VoltageUnit>> getMotorKV(boolean refresh); 1293 1294 /** 1295 * The stall current of the motor at 12 V output. 1296 * 1297 * <ul> 1298 * <li> <b>Minimum Value:</b> 0.0 1299 * <li> <b>Maximum Value:</b> 1023.0 1300 * <li> <b>Default Value:</b> 0 1301 * <li> <b>Units:</b> A 1302 * </ul> 1303 * <p> 1304 * This refreshes and returns a cached StatusSignal object. 1305 * 1306 * @return MotorStallCurrent Status Signal Object 1307 */ 1308 StatusSignal<Current> getMotorStallCurrent(); 1309 1310 /** 1311 * The stall current of the motor at 12 V output. 1312 * 1313 * <ul> 1314 * <li> <b>Minimum Value:</b> 0.0 1315 * <li> <b>Maximum Value:</b> 1023.0 1316 * <li> <b>Default Value:</b> 0 1317 * <li> <b>Units:</b> A 1318 * </ul> 1319 * <p> 1320 * This refreshes and returns a cached StatusSignal object. 1321 * 1322 * @param refresh Whether to refresh the StatusSignal before returning it; 1323 * defaults to true 1324 * @return MotorStallCurrent Status Signal Object 1325 */ 1326 StatusSignal<Current> getMotorStallCurrent(boolean refresh); 1327 1328 /** 1329 * The applied output of the bridge. 1330 * 1331 * <p> 1332 * This refreshes and returns a cached StatusSignal object. 1333 * 1334 * @return BridgeOutput Status Signal Object 1335 */ 1336 StatusSignal<BridgeOutputValue> getBridgeOutput(); 1337 1338 /** 1339 * The applied output of the bridge. 1340 * 1341 * <p> 1342 * This refreshes and returns a cached StatusSignal object. 1343 * 1344 * @param refresh Whether to refresh the StatusSignal before returning it; 1345 * defaults to true 1346 * @return BridgeOutput Status Signal Object 1347 */ 1348 StatusSignal<BridgeOutputValue> getBridgeOutput(boolean refresh); 1349 1350 /** 1351 * Whether the device is Phoenix Pro licensed. 1352 * 1353 * <ul> 1354 * <li> <b>Default Value:</b> False 1355 * </ul> 1356 * <p> 1357 * This refreshes and returns a cached StatusSignal object. 1358 * 1359 * @return IsProLicensed Status Signal Object 1360 */ 1361 StatusSignal<Boolean> getIsProLicensed(); 1362 1363 /** 1364 * Whether the device is Phoenix Pro licensed. 1365 * 1366 * <ul> 1367 * <li> <b>Default Value:</b> False 1368 * </ul> 1369 * <p> 1370 * This refreshes and returns a cached StatusSignal object. 1371 * 1372 * @param refresh Whether to refresh the StatusSignal before returning it; 1373 * defaults to true 1374 * @return IsProLicensed Status Signal Object 1375 */ 1376 StatusSignal<Boolean> getIsProLicensed(boolean refresh); 1377 1378 /** 1379 * Temperature of device from second sensor. 1380 * <p> 1381 * Newer versions of Talon have multiple temperature measurement 1382 * methods. 1383 * 1384 * <ul> 1385 * <li> <b>Minimum Value:</b> 0.0 1386 * <li> <b>Maximum Value:</b> 255.0 1387 * <li> <b>Default Value:</b> 0 1388 * <li> <b>Units:</b> ℃ 1389 * </ul> 1390 * <p> 1391 * This refreshes and returns a cached StatusSignal object. 1392 * 1393 * @return AncillaryDeviceTemp Status Signal Object 1394 */ 1395 StatusSignal<Temperature> getAncillaryDeviceTemp(); 1396 1397 /** 1398 * Temperature of device from second sensor. 1399 * <p> 1400 * Newer versions of Talon have multiple temperature measurement 1401 * methods. 1402 * 1403 * <ul> 1404 * <li> <b>Minimum Value:</b> 0.0 1405 * <li> <b>Maximum Value:</b> 255.0 1406 * <li> <b>Default Value:</b> 0 1407 * <li> <b>Units:</b> ℃ 1408 * </ul> 1409 * <p> 1410 * This refreshes and returns a cached StatusSignal object. 1411 * 1412 * @param refresh Whether to refresh the StatusSignal before returning it; 1413 * defaults to true 1414 * @return AncillaryDeviceTemp Status Signal Object 1415 */ 1416 StatusSignal<Temperature> getAncillaryDeviceTemp(boolean refresh); 1417 1418 /** 1419 * The type of motor attached to the Talon. 1420 * <p> 1421 * This can be used to determine what motor is attached to the Talon 1422 * FX. Return will be "Unknown" if firmware is too old or device is 1423 * not present. 1424 * 1425 * <p> 1426 * This refreshes and returns a cached StatusSignal object. 1427 * 1428 * @return ConnectedMotor Status Signal Object 1429 */ 1430 StatusSignal<ConnectedMotorValue> getConnectedMotor(); 1431 1432 /** 1433 * The type of motor attached to the Talon. 1434 * <p> 1435 * This can be used to determine what motor is attached to the Talon 1436 * FX. Return will be "Unknown" if firmware is too old or device is 1437 * not present. 1438 * 1439 * <p> 1440 * This refreshes and returns a cached StatusSignal object. 1441 * 1442 * @param refresh Whether to refresh the StatusSignal before returning it; 1443 * defaults to true 1444 * @return ConnectedMotor Status Signal Object 1445 */ 1446 StatusSignal<ConnectedMotorValue> getConnectedMotor(boolean refresh); 1447 1448 /** 1449 * Hardware fault occurred 1450 * 1451 * <ul> 1452 * <li> <b>Default Value:</b> False 1453 * </ul> 1454 * <p> 1455 * This refreshes and returns a cached StatusSignal object. 1456 * 1457 * @return Fault_Hardware Status Signal Object 1458 */ 1459 StatusSignal<Boolean> getFault_Hardware(); 1460 1461 /** 1462 * Hardware fault occurred 1463 * 1464 * <ul> 1465 * <li> <b>Default Value:</b> False 1466 * </ul> 1467 * <p> 1468 * This refreshes and returns a cached StatusSignal object. 1469 * 1470 * @param refresh Whether to refresh the StatusSignal before returning it; 1471 * defaults to true 1472 * @return Fault_Hardware Status Signal Object 1473 */ 1474 StatusSignal<Boolean> getFault_Hardware(boolean refresh); 1475 1476 /** 1477 * Hardware fault occurred 1478 * 1479 * <ul> 1480 * <li> <b>Default Value:</b> False 1481 * </ul> 1482 * <p> 1483 * This refreshes and returns a cached StatusSignal object. 1484 * 1485 * @return StickyFault_Hardware Status Signal Object 1486 */ 1487 StatusSignal<Boolean> getStickyFault_Hardware(); 1488 1489 /** 1490 * Hardware fault occurred 1491 * 1492 * <ul> 1493 * <li> <b>Default Value:</b> False 1494 * </ul> 1495 * <p> 1496 * This refreshes and returns a cached StatusSignal object. 1497 * 1498 * @param refresh Whether to refresh the StatusSignal before returning it; 1499 * defaults to true 1500 * @return StickyFault_Hardware Status Signal Object 1501 */ 1502 StatusSignal<Boolean> getStickyFault_Hardware(boolean refresh); 1503 1504 /** 1505 * Processor temperature exceeded limit 1506 * 1507 * <ul> 1508 * <li> <b>Default Value:</b> False 1509 * </ul> 1510 * <p> 1511 * This refreshes and returns a cached StatusSignal object. 1512 * 1513 * @return Fault_ProcTemp Status Signal Object 1514 */ 1515 StatusSignal<Boolean> getFault_ProcTemp(); 1516 1517 /** 1518 * Processor temperature exceeded limit 1519 * 1520 * <ul> 1521 * <li> <b>Default Value:</b> False 1522 * </ul> 1523 * <p> 1524 * This refreshes and returns a cached StatusSignal object. 1525 * 1526 * @param refresh Whether to refresh the StatusSignal before returning it; 1527 * defaults to true 1528 * @return Fault_ProcTemp Status Signal Object 1529 */ 1530 StatusSignal<Boolean> getFault_ProcTemp(boolean refresh); 1531 1532 /** 1533 * Processor temperature exceeded limit 1534 * 1535 * <ul> 1536 * <li> <b>Default Value:</b> False 1537 * </ul> 1538 * <p> 1539 * This refreshes and returns a cached StatusSignal object. 1540 * 1541 * @return StickyFault_ProcTemp Status Signal Object 1542 */ 1543 StatusSignal<Boolean> getStickyFault_ProcTemp(); 1544 1545 /** 1546 * Processor temperature exceeded limit 1547 * 1548 * <ul> 1549 * <li> <b>Default Value:</b> False 1550 * </ul> 1551 * <p> 1552 * This refreshes and returns a cached StatusSignal object. 1553 * 1554 * @param refresh Whether to refresh the StatusSignal before returning it; 1555 * defaults to true 1556 * @return StickyFault_ProcTemp Status Signal Object 1557 */ 1558 StatusSignal<Boolean> getStickyFault_ProcTemp(boolean refresh); 1559 1560 /** 1561 * Device temperature exceeded limit 1562 * 1563 * <ul> 1564 * <li> <b>Default Value:</b> False 1565 * </ul> 1566 * <p> 1567 * This refreshes and returns a cached StatusSignal object. 1568 * 1569 * @return Fault_DeviceTemp Status Signal Object 1570 */ 1571 StatusSignal<Boolean> getFault_DeviceTemp(); 1572 1573 /** 1574 * Device temperature exceeded limit 1575 * 1576 * <ul> 1577 * <li> <b>Default Value:</b> False 1578 * </ul> 1579 * <p> 1580 * This refreshes and returns a cached StatusSignal object. 1581 * 1582 * @param refresh Whether to refresh the StatusSignal before returning it; 1583 * defaults to true 1584 * @return Fault_DeviceTemp Status Signal Object 1585 */ 1586 StatusSignal<Boolean> getFault_DeviceTemp(boolean refresh); 1587 1588 /** 1589 * Device temperature exceeded limit 1590 * 1591 * <ul> 1592 * <li> <b>Default Value:</b> False 1593 * </ul> 1594 * <p> 1595 * This refreshes and returns a cached StatusSignal object. 1596 * 1597 * @return StickyFault_DeviceTemp Status Signal Object 1598 */ 1599 StatusSignal<Boolean> getStickyFault_DeviceTemp(); 1600 1601 /** 1602 * Device temperature exceeded limit 1603 * 1604 * <ul> 1605 * <li> <b>Default Value:</b> False 1606 * </ul> 1607 * <p> 1608 * This refreshes and returns a cached StatusSignal object. 1609 * 1610 * @param refresh Whether to refresh the StatusSignal before returning it; 1611 * defaults to true 1612 * @return StickyFault_DeviceTemp Status Signal Object 1613 */ 1614 StatusSignal<Boolean> getStickyFault_DeviceTemp(boolean refresh); 1615 1616 /** 1617 * Device supply voltage dropped to near brownout levels 1618 * 1619 * <ul> 1620 * <li> <b>Default Value:</b> False 1621 * </ul> 1622 * <p> 1623 * This refreshes and returns a cached StatusSignal object. 1624 * 1625 * @return Fault_Undervoltage Status Signal Object 1626 */ 1627 StatusSignal<Boolean> getFault_Undervoltage(); 1628 1629 /** 1630 * Device supply voltage dropped to near brownout levels 1631 * 1632 * <ul> 1633 * <li> <b>Default Value:</b> False 1634 * </ul> 1635 * <p> 1636 * This refreshes and returns a cached StatusSignal object. 1637 * 1638 * @param refresh Whether to refresh the StatusSignal before returning it; 1639 * defaults to true 1640 * @return Fault_Undervoltage Status Signal Object 1641 */ 1642 StatusSignal<Boolean> getFault_Undervoltage(boolean refresh); 1643 1644 /** 1645 * Device supply voltage dropped to near brownout levels 1646 * 1647 * <ul> 1648 * <li> <b>Default Value:</b> False 1649 * </ul> 1650 * <p> 1651 * This refreshes and returns a cached StatusSignal object. 1652 * 1653 * @return StickyFault_Undervoltage Status Signal Object 1654 */ 1655 StatusSignal<Boolean> getStickyFault_Undervoltage(); 1656 1657 /** 1658 * Device supply voltage dropped to near brownout levels 1659 * 1660 * <ul> 1661 * <li> <b>Default Value:</b> False 1662 * </ul> 1663 * <p> 1664 * This refreshes and returns a cached StatusSignal object. 1665 * 1666 * @param refresh Whether to refresh the StatusSignal before returning it; 1667 * defaults to true 1668 * @return StickyFault_Undervoltage Status Signal Object 1669 */ 1670 StatusSignal<Boolean> getStickyFault_Undervoltage(boolean refresh); 1671 1672 /** 1673 * Device boot while detecting the enable signal 1674 * 1675 * <ul> 1676 * <li> <b>Default Value:</b> False 1677 * </ul> 1678 * <p> 1679 * This refreshes and returns a cached StatusSignal object. 1680 * 1681 * @return Fault_BootDuringEnable Status Signal Object 1682 */ 1683 StatusSignal<Boolean> getFault_BootDuringEnable(); 1684 1685 /** 1686 * Device boot while detecting the enable signal 1687 * 1688 * <ul> 1689 * <li> <b>Default Value:</b> False 1690 * </ul> 1691 * <p> 1692 * This refreshes and returns a cached StatusSignal object. 1693 * 1694 * @param refresh Whether to refresh the StatusSignal before returning it; 1695 * defaults to true 1696 * @return Fault_BootDuringEnable Status Signal Object 1697 */ 1698 StatusSignal<Boolean> getFault_BootDuringEnable(boolean refresh); 1699 1700 /** 1701 * Device boot while detecting the enable signal 1702 * 1703 * <ul> 1704 * <li> <b>Default Value:</b> False 1705 * </ul> 1706 * <p> 1707 * This refreshes and returns a cached StatusSignal object. 1708 * 1709 * @return StickyFault_BootDuringEnable Status Signal Object 1710 */ 1711 StatusSignal<Boolean> getStickyFault_BootDuringEnable(); 1712 1713 /** 1714 * Device boot while detecting the enable signal 1715 * 1716 * <ul> 1717 * <li> <b>Default Value:</b> False 1718 * </ul> 1719 * <p> 1720 * This refreshes and returns a cached StatusSignal object. 1721 * 1722 * @param refresh Whether to refresh the StatusSignal before returning it; 1723 * defaults to true 1724 * @return StickyFault_BootDuringEnable Status Signal Object 1725 */ 1726 StatusSignal<Boolean> getStickyFault_BootDuringEnable(boolean refresh); 1727 1728 /** 1729 * An unlicensed feature is in use, device may not behave as expected. 1730 * 1731 * <ul> 1732 * <li> <b>Default Value:</b> False 1733 * </ul> 1734 * <p> 1735 * This refreshes and returns a cached StatusSignal object. 1736 * 1737 * @return Fault_UnlicensedFeatureInUse Status Signal Object 1738 */ 1739 StatusSignal<Boolean> getFault_UnlicensedFeatureInUse(); 1740 1741 /** 1742 * An unlicensed feature is in use, device may not behave as expected. 1743 * 1744 * <ul> 1745 * <li> <b>Default Value:</b> False 1746 * </ul> 1747 * <p> 1748 * This refreshes and returns a cached StatusSignal object. 1749 * 1750 * @param refresh Whether to refresh the StatusSignal before returning it; 1751 * defaults to true 1752 * @return Fault_UnlicensedFeatureInUse Status Signal Object 1753 */ 1754 StatusSignal<Boolean> getFault_UnlicensedFeatureInUse(boolean refresh); 1755 1756 /** 1757 * An unlicensed feature is in use, device may not behave as expected. 1758 * 1759 * <ul> 1760 * <li> <b>Default Value:</b> False 1761 * </ul> 1762 * <p> 1763 * This refreshes and returns a cached StatusSignal object. 1764 * 1765 * @return StickyFault_UnlicensedFeatureInUse Status Signal Object 1766 */ 1767 StatusSignal<Boolean> getStickyFault_UnlicensedFeatureInUse(); 1768 1769 /** 1770 * An unlicensed feature is in use, device may not behave as expected. 1771 * 1772 * <ul> 1773 * <li> <b>Default Value:</b> False 1774 * </ul> 1775 * <p> 1776 * This refreshes and returns a cached StatusSignal object. 1777 * 1778 * @param refresh Whether to refresh the StatusSignal before returning it; 1779 * defaults to true 1780 * @return StickyFault_UnlicensedFeatureInUse Status Signal Object 1781 */ 1782 StatusSignal<Boolean> getStickyFault_UnlicensedFeatureInUse(boolean refresh); 1783 1784 /** 1785 * Bridge was disabled most likely due to supply voltage dropping too 1786 * low. 1787 * 1788 * <ul> 1789 * <li> <b>Default Value:</b> False 1790 * </ul> 1791 * <p> 1792 * This refreshes and returns a cached StatusSignal object. 1793 * 1794 * @return Fault_BridgeBrownout Status Signal Object 1795 */ 1796 StatusSignal<Boolean> getFault_BridgeBrownout(); 1797 1798 /** 1799 * Bridge was disabled most likely due to supply voltage dropping too 1800 * low. 1801 * 1802 * <ul> 1803 * <li> <b>Default Value:</b> False 1804 * </ul> 1805 * <p> 1806 * This refreshes and returns a cached StatusSignal object. 1807 * 1808 * @param refresh Whether to refresh the StatusSignal before returning it; 1809 * defaults to true 1810 * @return Fault_BridgeBrownout Status Signal Object 1811 */ 1812 StatusSignal<Boolean> getFault_BridgeBrownout(boolean refresh); 1813 1814 /** 1815 * Bridge was disabled most likely due to supply voltage dropping too 1816 * low. 1817 * 1818 * <ul> 1819 * <li> <b>Default Value:</b> False 1820 * </ul> 1821 * <p> 1822 * This refreshes and returns a cached StatusSignal object. 1823 * 1824 * @return StickyFault_BridgeBrownout Status Signal Object 1825 */ 1826 StatusSignal<Boolean> getStickyFault_BridgeBrownout(); 1827 1828 /** 1829 * Bridge was disabled most likely due to supply voltage dropping too 1830 * low. 1831 * 1832 * <ul> 1833 * <li> <b>Default Value:</b> False 1834 * </ul> 1835 * <p> 1836 * This refreshes and returns a cached StatusSignal object. 1837 * 1838 * @param refresh Whether to refresh the StatusSignal before returning it; 1839 * defaults to true 1840 * @return StickyFault_BridgeBrownout Status Signal Object 1841 */ 1842 StatusSignal<Boolean> getStickyFault_BridgeBrownout(boolean refresh); 1843 1844 /** 1845 * The remote sensor has reset. 1846 * 1847 * <ul> 1848 * <li> <b>Default Value:</b> False 1849 * </ul> 1850 * <p> 1851 * This refreshes and returns a cached StatusSignal object. 1852 * 1853 * @return Fault_RemoteSensorReset Status Signal Object 1854 */ 1855 StatusSignal<Boolean> getFault_RemoteSensorReset(); 1856 1857 /** 1858 * The remote sensor has reset. 1859 * 1860 * <ul> 1861 * <li> <b>Default Value:</b> False 1862 * </ul> 1863 * <p> 1864 * This refreshes and returns a cached StatusSignal object. 1865 * 1866 * @param refresh Whether to refresh the StatusSignal before returning it; 1867 * defaults to true 1868 * @return Fault_RemoteSensorReset Status Signal Object 1869 */ 1870 StatusSignal<Boolean> getFault_RemoteSensorReset(boolean refresh); 1871 1872 /** 1873 * The remote sensor has reset. 1874 * 1875 * <ul> 1876 * <li> <b>Default Value:</b> False 1877 * </ul> 1878 * <p> 1879 * This refreshes and returns a cached StatusSignal object. 1880 * 1881 * @return StickyFault_RemoteSensorReset Status Signal Object 1882 */ 1883 StatusSignal<Boolean> getStickyFault_RemoteSensorReset(); 1884 1885 /** 1886 * The remote sensor has reset. 1887 * 1888 * <ul> 1889 * <li> <b>Default Value:</b> False 1890 * </ul> 1891 * <p> 1892 * This refreshes and returns a cached StatusSignal object. 1893 * 1894 * @param refresh Whether to refresh the StatusSignal before returning it; 1895 * defaults to true 1896 * @return StickyFault_RemoteSensorReset Status Signal Object 1897 */ 1898 StatusSignal<Boolean> getStickyFault_RemoteSensorReset(boolean refresh); 1899 1900 /** 1901 * The remote Talon used for differential control is not present on 1902 * CAN Bus. 1903 * 1904 * <ul> 1905 * <li> <b>Default Value:</b> False 1906 * </ul> 1907 * <p> 1908 * This refreshes and returns a cached StatusSignal object. 1909 * 1910 * @return Fault_MissingDifferentialFX Status Signal Object 1911 */ 1912 StatusSignal<Boolean> getFault_MissingDifferentialFX(); 1913 1914 /** 1915 * The remote Talon used for differential control is not present on 1916 * CAN Bus. 1917 * 1918 * <ul> 1919 * <li> <b>Default Value:</b> False 1920 * </ul> 1921 * <p> 1922 * This refreshes and returns a cached StatusSignal object. 1923 * 1924 * @param refresh Whether to refresh the StatusSignal before returning it; 1925 * defaults to true 1926 * @return Fault_MissingDifferentialFX Status Signal Object 1927 */ 1928 StatusSignal<Boolean> getFault_MissingDifferentialFX(boolean refresh); 1929 1930 /** 1931 * The remote Talon used for differential control is not present on 1932 * CAN Bus. 1933 * 1934 * <ul> 1935 * <li> <b>Default Value:</b> False 1936 * </ul> 1937 * <p> 1938 * This refreshes and returns a cached StatusSignal object. 1939 * 1940 * @return StickyFault_MissingDifferentialFX Status Signal Object 1941 */ 1942 StatusSignal<Boolean> getStickyFault_MissingDifferentialFX(); 1943 1944 /** 1945 * The remote Talon used for differential control is not present on 1946 * CAN Bus. 1947 * 1948 * <ul> 1949 * <li> <b>Default Value:</b> False 1950 * </ul> 1951 * <p> 1952 * This refreshes and returns a cached StatusSignal object. 1953 * 1954 * @param refresh Whether to refresh the StatusSignal before returning it; 1955 * defaults to true 1956 * @return StickyFault_MissingDifferentialFX Status Signal Object 1957 */ 1958 StatusSignal<Boolean> getStickyFault_MissingDifferentialFX(boolean refresh); 1959 1960 /** 1961 * The remote sensor position has overflowed. Because of the nature of 1962 * remote sensors, it is possible for the remote sensor position to 1963 * overflow beyond what is supported by the status signal frame. 1964 * However, this is rare and cannot occur over the course of an FRC 1965 * match under normal use. 1966 * 1967 * <ul> 1968 * <li> <b>Default Value:</b> False 1969 * </ul> 1970 * <p> 1971 * This refreshes and returns a cached StatusSignal object. 1972 * 1973 * @return Fault_RemoteSensorPosOverflow Status Signal Object 1974 */ 1975 StatusSignal<Boolean> getFault_RemoteSensorPosOverflow(); 1976 1977 /** 1978 * The remote sensor position has overflowed. Because of the nature of 1979 * remote sensors, it is possible for the remote sensor position to 1980 * overflow beyond what is supported by the status signal frame. 1981 * However, this is rare and cannot occur over the course of an FRC 1982 * match under normal use. 1983 * 1984 * <ul> 1985 * <li> <b>Default Value:</b> False 1986 * </ul> 1987 * <p> 1988 * This refreshes and returns a cached StatusSignal object. 1989 * 1990 * @param refresh Whether to refresh the StatusSignal before returning it; 1991 * defaults to true 1992 * @return Fault_RemoteSensorPosOverflow Status Signal Object 1993 */ 1994 StatusSignal<Boolean> getFault_RemoteSensorPosOverflow(boolean refresh); 1995 1996 /** 1997 * The remote sensor position has overflowed. Because of the nature of 1998 * remote sensors, it is possible for the remote sensor position to 1999 * overflow beyond what is supported by the status signal frame. 2000 * However, this is rare and cannot occur over the course of an FRC 2001 * match under normal use. 2002 * 2003 * <ul> 2004 * <li> <b>Default Value:</b> False 2005 * </ul> 2006 * <p> 2007 * This refreshes and returns a cached StatusSignal object. 2008 * 2009 * @return StickyFault_RemoteSensorPosOverflow Status Signal Object 2010 */ 2011 StatusSignal<Boolean> getStickyFault_RemoteSensorPosOverflow(); 2012 2013 /** 2014 * The remote sensor position has overflowed. Because of the nature of 2015 * remote sensors, it is possible for the remote sensor position to 2016 * overflow beyond what is supported by the status signal frame. 2017 * However, this is rare and cannot occur over the course of an FRC 2018 * match under normal use. 2019 * 2020 * <ul> 2021 * <li> <b>Default Value:</b> False 2022 * </ul> 2023 * <p> 2024 * This refreshes and returns a cached StatusSignal object. 2025 * 2026 * @param refresh Whether to refresh the StatusSignal before returning it; 2027 * defaults to true 2028 * @return StickyFault_RemoteSensorPosOverflow Status Signal Object 2029 */ 2030 StatusSignal<Boolean> getStickyFault_RemoteSensorPosOverflow(boolean refresh); 2031 2032 /** 2033 * Supply Voltage has exceeded the maximum voltage rating of device. 2034 * 2035 * <ul> 2036 * <li> <b>Default Value:</b> False 2037 * </ul> 2038 * <p> 2039 * This refreshes and returns a cached StatusSignal object. 2040 * 2041 * @return Fault_OverSupplyV Status Signal Object 2042 */ 2043 StatusSignal<Boolean> getFault_OverSupplyV(); 2044 2045 /** 2046 * Supply Voltage has exceeded the maximum voltage rating of device. 2047 * 2048 * <ul> 2049 * <li> <b>Default Value:</b> False 2050 * </ul> 2051 * <p> 2052 * This refreshes and returns a cached StatusSignal object. 2053 * 2054 * @param refresh Whether to refresh the StatusSignal before returning it; 2055 * defaults to true 2056 * @return Fault_OverSupplyV Status Signal Object 2057 */ 2058 StatusSignal<Boolean> getFault_OverSupplyV(boolean refresh); 2059 2060 /** 2061 * Supply Voltage has exceeded the maximum voltage rating of device. 2062 * 2063 * <ul> 2064 * <li> <b>Default Value:</b> False 2065 * </ul> 2066 * <p> 2067 * This refreshes and returns a cached StatusSignal object. 2068 * 2069 * @return StickyFault_OverSupplyV Status Signal Object 2070 */ 2071 StatusSignal<Boolean> getStickyFault_OverSupplyV(); 2072 2073 /** 2074 * Supply Voltage has exceeded the maximum voltage rating of device. 2075 * 2076 * <ul> 2077 * <li> <b>Default Value:</b> False 2078 * </ul> 2079 * <p> 2080 * This refreshes and returns a cached StatusSignal object. 2081 * 2082 * @param refresh Whether to refresh the StatusSignal before returning it; 2083 * defaults to true 2084 * @return StickyFault_OverSupplyV Status Signal Object 2085 */ 2086 StatusSignal<Boolean> getStickyFault_OverSupplyV(boolean refresh); 2087 2088 /** 2089 * Supply Voltage is unstable. Ensure you are using a battery and 2090 * current limited power supply. 2091 * 2092 * <ul> 2093 * <li> <b>Default Value:</b> False 2094 * </ul> 2095 * <p> 2096 * This refreshes and returns a cached StatusSignal object. 2097 * 2098 * @return Fault_UnstableSupplyV Status Signal Object 2099 */ 2100 StatusSignal<Boolean> getFault_UnstableSupplyV(); 2101 2102 /** 2103 * Supply Voltage is unstable. Ensure you are using a battery and 2104 * current limited power supply. 2105 * 2106 * <ul> 2107 * <li> <b>Default Value:</b> False 2108 * </ul> 2109 * <p> 2110 * This refreshes and returns a cached StatusSignal object. 2111 * 2112 * @param refresh Whether to refresh the StatusSignal before returning it; 2113 * defaults to true 2114 * @return Fault_UnstableSupplyV Status Signal Object 2115 */ 2116 StatusSignal<Boolean> getFault_UnstableSupplyV(boolean refresh); 2117 2118 /** 2119 * Supply Voltage is unstable. Ensure you are using a battery and 2120 * current limited power supply. 2121 * 2122 * <ul> 2123 * <li> <b>Default Value:</b> False 2124 * </ul> 2125 * <p> 2126 * This refreshes and returns a cached StatusSignal object. 2127 * 2128 * @return StickyFault_UnstableSupplyV Status Signal Object 2129 */ 2130 StatusSignal<Boolean> getStickyFault_UnstableSupplyV(); 2131 2132 /** 2133 * Supply Voltage is unstable. Ensure you are using a battery and 2134 * current limited power supply. 2135 * 2136 * <ul> 2137 * <li> <b>Default Value:</b> False 2138 * </ul> 2139 * <p> 2140 * This refreshes and returns a cached StatusSignal object. 2141 * 2142 * @param refresh Whether to refresh the StatusSignal before returning it; 2143 * defaults to true 2144 * @return StickyFault_UnstableSupplyV Status Signal Object 2145 */ 2146 StatusSignal<Boolean> getStickyFault_UnstableSupplyV(boolean refresh); 2147 2148 /** 2149 * Reverse limit switch has been asserted. Output is set to neutral. 2150 * 2151 * <ul> 2152 * <li> <b>Default Value:</b> False 2153 * </ul> 2154 * <p> 2155 * This refreshes and returns a cached StatusSignal object. 2156 * 2157 * @return Fault_ReverseHardLimit Status Signal Object 2158 */ 2159 StatusSignal<Boolean> getFault_ReverseHardLimit(); 2160 2161 /** 2162 * Reverse limit switch has been asserted. Output is set to neutral. 2163 * 2164 * <ul> 2165 * <li> <b>Default Value:</b> False 2166 * </ul> 2167 * <p> 2168 * This refreshes and returns a cached StatusSignal object. 2169 * 2170 * @param refresh Whether to refresh the StatusSignal before returning it; 2171 * defaults to true 2172 * @return Fault_ReverseHardLimit Status Signal Object 2173 */ 2174 StatusSignal<Boolean> getFault_ReverseHardLimit(boolean refresh); 2175 2176 /** 2177 * Reverse limit switch has been asserted. Output is set to neutral. 2178 * 2179 * <ul> 2180 * <li> <b>Default Value:</b> False 2181 * </ul> 2182 * <p> 2183 * This refreshes and returns a cached StatusSignal object. 2184 * 2185 * @return StickyFault_ReverseHardLimit Status Signal Object 2186 */ 2187 StatusSignal<Boolean> getStickyFault_ReverseHardLimit(); 2188 2189 /** 2190 * Reverse limit switch has been asserted. Output is set to neutral. 2191 * 2192 * <ul> 2193 * <li> <b>Default Value:</b> False 2194 * </ul> 2195 * <p> 2196 * This refreshes and returns a cached StatusSignal object. 2197 * 2198 * @param refresh Whether to refresh the StatusSignal before returning it; 2199 * defaults to true 2200 * @return StickyFault_ReverseHardLimit Status Signal Object 2201 */ 2202 StatusSignal<Boolean> getStickyFault_ReverseHardLimit(boolean refresh); 2203 2204 /** 2205 * Forward limit switch has been asserted. Output is set to neutral. 2206 * 2207 * <ul> 2208 * <li> <b>Default Value:</b> False 2209 * </ul> 2210 * <p> 2211 * This refreshes and returns a cached StatusSignal object. 2212 * 2213 * @return Fault_ForwardHardLimit Status Signal Object 2214 */ 2215 StatusSignal<Boolean> getFault_ForwardHardLimit(); 2216 2217 /** 2218 * Forward limit switch has been asserted. Output is set to neutral. 2219 * 2220 * <ul> 2221 * <li> <b>Default Value:</b> False 2222 * </ul> 2223 * <p> 2224 * This refreshes and returns a cached StatusSignal object. 2225 * 2226 * @param refresh Whether to refresh the StatusSignal before returning it; 2227 * defaults to true 2228 * @return Fault_ForwardHardLimit Status Signal Object 2229 */ 2230 StatusSignal<Boolean> getFault_ForwardHardLimit(boolean refresh); 2231 2232 /** 2233 * Forward limit switch has been asserted. Output is set to neutral. 2234 * 2235 * <ul> 2236 * <li> <b>Default Value:</b> False 2237 * </ul> 2238 * <p> 2239 * This refreshes and returns a cached StatusSignal object. 2240 * 2241 * @return StickyFault_ForwardHardLimit Status Signal Object 2242 */ 2243 StatusSignal<Boolean> getStickyFault_ForwardHardLimit(); 2244 2245 /** 2246 * Forward limit switch has been asserted. Output is set to neutral. 2247 * 2248 * <ul> 2249 * <li> <b>Default Value:</b> False 2250 * </ul> 2251 * <p> 2252 * This refreshes and returns a cached StatusSignal object. 2253 * 2254 * @param refresh Whether to refresh the StatusSignal before returning it; 2255 * defaults to true 2256 * @return StickyFault_ForwardHardLimit Status Signal Object 2257 */ 2258 StatusSignal<Boolean> getStickyFault_ForwardHardLimit(boolean refresh); 2259 2260 /** 2261 * Reverse soft limit has been asserted. Output is set to neutral. 2262 * 2263 * <ul> 2264 * <li> <b>Default Value:</b> False 2265 * </ul> 2266 * <p> 2267 * This refreshes and returns a cached StatusSignal object. 2268 * 2269 * @return Fault_ReverseSoftLimit Status Signal Object 2270 */ 2271 StatusSignal<Boolean> getFault_ReverseSoftLimit(); 2272 2273 /** 2274 * Reverse soft limit has been asserted. Output is set to neutral. 2275 * 2276 * <ul> 2277 * <li> <b>Default Value:</b> False 2278 * </ul> 2279 * <p> 2280 * This refreshes and returns a cached StatusSignal object. 2281 * 2282 * @param refresh Whether to refresh the StatusSignal before returning it; 2283 * defaults to true 2284 * @return Fault_ReverseSoftLimit Status Signal Object 2285 */ 2286 StatusSignal<Boolean> getFault_ReverseSoftLimit(boolean refresh); 2287 2288 /** 2289 * Reverse soft limit has been asserted. Output is set to neutral. 2290 * 2291 * <ul> 2292 * <li> <b>Default Value:</b> False 2293 * </ul> 2294 * <p> 2295 * This refreshes and returns a cached StatusSignal object. 2296 * 2297 * @return StickyFault_ReverseSoftLimit Status Signal Object 2298 */ 2299 StatusSignal<Boolean> getStickyFault_ReverseSoftLimit(); 2300 2301 /** 2302 * Reverse soft limit has been asserted. Output is set to neutral. 2303 * 2304 * <ul> 2305 * <li> <b>Default Value:</b> False 2306 * </ul> 2307 * <p> 2308 * This refreshes and returns a cached StatusSignal object. 2309 * 2310 * @param refresh Whether to refresh the StatusSignal before returning it; 2311 * defaults to true 2312 * @return StickyFault_ReverseSoftLimit Status Signal Object 2313 */ 2314 StatusSignal<Boolean> getStickyFault_ReverseSoftLimit(boolean refresh); 2315 2316 /** 2317 * Forward soft limit has been asserted. Output is set to neutral. 2318 * 2319 * <ul> 2320 * <li> <b>Default Value:</b> False 2321 * </ul> 2322 * <p> 2323 * This refreshes and returns a cached StatusSignal object. 2324 * 2325 * @return Fault_ForwardSoftLimit Status Signal Object 2326 */ 2327 StatusSignal<Boolean> getFault_ForwardSoftLimit(); 2328 2329 /** 2330 * Forward soft limit has been asserted. Output is set to neutral. 2331 * 2332 * <ul> 2333 * <li> <b>Default Value:</b> False 2334 * </ul> 2335 * <p> 2336 * This refreshes and returns a cached StatusSignal object. 2337 * 2338 * @param refresh Whether to refresh the StatusSignal before returning it; 2339 * defaults to true 2340 * @return Fault_ForwardSoftLimit Status Signal Object 2341 */ 2342 StatusSignal<Boolean> getFault_ForwardSoftLimit(boolean refresh); 2343 2344 /** 2345 * Forward soft limit has been asserted. Output is set to neutral. 2346 * 2347 * <ul> 2348 * <li> <b>Default Value:</b> False 2349 * </ul> 2350 * <p> 2351 * This refreshes and returns a cached StatusSignal object. 2352 * 2353 * @return StickyFault_ForwardSoftLimit Status Signal Object 2354 */ 2355 StatusSignal<Boolean> getStickyFault_ForwardSoftLimit(); 2356 2357 /** 2358 * Forward soft limit has been asserted. Output is set to neutral. 2359 * 2360 * <ul> 2361 * <li> <b>Default Value:</b> False 2362 * </ul> 2363 * <p> 2364 * This refreshes and returns a cached StatusSignal object. 2365 * 2366 * @param refresh Whether to refresh the StatusSignal before returning it; 2367 * defaults to true 2368 * @return StickyFault_ForwardSoftLimit Status Signal Object 2369 */ 2370 StatusSignal<Boolean> getStickyFault_ForwardSoftLimit(boolean refresh); 2371 2372 /** 2373 * The remote soft limit device is not present on CAN Bus. 2374 * 2375 * <ul> 2376 * <li> <b>Default Value:</b> False 2377 * </ul> 2378 * <p> 2379 * This refreshes and returns a cached StatusSignal object. 2380 * 2381 * @return Fault_MissingSoftLimitRemote Status Signal Object 2382 */ 2383 StatusSignal<Boolean> getFault_MissingSoftLimitRemote(); 2384 2385 /** 2386 * The remote soft limit device is not present on CAN Bus. 2387 * 2388 * <ul> 2389 * <li> <b>Default Value:</b> False 2390 * </ul> 2391 * <p> 2392 * This refreshes and returns a cached StatusSignal object. 2393 * 2394 * @param refresh Whether to refresh the StatusSignal before returning it; 2395 * defaults to true 2396 * @return Fault_MissingSoftLimitRemote Status Signal Object 2397 */ 2398 StatusSignal<Boolean> getFault_MissingSoftLimitRemote(boolean refresh); 2399 2400 /** 2401 * The remote soft limit device is not present on CAN Bus. 2402 * 2403 * <ul> 2404 * <li> <b>Default Value:</b> False 2405 * </ul> 2406 * <p> 2407 * This refreshes and returns a cached StatusSignal object. 2408 * 2409 * @return StickyFault_MissingSoftLimitRemote Status Signal Object 2410 */ 2411 StatusSignal<Boolean> getStickyFault_MissingSoftLimitRemote(); 2412 2413 /** 2414 * The remote soft limit device is not present on CAN Bus. 2415 * 2416 * <ul> 2417 * <li> <b>Default Value:</b> False 2418 * </ul> 2419 * <p> 2420 * This refreshes and returns a cached StatusSignal object. 2421 * 2422 * @param refresh Whether to refresh the StatusSignal before returning it; 2423 * defaults to true 2424 * @return StickyFault_MissingSoftLimitRemote Status Signal Object 2425 */ 2426 StatusSignal<Boolean> getStickyFault_MissingSoftLimitRemote(boolean refresh); 2427 2428 /** 2429 * The remote limit switch device is not present on CAN Bus. 2430 * 2431 * <ul> 2432 * <li> <b>Default Value:</b> False 2433 * </ul> 2434 * <p> 2435 * This refreshes and returns a cached StatusSignal object. 2436 * 2437 * @return Fault_MissingHardLimitRemote Status Signal Object 2438 */ 2439 StatusSignal<Boolean> getFault_MissingHardLimitRemote(); 2440 2441 /** 2442 * The remote limit switch device is not present on CAN Bus. 2443 * 2444 * <ul> 2445 * <li> <b>Default Value:</b> False 2446 * </ul> 2447 * <p> 2448 * This refreshes and returns a cached StatusSignal object. 2449 * 2450 * @param refresh Whether to refresh the StatusSignal before returning it; 2451 * defaults to true 2452 * @return Fault_MissingHardLimitRemote Status Signal Object 2453 */ 2454 StatusSignal<Boolean> getFault_MissingHardLimitRemote(boolean refresh); 2455 2456 /** 2457 * The remote limit switch device is not present on CAN Bus. 2458 * 2459 * <ul> 2460 * <li> <b>Default Value:</b> False 2461 * </ul> 2462 * <p> 2463 * This refreshes and returns a cached StatusSignal object. 2464 * 2465 * @return StickyFault_MissingHardLimitRemote Status Signal Object 2466 */ 2467 StatusSignal<Boolean> getStickyFault_MissingHardLimitRemote(); 2468 2469 /** 2470 * The remote limit switch device is not present on CAN Bus. 2471 * 2472 * <ul> 2473 * <li> <b>Default Value:</b> False 2474 * </ul> 2475 * <p> 2476 * This refreshes and returns a cached StatusSignal object. 2477 * 2478 * @param refresh Whether to refresh the StatusSignal before returning it; 2479 * defaults to true 2480 * @return StickyFault_MissingHardLimitRemote Status Signal Object 2481 */ 2482 StatusSignal<Boolean> getStickyFault_MissingHardLimitRemote(boolean refresh); 2483 2484 /** 2485 * The remote sensor's data is no longer trusted. This can happen if 2486 * the remote sensor disappears from the CAN bus or if the remote 2487 * sensor indicates its data is no longer valid, such as when a 2488 * CANcoder's magnet strength falls into the "red" range. 2489 * 2490 * <ul> 2491 * <li> <b>Default Value:</b> False 2492 * </ul> 2493 * <p> 2494 * This refreshes and returns a cached StatusSignal object. 2495 * 2496 * @return Fault_RemoteSensorDataInvalid Status Signal Object 2497 */ 2498 StatusSignal<Boolean> getFault_RemoteSensorDataInvalid(); 2499 2500 /** 2501 * The remote sensor's data is no longer trusted. This can happen if 2502 * the remote sensor disappears from the CAN bus or if the remote 2503 * sensor indicates its data is no longer valid, such as when a 2504 * CANcoder's magnet strength falls into the "red" range. 2505 * 2506 * <ul> 2507 * <li> <b>Default Value:</b> False 2508 * </ul> 2509 * <p> 2510 * This refreshes and returns a cached StatusSignal object. 2511 * 2512 * @param refresh Whether to refresh the StatusSignal before returning it; 2513 * defaults to true 2514 * @return Fault_RemoteSensorDataInvalid Status Signal Object 2515 */ 2516 StatusSignal<Boolean> getFault_RemoteSensorDataInvalid(boolean refresh); 2517 2518 /** 2519 * The remote sensor's data is no longer trusted. This can happen if 2520 * the remote sensor disappears from the CAN bus or if the remote 2521 * sensor indicates its data is no longer valid, such as when a 2522 * CANcoder's magnet strength falls into the "red" range. 2523 * 2524 * <ul> 2525 * <li> <b>Default Value:</b> False 2526 * </ul> 2527 * <p> 2528 * This refreshes and returns a cached StatusSignal object. 2529 * 2530 * @return StickyFault_RemoteSensorDataInvalid Status Signal Object 2531 */ 2532 StatusSignal<Boolean> getStickyFault_RemoteSensorDataInvalid(); 2533 2534 /** 2535 * The remote sensor's data is no longer trusted. This can happen if 2536 * the remote sensor disappears from the CAN bus or if the remote 2537 * sensor indicates its data is no longer valid, such as when a 2538 * CANcoder's magnet strength falls into the "red" range. 2539 * 2540 * <ul> 2541 * <li> <b>Default Value:</b> False 2542 * </ul> 2543 * <p> 2544 * This refreshes and returns a cached StatusSignal object. 2545 * 2546 * @param refresh Whether to refresh the StatusSignal before returning it; 2547 * defaults to true 2548 * @return StickyFault_RemoteSensorDataInvalid Status Signal Object 2549 */ 2550 StatusSignal<Boolean> getStickyFault_RemoteSensorDataInvalid(boolean refresh); 2551 2552 /** 2553 * The remote sensor used for fusion has fallen out of sync to the 2554 * local sensor. A re-synchronization has occurred, which may cause a 2555 * discontinuity. This typically happens if there is significant slop 2556 * in the mechanism, or if the RotorToSensorRatio configuration 2557 * parameter is incorrect. 2558 * 2559 * <ul> 2560 * <li> <b>Default Value:</b> False 2561 * </ul> 2562 * <p> 2563 * This refreshes and returns a cached StatusSignal object. 2564 * 2565 * @return Fault_FusedSensorOutOfSync Status Signal Object 2566 */ 2567 StatusSignal<Boolean> getFault_FusedSensorOutOfSync(); 2568 2569 /** 2570 * The remote sensor used for fusion has fallen out of sync to the 2571 * local sensor. A re-synchronization has occurred, which may cause a 2572 * discontinuity. This typically happens if there is significant slop 2573 * in the mechanism, or if the RotorToSensorRatio configuration 2574 * parameter is incorrect. 2575 * 2576 * <ul> 2577 * <li> <b>Default Value:</b> False 2578 * </ul> 2579 * <p> 2580 * This refreshes and returns a cached StatusSignal object. 2581 * 2582 * @param refresh Whether to refresh the StatusSignal before returning it; 2583 * defaults to true 2584 * @return Fault_FusedSensorOutOfSync Status Signal Object 2585 */ 2586 StatusSignal<Boolean> getFault_FusedSensorOutOfSync(boolean refresh); 2587 2588 /** 2589 * The remote sensor used for fusion has fallen out of sync to the 2590 * local sensor. A re-synchronization has occurred, which may cause a 2591 * discontinuity. This typically happens if there is significant slop 2592 * in the mechanism, or if the RotorToSensorRatio configuration 2593 * parameter is incorrect. 2594 * 2595 * <ul> 2596 * <li> <b>Default Value:</b> False 2597 * </ul> 2598 * <p> 2599 * This refreshes and returns a cached StatusSignal object. 2600 * 2601 * @return StickyFault_FusedSensorOutOfSync Status Signal Object 2602 */ 2603 StatusSignal<Boolean> getStickyFault_FusedSensorOutOfSync(); 2604 2605 /** 2606 * The remote sensor used for fusion has fallen out of sync to the 2607 * local sensor. A re-synchronization has occurred, which may cause a 2608 * discontinuity. This typically happens if there is significant slop 2609 * in the mechanism, or if the RotorToSensorRatio configuration 2610 * parameter is incorrect. 2611 * 2612 * <ul> 2613 * <li> <b>Default Value:</b> False 2614 * </ul> 2615 * <p> 2616 * This refreshes and returns a cached StatusSignal object. 2617 * 2618 * @param refresh Whether to refresh the StatusSignal before returning it; 2619 * defaults to true 2620 * @return StickyFault_FusedSensorOutOfSync Status Signal Object 2621 */ 2622 StatusSignal<Boolean> getStickyFault_FusedSensorOutOfSync(boolean refresh); 2623 2624 /** 2625 * Stator current limit occured. 2626 * 2627 * <ul> 2628 * <li> <b>Default Value:</b> False 2629 * </ul> 2630 * <p> 2631 * This refreshes and returns a cached StatusSignal object. 2632 * 2633 * @return Fault_StatorCurrLimit Status Signal Object 2634 */ 2635 StatusSignal<Boolean> getFault_StatorCurrLimit(); 2636 2637 /** 2638 * Stator current limit occured. 2639 * 2640 * <ul> 2641 * <li> <b>Default Value:</b> False 2642 * </ul> 2643 * <p> 2644 * This refreshes and returns a cached StatusSignal object. 2645 * 2646 * @param refresh Whether to refresh the StatusSignal before returning it; 2647 * defaults to true 2648 * @return Fault_StatorCurrLimit Status Signal Object 2649 */ 2650 StatusSignal<Boolean> getFault_StatorCurrLimit(boolean refresh); 2651 2652 /** 2653 * Stator current limit occured. 2654 * 2655 * <ul> 2656 * <li> <b>Default Value:</b> False 2657 * </ul> 2658 * <p> 2659 * This refreshes and returns a cached StatusSignal object. 2660 * 2661 * @return StickyFault_StatorCurrLimit Status Signal Object 2662 */ 2663 StatusSignal<Boolean> getStickyFault_StatorCurrLimit(); 2664 2665 /** 2666 * Stator current limit occured. 2667 * 2668 * <ul> 2669 * <li> <b>Default Value:</b> False 2670 * </ul> 2671 * <p> 2672 * This refreshes and returns a cached StatusSignal object. 2673 * 2674 * @param refresh Whether to refresh the StatusSignal before returning it; 2675 * defaults to true 2676 * @return StickyFault_StatorCurrLimit Status Signal Object 2677 */ 2678 StatusSignal<Boolean> getStickyFault_StatorCurrLimit(boolean refresh); 2679 2680 /** 2681 * Supply current limit occured. 2682 * 2683 * <ul> 2684 * <li> <b>Default Value:</b> False 2685 * </ul> 2686 * <p> 2687 * This refreshes and returns a cached StatusSignal object. 2688 * 2689 * @return Fault_SupplyCurrLimit Status Signal Object 2690 */ 2691 StatusSignal<Boolean> getFault_SupplyCurrLimit(); 2692 2693 /** 2694 * Supply current limit occured. 2695 * 2696 * <ul> 2697 * <li> <b>Default Value:</b> False 2698 * </ul> 2699 * <p> 2700 * This refreshes and returns a cached StatusSignal object. 2701 * 2702 * @param refresh Whether to refresh the StatusSignal before returning it; 2703 * defaults to true 2704 * @return Fault_SupplyCurrLimit Status Signal Object 2705 */ 2706 StatusSignal<Boolean> getFault_SupplyCurrLimit(boolean refresh); 2707 2708 /** 2709 * Supply current limit occured. 2710 * 2711 * <ul> 2712 * <li> <b>Default Value:</b> False 2713 * </ul> 2714 * <p> 2715 * This refreshes and returns a cached StatusSignal object. 2716 * 2717 * @return StickyFault_SupplyCurrLimit Status Signal Object 2718 */ 2719 StatusSignal<Boolean> getStickyFault_SupplyCurrLimit(); 2720 2721 /** 2722 * Supply current limit occured. 2723 * 2724 * <ul> 2725 * <li> <b>Default Value:</b> False 2726 * </ul> 2727 * <p> 2728 * This refreshes and returns a cached StatusSignal object. 2729 * 2730 * @param refresh Whether to refresh the StatusSignal before returning it; 2731 * defaults to true 2732 * @return StickyFault_SupplyCurrLimit Status Signal Object 2733 */ 2734 StatusSignal<Boolean> getStickyFault_SupplyCurrLimit(boolean refresh); 2735 2736 /** 2737 * Using Fused CANcoder feature while unlicensed. Device has fallen 2738 * back to remote CANcoder. 2739 * 2740 * <ul> 2741 * <li> <b>Default Value:</b> False 2742 * </ul> 2743 * <p> 2744 * This refreshes and returns a cached StatusSignal object. 2745 * 2746 * @return Fault_UsingFusedCANcoderWhileUnlicensed Status Signal Object 2747 */ 2748 StatusSignal<Boolean> getFault_UsingFusedCANcoderWhileUnlicensed(); 2749 2750 /** 2751 * Using Fused CANcoder feature while unlicensed. Device has fallen 2752 * back to remote CANcoder. 2753 * 2754 * <ul> 2755 * <li> <b>Default Value:</b> False 2756 * </ul> 2757 * <p> 2758 * This refreshes and returns a cached StatusSignal object. 2759 * 2760 * @param refresh Whether to refresh the StatusSignal before returning it; 2761 * defaults to true 2762 * @return Fault_UsingFusedCANcoderWhileUnlicensed Status Signal Object 2763 */ 2764 StatusSignal<Boolean> getFault_UsingFusedCANcoderWhileUnlicensed(boolean refresh); 2765 2766 /** 2767 * Using Fused CANcoder feature while unlicensed. Device has fallen 2768 * back to remote CANcoder. 2769 * 2770 * <ul> 2771 * <li> <b>Default Value:</b> False 2772 * </ul> 2773 * <p> 2774 * This refreshes and returns a cached StatusSignal object. 2775 * 2776 * @return StickyFault_UsingFusedCANcoderWhileUnlicensed Status Signal Object 2777 */ 2778 StatusSignal<Boolean> getStickyFault_UsingFusedCANcoderWhileUnlicensed(); 2779 2780 /** 2781 * Using Fused CANcoder feature while unlicensed. Device has fallen 2782 * back to remote CANcoder. 2783 * 2784 * <ul> 2785 * <li> <b>Default Value:</b> False 2786 * </ul> 2787 * <p> 2788 * This refreshes and returns a cached StatusSignal object. 2789 * 2790 * @param refresh Whether to refresh the StatusSignal before returning it; 2791 * defaults to true 2792 * @return StickyFault_UsingFusedCANcoderWhileUnlicensed Status Signal Object 2793 */ 2794 StatusSignal<Boolean> getStickyFault_UsingFusedCANcoderWhileUnlicensed(boolean refresh); 2795 2796 /** 2797 * Static brake was momentarily disabled due to excessive braking 2798 * current while disabled. 2799 * 2800 * <ul> 2801 * <li> <b>Default Value:</b> False 2802 * </ul> 2803 * <p> 2804 * This refreshes and returns a cached StatusSignal object. 2805 * 2806 * @return Fault_StaticBrakeDisabled Status Signal Object 2807 */ 2808 StatusSignal<Boolean> getFault_StaticBrakeDisabled(); 2809 2810 /** 2811 * Static brake was momentarily disabled due to excessive braking 2812 * current while disabled. 2813 * 2814 * <ul> 2815 * <li> <b>Default Value:</b> False 2816 * </ul> 2817 * <p> 2818 * This refreshes and returns a cached StatusSignal object. 2819 * 2820 * @param refresh Whether to refresh the StatusSignal before returning it; 2821 * defaults to true 2822 * @return Fault_StaticBrakeDisabled Status Signal Object 2823 */ 2824 StatusSignal<Boolean> getFault_StaticBrakeDisabled(boolean refresh); 2825 2826 /** 2827 * Static brake was momentarily disabled due to excessive braking 2828 * current while disabled. 2829 * 2830 * <ul> 2831 * <li> <b>Default Value:</b> False 2832 * </ul> 2833 * <p> 2834 * This refreshes and returns a cached StatusSignal object. 2835 * 2836 * @return StickyFault_StaticBrakeDisabled Status Signal Object 2837 */ 2838 StatusSignal<Boolean> getStickyFault_StaticBrakeDisabled(); 2839 2840 /** 2841 * Static brake was momentarily disabled due to excessive braking 2842 * current while disabled. 2843 * 2844 * <ul> 2845 * <li> <b>Default Value:</b> False 2846 * </ul> 2847 * <p> 2848 * This refreshes and returns a cached StatusSignal object. 2849 * 2850 * @param refresh Whether to refresh the StatusSignal before returning it; 2851 * defaults to true 2852 * @return StickyFault_StaticBrakeDisabled Status Signal Object 2853 */ 2854 StatusSignal<Boolean> getStickyFault_StaticBrakeDisabled(boolean refresh); 2855 2856 /** 2857 * Closed loop proportional component. 2858 * <p> 2859 * The portion of the closed loop output that is proportional to the 2860 * error. Alternatively, the kP contribution of the closed loop 2861 * output. 2862 * <p> 2863 * When using differential control, this applies to the average axis. 2864 * <p> 2865 * This refreshes and returns a cached StatusSignal object. 2866 * 2867 * @return ClosedLoopProportionalOutput Status Signal object 2868 */ 2869 StatusSignal<Double> getClosedLoopProportionalOutput(); 2870 2871 /** 2872 * Closed loop proportional component. 2873 * <p> 2874 * The portion of the closed loop output that is proportional to the 2875 * error. Alternatively, the kP contribution of the closed loop 2876 * output. 2877 * <p> 2878 * When using differential control, this applies to the average axis. 2879 * <p> 2880 * This refreshes and returns a cached StatusSignal object. 2881 * 2882 * @param refresh Whether to refresh the StatusSignal before returning it; 2883 * defaults to true 2884 * @return ClosedLoopProportionalOutput Status Signal object 2885 */ 2886 StatusSignal<Double> getClosedLoopProportionalOutput(boolean refresh); 2887 2888 /** 2889 * Closed loop integrated component. 2890 * <p> 2891 * The portion of the closed loop output that is proportional to the 2892 * integrated error. Alternatively, the kI contribution of the closed 2893 * loop output. 2894 * <p> 2895 * When using differential control, this applies to the average axis. 2896 * <p> 2897 * This refreshes and returns a cached StatusSignal object. 2898 * 2899 * @return ClosedLoopIntegratedOutput Status Signal object 2900 */ 2901 StatusSignal<Double> getClosedLoopIntegratedOutput(); 2902 2903 /** 2904 * Closed loop integrated component. 2905 * <p> 2906 * The portion of the closed loop output that is proportional to the 2907 * integrated error. Alternatively, the kI contribution of the closed 2908 * loop output. 2909 * <p> 2910 * When using differential control, this applies to the average axis. 2911 * <p> 2912 * This refreshes and returns a cached StatusSignal object. 2913 * 2914 * @param refresh Whether to refresh the StatusSignal before returning it; 2915 * defaults to true 2916 * @return ClosedLoopIntegratedOutput Status Signal object 2917 */ 2918 StatusSignal<Double> getClosedLoopIntegratedOutput(boolean refresh); 2919 2920 /** 2921 * Feedforward passed by the user. 2922 * <p> 2923 * This is the general feedforward that the user provides for the 2924 * closed loop. 2925 * <p> 2926 * When using differential control, this applies to the average axis. 2927 * <p> 2928 * This refreshes and returns a cached StatusSignal object. 2929 * 2930 * @return ClosedLoopFeedForward Status Signal object 2931 */ 2932 StatusSignal<Double> getClosedLoopFeedForward(); 2933 2934 /** 2935 * Feedforward passed by the user. 2936 * <p> 2937 * This is the general feedforward that the user provides for the 2938 * closed loop. 2939 * <p> 2940 * When using differential control, this applies to the average axis. 2941 * <p> 2942 * This refreshes and returns a cached StatusSignal object. 2943 * 2944 * @param refresh Whether to refresh the StatusSignal before returning it; 2945 * defaults to true 2946 * @return ClosedLoopFeedForward Status Signal object 2947 */ 2948 StatusSignal<Double> getClosedLoopFeedForward(boolean refresh); 2949 2950 /** 2951 * Closed loop derivative component. 2952 * <p> 2953 * The portion of the closed loop output that is proportional to the 2954 * deriviative of error. Alternatively, the kD contribution of the 2955 * closed loop output. 2956 * <p> 2957 * When using differential control, this applies to the average axis. 2958 * <p> 2959 * This refreshes and returns a cached StatusSignal object. 2960 * 2961 * @return ClosedLoopDerivativeOutput Status Signal object 2962 */ 2963 StatusSignal<Double> getClosedLoopDerivativeOutput(); 2964 2965 /** 2966 * Closed loop derivative component. 2967 * <p> 2968 * The portion of the closed loop output that is proportional to the 2969 * deriviative of error. Alternatively, the kD contribution of the 2970 * closed loop output. 2971 * <p> 2972 * When using differential control, this applies to the average axis. 2973 * <p> 2974 * This refreshes and returns a cached StatusSignal object. 2975 * 2976 * @param refresh Whether to refresh the StatusSignal before returning it; 2977 * defaults to true 2978 * @return ClosedLoopDerivativeOutput Status Signal object 2979 */ 2980 StatusSignal<Double> getClosedLoopDerivativeOutput(boolean refresh); 2981 2982 /** 2983 * Closed loop total output. 2984 * <p> 2985 * The total output of the closed loop output. 2986 * <p> 2987 * When using differential control, this applies to the average axis. 2988 * <p> 2989 * This refreshes and returns a cached StatusSignal object. 2990 * 2991 * @return ClosedLoopOutput Status Signal object 2992 */ 2993 StatusSignal<Double> getClosedLoopOutput(); 2994 2995 /** 2996 * Closed loop total output. 2997 * <p> 2998 * The total output of the closed loop output. 2999 * <p> 3000 * When using differential control, this applies to the average axis. 3001 * <p> 3002 * This refreshes and returns a cached StatusSignal object. 3003 * 3004 * @param refresh Whether to refresh the StatusSignal before returning it; 3005 * defaults to true 3006 * @return ClosedLoopOutput Status Signal object 3007 */ 3008 StatusSignal<Double> getClosedLoopOutput(boolean refresh); 3009 3010 /** 3011 * Value that the closed loop is targeting. 3012 * <p> 3013 * This is the value that the closed loop PID controller targets. 3014 * <p> 3015 * When using differential control, this applies to the average axis. 3016 * <p> 3017 * This refreshes and returns a cached StatusSignal object. 3018 * 3019 * @return ClosedLoopReference Status Signal object 3020 */ 3021 StatusSignal<Double> getClosedLoopReference(); 3022 3023 /** 3024 * Value that the closed loop is targeting. 3025 * <p> 3026 * This is the value that the closed loop PID controller targets. 3027 * <p> 3028 * When using differential control, this applies to the average axis. 3029 * <p> 3030 * This refreshes and returns a cached StatusSignal object. 3031 * 3032 * @param refresh Whether to refresh the StatusSignal before returning it; 3033 * defaults to true 3034 * @return ClosedLoopReference Status Signal object 3035 */ 3036 StatusSignal<Double> getClosedLoopReference(boolean refresh); 3037 3038 /** 3039 * Derivative of the target that the closed loop is targeting. 3040 * <p> 3041 * This is the change in the closed loop reference. This may be used 3042 * in the feed-forward calculation, the derivative-error, or in 3043 * application of the signage for kS. Typically, this represents the 3044 * target velocity during Motion Magic®. 3045 * <p> 3046 * When using differential control, this applies to the average axis. 3047 * <p> 3048 * This refreshes and returns a cached StatusSignal object. 3049 * 3050 * @return ClosedLoopReferenceSlope Status Signal object 3051 */ 3052 StatusSignal<Double> getClosedLoopReferenceSlope(); 3053 3054 /** 3055 * Derivative of the target that the closed loop is targeting. 3056 * <p> 3057 * This is the change in the closed loop reference. This may be used 3058 * in the feed-forward calculation, the derivative-error, or in 3059 * application of the signage for kS. Typically, this represents the 3060 * target velocity during Motion Magic®. 3061 * <p> 3062 * When using differential control, this applies to the average axis. 3063 * <p> 3064 * This refreshes and returns a cached StatusSignal object. 3065 * 3066 * @param refresh Whether to refresh the StatusSignal before returning it; 3067 * defaults to true 3068 * @return ClosedLoopReferenceSlope Status Signal object 3069 */ 3070 StatusSignal<Double> getClosedLoopReferenceSlope(boolean refresh); 3071 3072 /** 3073 * The difference between target reference and current measurement. 3074 * <p> 3075 * This is the value that is treated as the error in the PID loop. 3076 * <p> 3077 * When using differential control, this applies to the average axis. 3078 * <p> 3079 * This refreshes and returns a cached StatusSignal object. 3080 * 3081 * @return ClosedLoopError Status Signal object 3082 */ 3083 StatusSignal<Double> getClosedLoopError(); 3084 3085 /** 3086 * The difference between target reference and current measurement. 3087 * <p> 3088 * This is the value that is treated as the error in the PID loop. 3089 * <p> 3090 * When using differential control, this applies to the average axis. 3091 * <p> 3092 * This refreshes and returns a cached StatusSignal object. 3093 * 3094 * @param refresh Whether to refresh the StatusSignal before returning it; 3095 * defaults to true 3096 * @return ClosedLoopError Status Signal object 3097 */ 3098 StatusSignal<Double> getClosedLoopError(boolean refresh); 3099 3100 /** 3101 * The calculated motor output for differential followers. 3102 * <p> 3103 * This is a torque request when using the TorqueCurrentFOC control 3104 * output type, a voltage request when using the Voltage control 3105 * output type, and a duty cycle when using the DutyCycle control 3106 * output type. 3107 * <p> 3108 * This refreshes and returns a cached StatusSignal object. 3109 * 3110 * @return DifferentialOutput Status Signal object 3111 */ 3112 StatusSignal<Double> getDifferentialOutput(); 3113 3114 /** 3115 * The calculated motor output for differential followers. 3116 * <p> 3117 * This is a torque request when using the TorqueCurrentFOC control 3118 * output type, a voltage request when using the Voltage control 3119 * output type, and a duty cycle when using the DutyCycle control 3120 * output type. 3121 * <p> 3122 * This refreshes and returns a cached StatusSignal object. 3123 * 3124 * @param refresh Whether to refresh the StatusSignal before returning it; 3125 * defaults to true 3126 * @return DifferentialOutput Status Signal object 3127 */ 3128 StatusSignal<Double> getDifferentialOutput(boolean refresh); 3129 3130 /** 3131 * Differential closed loop proportional component. 3132 * <p> 3133 * The portion of the differential closed loop output (on the 3134 * difference axis) that is proportional to the error. Alternatively, 3135 * the kP contribution of the closed loop output. 3136 * <p> 3137 * This refreshes and returns a cached StatusSignal object. 3138 * 3139 * @return DifferentialClosedLoopProportionalOutput Status Signal object 3140 */ 3141 StatusSignal<Double> getDifferentialClosedLoopProportionalOutput(); 3142 3143 /** 3144 * Differential closed loop proportional component. 3145 * <p> 3146 * The portion of the differential closed loop output (on the 3147 * difference axis) that is proportional to the error. Alternatively, 3148 * the kP contribution of the closed loop output. 3149 * <p> 3150 * This refreshes and returns a cached StatusSignal object. 3151 * 3152 * @param refresh Whether to refresh the StatusSignal before returning it; 3153 * defaults to true 3154 * @return DifferentialClosedLoopProportionalOutput Status Signal object 3155 */ 3156 StatusSignal<Double> getDifferentialClosedLoopProportionalOutput(boolean refresh); 3157 3158 /** 3159 * Differential closed loop integrated component. 3160 * <p> 3161 * The portion of the differential closed loop output (on the 3162 * difference axis) that is proportional to the integrated error. 3163 * Alternatively, the kI contribution of the closed loop output. 3164 * <p> 3165 * This refreshes and returns a cached StatusSignal object. 3166 * 3167 * @return DifferentialClosedLoopIntegratedOutput Status Signal object 3168 */ 3169 StatusSignal<Double> getDifferentialClosedLoopIntegratedOutput(); 3170 3171 /** 3172 * Differential closed loop integrated component. 3173 * <p> 3174 * The portion of the differential closed loop output (on the 3175 * difference axis) that is proportional to the integrated error. 3176 * Alternatively, the kI contribution of the closed loop output. 3177 * <p> 3178 * This refreshes and returns a cached StatusSignal object. 3179 * 3180 * @param refresh Whether to refresh the StatusSignal before returning it; 3181 * defaults to true 3182 * @return DifferentialClosedLoopIntegratedOutput Status Signal object 3183 */ 3184 StatusSignal<Double> getDifferentialClosedLoopIntegratedOutput(boolean refresh); 3185 3186 /** 3187 * Differential Feedforward passed by the user. 3188 * <p> 3189 * This is the general feedforward that the user provides for the 3190 * differential closed loop (on the difference axis). 3191 * <p> 3192 * This refreshes and returns a cached StatusSignal object. 3193 * 3194 * @return DifferentialClosedLoopFeedForward Status Signal object 3195 */ 3196 StatusSignal<Double> getDifferentialClosedLoopFeedForward(); 3197 3198 /** 3199 * Differential Feedforward passed by the user. 3200 * <p> 3201 * This is the general feedforward that the user provides for the 3202 * differential closed loop (on the difference axis). 3203 * <p> 3204 * This refreshes and returns a cached StatusSignal object. 3205 * 3206 * @param refresh Whether to refresh the StatusSignal before returning it; 3207 * defaults to true 3208 * @return DifferentialClosedLoopFeedForward Status Signal object 3209 */ 3210 StatusSignal<Double> getDifferentialClosedLoopFeedForward(boolean refresh); 3211 3212 /** 3213 * Differential closed loop derivative component. 3214 * <p> 3215 * The portion of the differential closed loop output (on the 3216 * difference axis) that is proportional to the deriviative of error. 3217 * Alternatively, the kD contribution of the closed loop output. 3218 * <p> 3219 * This refreshes and returns a cached StatusSignal object. 3220 * 3221 * @return DifferentialClosedLoopDerivativeOutput Status Signal object 3222 */ 3223 StatusSignal<Double> getDifferentialClosedLoopDerivativeOutput(); 3224 3225 /** 3226 * Differential closed loop derivative component. 3227 * <p> 3228 * The portion of the differential closed loop output (on the 3229 * difference axis) that is proportional to the deriviative of error. 3230 * Alternatively, the kD contribution of the closed loop output. 3231 * <p> 3232 * This refreshes and returns a cached StatusSignal object. 3233 * 3234 * @param refresh Whether to refresh the StatusSignal before returning it; 3235 * defaults to true 3236 * @return DifferentialClosedLoopDerivativeOutput Status Signal object 3237 */ 3238 StatusSignal<Double> getDifferentialClosedLoopDerivativeOutput(boolean refresh); 3239 3240 /** 3241 * Differential closed loop total output. 3242 * <p> 3243 * The total output of the differential closed loop output (on the 3244 * difference axis). 3245 * <p> 3246 * This refreshes and returns a cached StatusSignal object. 3247 * 3248 * @return DifferentialClosedLoopOutput Status Signal object 3249 */ 3250 StatusSignal<Double> getDifferentialClosedLoopOutput(); 3251 3252 /** 3253 * Differential closed loop total output. 3254 * <p> 3255 * The total output of the differential closed loop output (on the 3256 * difference axis). 3257 * <p> 3258 * This refreshes and returns a cached StatusSignal object. 3259 * 3260 * @param refresh Whether to refresh the StatusSignal before returning it; 3261 * defaults to true 3262 * @return DifferentialClosedLoopOutput Status Signal object 3263 */ 3264 StatusSignal<Double> getDifferentialClosedLoopOutput(boolean refresh); 3265 3266 /** 3267 * Value that the differential closed loop is targeting. 3268 * <p> 3269 * This is the value that the differential closed loop PID controller 3270 * targets (on the difference axis). 3271 * <p> 3272 * This refreshes and returns a cached StatusSignal object. 3273 * 3274 * @return DifferentialClosedLoopReference Status Signal object 3275 */ 3276 StatusSignal<Double> getDifferentialClosedLoopReference(); 3277 3278 /** 3279 * Value that the differential closed loop is targeting. 3280 * <p> 3281 * This is the value that the differential closed loop PID controller 3282 * targets (on the difference axis). 3283 * <p> 3284 * This refreshes and returns a cached StatusSignal object. 3285 * 3286 * @param refresh Whether to refresh the StatusSignal before returning it; 3287 * defaults to true 3288 * @return DifferentialClosedLoopReference Status Signal object 3289 */ 3290 StatusSignal<Double> getDifferentialClosedLoopReference(boolean refresh); 3291 3292 /** 3293 * Derivative of the target that the differential closed loop is 3294 * targeting. 3295 * <p> 3296 * This is the change in the closed loop reference (on the difference 3297 * axis). This may be used in the feed-forward calculation, the 3298 * derivative-error, or in application of the signage for kS. 3299 * Typically, this represents the target velocity during Motion 3300 * Magic®. 3301 * <p> 3302 * This refreshes and returns a cached StatusSignal object. 3303 * 3304 * @return DifferentialClosedLoopReferenceSlope Status Signal object 3305 */ 3306 StatusSignal<Double> getDifferentialClosedLoopReferenceSlope(); 3307 3308 /** 3309 * Derivative of the target that the differential closed loop is 3310 * targeting. 3311 * <p> 3312 * This is the change in the closed loop reference (on the difference 3313 * axis). This may be used in the feed-forward calculation, the 3314 * derivative-error, or in application of the signage for kS. 3315 * Typically, this represents the target velocity during Motion 3316 * Magic®. 3317 * <p> 3318 * This refreshes and returns a cached StatusSignal object. 3319 * 3320 * @param refresh Whether to refresh the StatusSignal before returning it; 3321 * defaults to true 3322 * @return DifferentialClosedLoopReferenceSlope Status Signal object 3323 */ 3324 StatusSignal<Double> getDifferentialClosedLoopReferenceSlope(boolean refresh); 3325 3326 /** 3327 * The difference between target differential reference and current 3328 * measurement. 3329 * <p> 3330 * This is the value that is treated as the error in the differential 3331 * PID loop (on the difference axis). 3332 * <p> 3333 * This refreshes and returns a cached StatusSignal object. 3334 * 3335 * @return DifferentialClosedLoopError Status Signal object 3336 */ 3337 StatusSignal<Double> getDifferentialClosedLoopError(); 3338 3339 /** 3340 * The difference between target differential reference and current 3341 * measurement. 3342 * <p> 3343 * This is the value that is treated as the error in the differential 3344 * PID loop (on the difference axis). 3345 * <p> 3346 * This refreshes and returns a cached StatusSignal object. 3347 * 3348 * @param refresh Whether to refresh the StatusSignal before returning it; 3349 * defaults to true 3350 * @return DifferentialClosedLoopError Status Signal object 3351 */ 3352 StatusSignal<Double> getDifferentialClosedLoopError(boolean refresh); 3353 3354 3355 3356 /** 3357 * Sets the mechanism position of the device in mechanism rotations. 3358 * <p> 3359 * This will wait up to 0.100 seconds (100ms) by default. 3360 * 3361 * @param newValue Value to set to. Units are in rotations. 3362 * @return StatusCode of the set command 3363 */ 3364 StatusCode setPosition(double newValue); 3365 /** 3366 * Sets the mechanism position of the device in mechanism rotations. 3367 * 3368 * @param newValue Value to set to. Units are in rotations. 3369 * @param timeoutSeconds Maximum time to wait up to in seconds. 3370 * @return StatusCode of the set command 3371 */ 3372 StatusCode setPosition(double newValue, double timeoutSeconds); 3373 3374 /** 3375 * Sets the mechanism position of the device in mechanism rotations. 3376 * <p> 3377 * This will wait up to 0.100 seconds (100ms) by default. 3378 * 3379 * @param newValue Value to set to. Units are in rotations. 3380 * @return StatusCode of the set command 3381 */ 3382 StatusCode setPosition(Angle newValue); 3383 /** 3384 * Sets the mechanism position of the device in mechanism rotations. 3385 * 3386 * @param newValue Value to set to. Units are in rotations. 3387 * @param timeoutSeconds Maximum time to wait up to in seconds. 3388 * @return StatusCode of the set command 3389 */ 3390 StatusCode setPosition(Angle newValue, double timeoutSeconds); 3391 3392 /** 3393 * Clear the sticky faults in the device. 3394 * <p> 3395 * This typically has no impact on the device functionality. Instead, 3396 * it just clears telemetry faults that are accessible via API and 3397 * Tuner Self-Test. 3398 * <p> 3399 * This will wait up to 0.100 seconds (100ms) by default. 3400 * 3401 * @return StatusCode of the set command 3402 */ 3403 StatusCode clearStickyFaults(); 3404 /** 3405 * Clear the sticky faults in the device. 3406 * <p> 3407 * This typically has no impact on the device functionality. Instead, 3408 * it just clears telemetry faults that are accessible via API and 3409 * Tuner Self-Test. 3410 * 3411 * @param timeoutSeconds Maximum time to wait up to in seconds. 3412 * @return StatusCode of the set command 3413 */ 3414 StatusCode clearStickyFaults(double timeoutSeconds); 3415 3416 /** 3417 * Clear sticky fault: Hardware fault occurred 3418 * <p> 3419 * This will wait up to 0.100 seconds (100ms) by default. 3420 * 3421 * @return StatusCode of the set command 3422 */ 3423 StatusCode clearStickyFault_Hardware(); 3424 /** 3425 * Clear sticky fault: Hardware fault occurred 3426 * 3427 * @param timeoutSeconds Maximum time to wait up to in seconds. 3428 * @return StatusCode of the set command 3429 */ 3430 StatusCode clearStickyFault_Hardware(double timeoutSeconds); 3431 3432 /** 3433 * Clear sticky fault: Processor temperature exceeded limit 3434 * <p> 3435 * This will wait up to 0.100 seconds (100ms) by default. 3436 * 3437 * @return StatusCode of the set command 3438 */ 3439 StatusCode clearStickyFault_ProcTemp(); 3440 /** 3441 * Clear sticky fault: Processor temperature exceeded limit 3442 * 3443 * @param timeoutSeconds Maximum time to wait up to in seconds. 3444 * @return StatusCode of the set command 3445 */ 3446 StatusCode clearStickyFault_ProcTemp(double timeoutSeconds); 3447 3448 /** 3449 * Clear sticky fault: Device temperature exceeded limit 3450 * <p> 3451 * This will wait up to 0.100 seconds (100ms) by default. 3452 * 3453 * @return StatusCode of the set command 3454 */ 3455 StatusCode clearStickyFault_DeviceTemp(); 3456 /** 3457 * Clear sticky fault: Device temperature exceeded limit 3458 * 3459 * @param timeoutSeconds Maximum time to wait up to in seconds. 3460 * @return StatusCode of the set command 3461 */ 3462 StatusCode clearStickyFault_DeviceTemp(double timeoutSeconds); 3463 3464 /** 3465 * Clear sticky fault: Device supply voltage dropped to near brownout 3466 * levels 3467 * <p> 3468 * This will wait up to 0.100 seconds (100ms) by default. 3469 * 3470 * @return StatusCode of the set command 3471 */ 3472 StatusCode clearStickyFault_Undervoltage(); 3473 /** 3474 * Clear sticky fault: Device supply voltage dropped to near brownout 3475 * levels 3476 * 3477 * @param timeoutSeconds Maximum time to wait up to in seconds. 3478 * @return StatusCode of the set command 3479 */ 3480 StatusCode clearStickyFault_Undervoltage(double timeoutSeconds); 3481 3482 /** 3483 * Clear sticky fault: Device boot while detecting the enable signal 3484 * <p> 3485 * This will wait up to 0.100 seconds (100ms) by default. 3486 * 3487 * @return StatusCode of the set command 3488 */ 3489 StatusCode clearStickyFault_BootDuringEnable(); 3490 /** 3491 * Clear sticky fault: Device boot while detecting the enable signal 3492 * 3493 * @param timeoutSeconds Maximum time to wait up to in seconds. 3494 * @return StatusCode of the set command 3495 */ 3496 StatusCode clearStickyFault_BootDuringEnable(double timeoutSeconds); 3497 3498 /** 3499 * Clear sticky fault: An unlicensed feature is in use, device may not 3500 * behave as expected. 3501 * <p> 3502 * This will wait up to 0.100 seconds (100ms) by default. 3503 * 3504 * @return StatusCode of the set command 3505 */ 3506 StatusCode clearStickyFault_UnlicensedFeatureInUse(); 3507 /** 3508 * Clear sticky fault: An unlicensed feature is in use, device may not 3509 * behave as expected. 3510 * 3511 * @param timeoutSeconds Maximum time to wait up to in seconds. 3512 * @return StatusCode of the set command 3513 */ 3514 StatusCode clearStickyFault_UnlicensedFeatureInUse(double timeoutSeconds); 3515 3516 /** 3517 * Clear sticky fault: Bridge was disabled most likely due to supply 3518 * voltage dropping too low. 3519 * <p> 3520 * This will wait up to 0.100 seconds (100ms) by default. 3521 * 3522 * @return StatusCode of the set command 3523 */ 3524 StatusCode clearStickyFault_BridgeBrownout(); 3525 /** 3526 * Clear sticky fault: Bridge was disabled most likely due to supply 3527 * voltage dropping too low. 3528 * 3529 * @param timeoutSeconds Maximum time to wait up to in seconds. 3530 * @return StatusCode of the set command 3531 */ 3532 StatusCode clearStickyFault_BridgeBrownout(double timeoutSeconds); 3533 3534 /** 3535 * Clear sticky fault: The remote sensor has reset. 3536 * <p> 3537 * This will wait up to 0.100 seconds (100ms) by default. 3538 * 3539 * @return StatusCode of the set command 3540 */ 3541 StatusCode clearStickyFault_RemoteSensorReset(); 3542 /** 3543 * Clear sticky fault: The remote sensor has reset. 3544 * 3545 * @param timeoutSeconds Maximum time to wait up to in seconds. 3546 * @return StatusCode of the set command 3547 */ 3548 StatusCode clearStickyFault_RemoteSensorReset(double timeoutSeconds); 3549 3550 /** 3551 * Clear sticky fault: The remote Talon used for differential control 3552 * is not present on CAN Bus. 3553 * <p> 3554 * This will wait up to 0.100 seconds (100ms) by default. 3555 * 3556 * @return StatusCode of the set command 3557 */ 3558 StatusCode clearStickyFault_MissingDifferentialFX(); 3559 /** 3560 * Clear sticky fault: The remote Talon used for differential control 3561 * is not present on CAN Bus. 3562 * 3563 * @param timeoutSeconds Maximum time to wait up to in seconds. 3564 * @return StatusCode of the set command 3565 */ 3566 StatusCode clearStickyFault_MissingDifferentialFX(double timeoutSeconds); 3567 3568 /** 3569 * Clear sticky fault: The remote sensor position has overflowed. 3570 * Because of the nature of remote sensors, it is possible for the 3571 * remote sensor position to overflow beyond what is supported by the 3572 * status signal frame. However, this is rare and cannot occur over 3573 * the course of an FRC match under normal use. 3574 * <p> 3575 * This will wait up to 0.100 seconds (100ms) by default. 3576 * 3577 * @return StatusCode of the set command 3578 */ 3579 StatusCode clearStickyFault_RemoteSensorPosOverflow(); 3580 /** 3581 * Clear sticky fault: The remote sensor position has overflowed. 3582 * Because of the nature of remote sensors, it is possible for the 3583 * remote sensor position to overflow beyond what is supported by the 3584 * status signal frame. However, this is rare and cannot occur over 3585 * the course of an FRC match under normal use. 3586 * 3587 * @param timeoutSeconds Maximum time to wait up to in seconds. 3588 * @return StatusCode of the set command 3589 */ 3590 StatusCode clearStickyFault_RemoteSensorPosOverflow(double timeoutSeconds); 3591 3592 /** 3593 * Clear sticky fault: Supply Voltage has exceeded the maximum voltage 3594 * rating of device. 3595 * <p> 3596 * This will wait up to 0.100 seconds (100ms) by default. 3597 * 3598 * @return StatusCode of the set command 3599 */ 3600 StatusCode clearStickyFault_OverSupplyV(); 3601 /** 3602 * Clear sticky fault: Supply Voltage has exceeded the maximum voltage 3603 * rating of device. 3604 * 3605 * @param timeoutSeconds Maximum time to wait up to in seconds. 3606 * @return StatusCode of the set command 3607 */ 3608 StatusCode clearStickyFault_OverSupplyV(double timeoutSeconds); 3609 3610 /** 3611 * Clear sticky fault: Supply Voltage is unstable. Ensure you are 3612 * using a battery and current limited power supply. 3613 * <p> 3614 * This will wait up to 0.100 seconds (100ms) by default. 3615 * 3616 * @return StatusCode of the set command 3617 */ 3618 StatusCode clearStickyFault_UnstableSupplyV(); 3619 /** 3620 * Clear sticky fault: Supply Voltage is unstable. Ensure you are 3621 * using a battery and current limited power supply. 3622 * 3623 * @param timeoutSeconds Maximum time to wait up to in seconds. 3624 * @return StatusCode of the set command 3625 */ 3626 StatusCode clearStickyFault_UnstableSupplyV(double timeoutSeconds); 3627 3628 /** 3629 * Clear sticky fault: Reverse limit switch has been asserted. Output 3630 * is set to neutral. 3631 * <p> 3632 * This will wait up to 0.100 seconds (100ms) by default. 3633 * 3634 * @return StatusCode of the set command 3635 */ 3636 StatusCode clearStickyFault_ReverseHardLimit(); 3637 /** 3638 * Clear sticky fault: Reverse limit switch has been asserted. Output 3639 * is set to neutral. 3640 * 3641 * @param timeoutSeconds Maximum time to wait up to in seconds. 3642 * @return StatusCode of the set command 3643 */ 3644 StatusCode clearStickyFault_ReverseHardLimit(double timeoutSeconds); 3645 3646 /** 3647 * Clear sticky fault: Forward limit switch has been asserted. Output 3648 * is set to neutral. 3649 * <p> 3650 * This will wait up to 0.100 seconds (100ms) by default. 3651 * 3652 * @return StatusCode of the set command 3653 */ 3654 StatusCode clearStickyFault_ForwardHardLimit(); 3655 /** 3656 * Clear sticky fault: Forward limit switch has been asserted. Output 3657 * is set to neutral. 3658 * 3659 * @param timeoutSeconds Maximum time to wait up to in seconds. 3660 * @return StatusCode of the set command 3661 */ 3662 StatusCode clearStickyFault_ForwardHardLimit(double timeoutSeconds); 3663 3664 /** 3665 * Clear sticky fault: Reverse soft limit has been asserted. Output 3666 * is set to neutral. 3667 * <p> 3668 * This will wait up to 0.100 seconds (100ms) by default. 3669 * 3670 * @return StatusCode of the set command 3671 */ 3672 StatusCode clearStickyFault_ReverseSoftLimit(); 3673 /** 3674 * Clear sticky fault: Reverse soft limit has been asserted. Output 3675 * is set to neutral. 3676 * 3677 * @param timeoutSeconds Maximum time to wait up to in seconds. 3678 * @return StatusCode of the set command 3679 */ 3680 StatusCode clearStickyFault_ReverseSoftLimit(double timeoutSeconds); 3681 3682 /** 3683 * Clear sticky fault: Forward soft limit has been asserted. Output 3684 * is set to neutral. 3685 * <p> 3686 * This will wait up to 0.100 seconds (100ms) by default. 3687 * 3688 * @return StatusCode of the set command 3689 */ 3690 StatusCode clearStickyFault_ForwardSoftLimit(); 3691 /** 3692 * Clear sticky fault: Forward soft limit has been asserted. Output 3693 * is set to neutral. 3694 * 3695 * @param timeoutSeconds Maximum time to wait up to in seconds. 3696 * @return StatusCode of the set command 3697 */ 3698 StatusCode clearStickyFault_ForwardSoftLimit(double timeoutSeconds); 3699 3700 /** 3701 * Clear sticky fault: The remote soft limit device is not present on 3702 * CAN Bus. 3703 * <p> 3704 * This will wait up to 0.100 seconds (100ms) by default. 3705 * 3706 * @return StatusCode of the set command 3707 */ 3708 StatusCode clearStickyFault_MissingSoftLimitRemote(); 3709 /** 3710 * Clear sticky fault: The remote soft limit device is not present on 3711 * CAN Bus. 3712 * 3713 * @param timeoutSeconds Maximum time to wait up to in seconds. 3714 * @return StatusCode of the set command 3715 */ 3716 StatusCode clearStickyFault_MissingSoftLimitRemote(double timeoutSeconds); 3717 3718 /** 3719 * Clear sticky fault: The remote limit switch device is not present 3720 * on CAN Bus. 3721 * <p> 3722 * This will wait up to 0.100 seconds (100ms) by default. 3723 * 3724 * @return StatusCode of the set command 3725 */ 3726 StatusCode clearStickyFault_MissingHardLimitRemote(); 3727 /** 3728 * Clear sticky fault: The remote limit switch device is not present 3729 * on CAN Bus. 3730 * 3731 * @param timeoutSeconds Maximum time to wait up to in seconds. 3732 * @return StatusCode of the set command 3733 */ 3734 StatusCode clearStickyFault_MissingHardLimitRemote(double timeoutSeconds); 3735 3736 /** 3737 * Clear sticky fault: The remote sensor's data is no longer trusted. 3738 * This can happen if the remote sensor disappears from the CAN bus or 3739 * if the remote sensor indicates its data is no longer valid, such as 3740 * when a CANcoder's magnet strength falls into the "red" range. 3741 * <p> 3742 * This will wait up to 0.100 seconds (100ms) by default. 3743 * 3744 * @return StatusCode of the set command 3745 */ 3746 StatusCode clearStickyFault_RemoteSensorDataInvalid(); 3747 /** 3748 * Clear sticky fault: The remote sensor's data is no longer trusted. 3749 * This can happen if the remote sensor disappears from the CAN bus or 3750 * if the remote sensor indicates its data is no longer valid, such as 3751 * when a CANcoder's magnet strength falls into the "red" range. 3752 * 3753 * @param timeoutSeconds Maximum time to wait up to in seconds. 3754 * @return StatusCode of the set command 3755 */ 3756 StatusCode clearStickyFault_RemoteSensorDataInvalid(double timeoutSeconds); 3757 3758 /** 3759 * Clear sticky fault: The remote sensor used for fusion has fallen 3760 * out of sync to the local sensor. A re-synchronization has occurred, 3761 * which may cause a discontinuity. This typically happens if there is 3762 * significant slop in the mechanism, or if the RotorToSensorRatio 3763 * configuration parameter is incorrect. 3764 * <p> 3765 * This will wait up to 0.100 seconds (100ms) by default. 3766 * 3767 * @return StatusCode of the set command 3768 */ 3769 StatusCode clearStickyFault_FusedSensorOutOfSync(); 3770 /** 3771 * Clear sticky fault: The remote sensor used for fusion has fallen 3772 * out of sync to the local sensor. A re-synchronization has occurred, 3773 * which may cause a discontinuity. This typically happens if there is 3774 * significant slop in the mechanism, or if the RotorToSensorRatio 3775 * configuration parameter is incorrect. 3776 * 3777 * @param timeoutSeconds Maximum time to wait up to in seconds. 3778 * @return StatusCode of the set command 3779 */ 3780 StatusCode clearStickyFault_FusedSensorOutOfSync(double timeoutSeconds); 3781 3782 /** 3783 * Clear sticky fault: Stator current limit occured. 3784 * <p> 3785 * This will wait up to 0.100 seconds (100ms) by default. 3786 * 3787 * @return StatusCode of the set command 3788 */ 3789 StatusCode clearStickyFault_StatorCurrLimit(); 3790 /** 3791 * Clear sticky fault: Stator current limit occured. 3792 * 3793 * @param timeoutSeconds Maximum time to wait up to in seconds. 3794 * @return StatusCode of the set command 3795 */ 3796 StatusCode clearStickyFault_StatorCurrLimit(double timeoutSeconds); 3797 3798 /** 3799 * Clear sticky fault: Supply current limit occured. 3800 * <p> 3801 * This will wait up to 0.100 seconds (100ms) by default. 3802 * 3803 * @return StatusCode of the set command 3804 */ 3805 StatusCode clearStickyFault_SupplyCurrLimit(); 3806 /** 3807 * Clear sticky fault: Supply current limit occured. 3808 * 3809 * @param timeoutSeconds Maximum time to wait up to in seconds. 3810 * @return StatusCode of the set command 3811 */ 3812 StatusCode clearStickyFault_SupplyCurrLimit(double timeoutSeconds); 3813 3814 /** 3815 * Clear sticky fault: Using Fused CANcoder feature while unlicensed. 3816 * Device has fallen back to remote CANcoder. 3817 * <p> 3818 * This will wait up to 0.100 seconds (100ms) by default. 3819 * 3820 * @return StatusCode of the set command 3821 */ 3822 StatusCode clearStickyFault_UsingFusedCANcoderWhileUnlicensed(); 3823 /** 3824 * Clear sticky fault: Using Fused CANcoder feature while unlicensed. 3825 * Device has fallen back to remote CANcoder. 3826 * 3827 * @param timeoutSeconds Maximum time to wait up to in seconds. 3828 * @return StatusCode of the set command 3829 */ 3830 StatusCode clearStickyFault_UsingFusedCANcoderWhileUnlicensed(double timeoutSeconds); 3831 3832 /** 3833 * Clear sticky fault: Static brake was momentarily disabled due to 3834 * excessive braking current while disabled. 3835 * <p> 3836 * This will wait up to 0.100 seconds (100ms) by default. 3837 * 3838 * @return StatusCode of the set command 3839 */ 3840 StatusCode clearStickyFault_StaticBrakeDisabled(); 3841 /** 3842 * Clear sticky fault: Static brake was momentarily disabled due to 3843 * excessive braking current while disabled. 3844 * 3845 * @param timeoutSeconds Maximum time to wait up to in seconds. 3846 * @return StatusCode of the set command 3847 */ 3848 StatusCode clearStickyFault_StaticBrakeDisabled(double timeoutSeconds); 3849} 3850