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 for motor controllers that support external 016 * motors. 017 */ 018public interface HasExternalMotor extends CommonDevice 019{ 020 021 /** 022 * Status of the temperature sensor of the external motor. 023 * 024 * <p> 025 * This refreshes and returns a cached StatusSignal object. 026 * 027 * @return ExternalMotorTempStatus Status Signal Object 028 */ 029 StatusSignal<ExternalMotorTempStatusValue> getExternalMotorTempStatus(); 030 031 /** 032 * Status of the temperature sensor of the external motor. 033 * 034 * <p> 035 * This refreshes and returns a cached StatusSignal object. 036 * 037 * @param refresh Whether to refresh the StatusSignal before returning it; 038 * defaults to true 039 * @return ExternalMotorTempStatus Status Signal Object 040 */ 041 StatusSignal<ExternalMotorTempStatusValue> getExternalMotorTempStatus(boolean refresh); 042 043 /** 044 * Temperature of the external motor. 045 * 046 * <ul> 047 * <li> <b>Minimum Value:</b> 0.0 048 * <li> <b>Maximum Value:</b> 255.0 049 * <li> <b>Default Value:</b> 0 050 * <li> <b>Units:</b> ℃ 051 * </ul> 052 * <p> 053 * This refreshes and returns a cached StatusSignal object. 054 * 055 * @return ExternalMotorTemp Status Signal Object 056 */ 057 StatusSignal<Temperature> getExternalMotorTemp(); 058 059 /** 060 * Temperature of the external motor. 061 * 062 * <ul> 063 * <li> <b>Minimum Value:</b> 0.0 064 * <li> <b>Maximum Value:</b> 255.0 065 * <li> <b>Default Value:</b> 0 066 * <li> <b>Units:</b> ℃ 067 * </ul> 068 * <p> 069 * This refreshes and returns a cached StatusSignal object. 070 * 071 * @param refresh Whether to refresh the StatusSignal before returning it; 072 * defaults to true 073 * @return ExternalMotorTemp Status Signal Object 074 */ 075 StatusSignal<Temperature> getExternalMotorTemp(boolean refresh); 076 077 /** 078 * The measured voltage of the 5V rail available on the JST and 079 * dataport connectors. 080 * 081 * <ul> 082 * <li> <b>Minimum Value:</b> 0.0 083 * <li> <b>Maximum Value:</b> 40.95 084 * <li> <b>Default Value:</b> 0 085 * <li> <b>Units:</b> Volts 086 * </ul> 087 * <p> 088 * This refreshes and returns a cached StatusSignal object. 089 * 090 * @return FiveVRailVoltage Status Signal Object 091 */ 092 StatusSignal<Voltage> getFiveVRailVoltage(); 093 094 /** 095 * The measured voltage of the 5V rail available on the JST and 096 * dataport connectors. 097 * 098 * <ul> 099 * <li> <b>Minimum Value:</b> 0.0 100 * <li> <b>Maximum Value:</b> 40.95 101 * <li> <b>Default Value:</b> 0 102 * <li> <b>Units:</b> Volts 103 * </ul> 104 * <p> 105 * This refreshes and returns a cached StatusSignal object. 106 * 107 * @param refresh Whether to refresh the StatusSignal before returning it; 108 * defaults to true 109 * @return FiveVRailVoltage Status Signal Object 110 */ 111 StatusSignal<Voltage> getFiveVRailVoltage(boolean refresh); 112 113 /** 114 * The voltage of the analog pin (pin 3) of the Talon FXS data port. 115 * The analog pin reads a nominal voltage of 0-5V. 116 * 117 * <ul> 118 * <li> <b>Minimum Value:</b> 0 119 * <li> <b>Maximum Value:</b> 6 120 * <li> <b>Default Value:</b> 0 121 * <li> <b>Units:</b> Volts 122 * </ul> 123 * <p> 124 * This refreshes and returns a cached StatusSignal object. 125 * 126 * @return AnalogVoltage Status Signal Object 127 */ 128 StatusSignal<Voltage> getAnalogVoltage(); 129 130 /** 131 * The voltage of the analog pin (pin 3) of the Talon FXS data port. 132 * The analog pin reads a nominal voltage of 0-5V. 133 * 134 * <ul> 135 * <li> <b>Minimum Value:</b> 0 136 * <li> <b>Maximum Value:</b> 6 137 * <li> <b>Default Value:</b> 0 138 * <li> <b>Units:</b> Volts 139 * </ul> 140 * <p> 141 * This refreshes and returns a cached StatusSignal object. 142 * 143 * @param refresh Whether to refresh the StatusSignal before returning it; 144 * defaults to true 145 * @return AnalogVoltage Status Signal Object 146 */ 147 StatusSignal<Voltage> getAnalogVoltage(boolean refresh); 148 149 /** 150 * The raw position retrieved from the connected quadrature encoder. 151 * This is only affected by the QuadratureEdgesPerRotation config. In 152 * most situations, the user should instead configure the 153 * ExternalFeedbackSensorSource and use the regular position getter. 154 * <p> 155 * This signal must have its update frequency configured before it 156 * will have data. 157 * 158 * <ul> 159 * <li> <b>Minimum Value:</b> -16384.0 160 * <li> <b>Maximum Value:</b> 16383.999755859375 161 * <li> <b>Default Value:</b> 0 162 * <li> <b>Units:</b> rotations 163 * </ul> 164 * <p> 165 * This refreshes and returns a cached StatusSignal object. 166 * 167 * @return RawQuadraturePosition Status Signal Object 168 */ 169 StatusSignal<Angle> getRawQuadraturePosition(); 170 171 /** 172 * The raw position retrieved from the connected quadrature encoder. 173 * This is only affected by the QuadratureEdgesPerRotation config. In 174 * most situations, the user should instead configure the 175 * ExternalFeedbackSensorSource and use the regular position getter. 176 * <p> 177 * This signal must have its update frequency configured before it 178 * will have data. 179 * 180 * <ul> 181 * <li> <b>Minimum Value:</b> -16384.0 182 * <li> <b>Maximum Value:</b> 16383.999755859375 183 * <li> <b>Default Value:</b> 0 184 * <li> <b>Units:</b> rotations 185 * </ul> 186 * <p> 187 * This refreshes and returns a cached StatusSignal object. 188 * 189 * @param refresh Whether to refresh the StatusSignal before returning it; 190 * defaults to true 191 * @return RawQuadraturePosition Status Signal Object 192 */ 193 StatusSignal<Angle> getRawQuadraturePosition(boolean refresh); 194 195 /** 196 * The raw velocity retrieved from the connected quadrature encoder. 197 * This is only affected by the QuadratureEdgesPerRotation config. In 198 * most situations, the user should instead configure the 199 * ExternalFeedbackSensorSource and use the regular velocity getter. 200 * <p> 201 * This signal must have its update frequency configured before it 202 * will have data. 203 * 204 * <ul> 205 * <li> <b>Minimum Value:</b> -512.0 206 * <li> <b>Maximum Value:</b> 511.998046875 207 * <li> <b>Default Value:</b> 0 208 * <li> <b>Units:</b> rotations per second 209 * </ul> 210 * <p> 211 * This refreshes and returns a cached StatusSignal object. 212 * 213 * @return RawQuadratureVelocity Status Signal Object 214 */ 215 StatusSignal<AngularVelocity> getRawQuadratureVelocity(); 216 217 /** 218 * The raw velocity retrieved from the connected quadrature encoder. 219 * This is only affected by the QuadratureEdgesPerRotation config. In 220 * most situations, the user should instead configure the 221 * ExternalFeedbackSensorSource and use the regular velocity getter. 222 * <p> 223 * This signal must have its update frequency configured before it 224 * will have data. 225 * 226 * <ul> 227 * <li> <b>Minimum Value:</b> -512.0 228 * <li> <b>Maximum Value:</b> 511.998046875 229 * <li> <b>Default Value:</b> 0 230 * <li> <b>Units:</b> rotations per second 231 * </ul> 232 * <p> 233 * This refreshes and returns a cached StatusSignal object. 234 * 235 * @param refresh Whether to refresh the StatusSignal before returning it; 236 * defaults to true 237 * @return RawQuadratureVelocity Status Signal Object 238 */ 239 StatusSignal<AngularVelocity> getRawQuadratureVelocity(boolean refresh); 240 241 /** 242 * The raw position retrieved from the connected pulse-width encoder. 243 * This is not affected by any config. In most situations, the user 244 * should instead configure the ExternalFeedbackSensorSource and use 245 * the regular position getter. 246 * <p> 247 * This signal must have its update frequency configured before it 248 * will have data. 249 * 250 * <ul> 251 * <li> <b>Minimum Value:</b> -16384.0 252 * <li> <b>Maximum Value:</b> 16383.999755859375 253 * <li> <b>Default Value:</b> 0 254 * <li> <b>Units:</b> rotations 255 * </ul> 256 * <p> 257 * This refreshes and returns a cached StatusSignal object. 258 * 259 * @return RawPulseWidthPosition Status Signal Object 260 */ 261 StatusSignal<Angle> getRawPulseWidthPosition(); 262 263 /** 264 * The raw position retrieved from the connected pulse-width encoder. 265 * This is not affected by any config. In most situations, the user 266 * should instead configure the ExternalFeedbackSensorSource and use 267 * the regular position getter. 268 * <p> 269 * This signal must have its update frequency configured before it 270 * will have data. 271 * 272 * <ul> 273 * <li> <b>Minimum Value:</b> -16384.0 274 * <li> <b>Maximum Value:</b> 16383.999755859375 275 * <li> <b>Default Value:</b> 0 276 * <li> <b>Units:</b> rotations 277 * </ul> 278 * <p> 279 * This refreshes and returns a cached StatusSignal object. 280 * 281 * @param refresh Whether to refresh the StatusSignal before returning it; 282 * defaults to true 283 * @return RawPulseWidthPosition Status Signal Object 284 */ 285 StatusSignal<Angle> getRawPulseWidthPosition(boolean refresh); 286 287 /** 288 * The raw velocity retrieved from the connected pulse-width encoder. 289 * This is not affected by any config. In most situations, the user 290 * should instead configure the ExternalFeedbackSensorSource and use 291 * the regular velocity getter. 292 * <p> 293 * This signal must have its update frequency configured before it 294 * will have data. 295 * 296 * <ul> 297 * <li> <b>Minimum Value:</b> -512.0 298 * <li> <b>Maximum Value:</b> 511.998046875 299 * <li> <b>Default Value:</b> 0 300 * <li> <b>Units:</b> rotations per second 301 * </ul> 302 * <p> 303 * This refreshes and returns a cached StatusSignal object. 304 * 305 * @return RawPulseWidthVelocity Status Signal Object 306 */ 307 StatusSignal<AngularVelocity> getRawPulseWidthVelocity(); 308 309 /** 310 * The raw velocity retrieved from the connected pulse-width encoder. 311 * This is not affected by any config. In most situations, the user 312 * should instead configure the ExternalFeedbackSensorSource and use 313 * the regular velocity getter. 314 * <p> 315 * This signal must have its update frequency configured before it 316 * will have data. 317 * 318 * <ul> 319 * <li> <b>Minimum Value:</b> -512.0 320 * <li> <b>Maximum Value:</b> 511.998046875 321 * <li> <b>Default Value:</b> 0 322 * <li> <b>Units:</b> rotations per second 323 * </ul> 324 * <p> 325 * This refreshes and returns a cached StatusSignal object. 326 * 327 * @param refresh Whether to refresh the StatusSignal before returning it; 328 * defaults to true 329 * @return RawPulseWidthVelocity Status Signal Object 330 */ 331 StatusSignal<AngularVelocity> getRawPulseWidthVelocity(boolean refresh); 332 333 /** 334 * Bridge was disabled most likely due to a short in the motor leads. 335 * 336 * <ul> 337 * <li> <b>Default Value:</b> False 338 * </ul> 339 * <p> 340 * This refreshes and returns a cached StatusSignal object. 341 * 342 * @return Fault_BridgeShort Status Signal Object 343 */ 344 StatusSignal<Boolean> getFault_BridgeShort(); 345 346 /** 347 * Bridge was disabled most likely due to a short in the motor leads. 348 * 349 * <ul> 350 * <li> <b>Default Value:</b> False 351 * </ul> 352 * <p> 353 * This refreshes and returns a cached StatusSignal object. 354 * 355 * @param refresh Whether to refresh the StatusSignal before returning it; 356 * defaults to true 357 * @return Fault_BridgeShort Status Signal Object 358 */ 359 StatusSignal<Boolean> getFault_BridgeShort(boolean refresh); 360 361 /** 362 * Bridge was disabled most likely due to a short in the motor leads. 363 * 364 * <ul> 365 * <li> <b>Default Value:</b> False 366 * </ul> 367 * <p> 368 * This refreshes and returns a cached StatusSignal object. 369 * 370 * @return StickyFault_BridgeShort Status Signal Object 371 */ 372 StatusSignal<Boolean> getStickyFault_BridgeShort(); 373 374 /** 375 * Bridge was disabled most likely due to a short in the motor leads. 376 * 377 * <ul> 378 * <li> <b>Default Value:</b> False 379 * </ul> 380 * <p> 381 * This refreshes and returns a cached StatusSignal object. 382 * 383 * @param refresh Whether to refresh the StatusSignal before returning it; 384 * defaults to true 385 * @return StickyFault_BridgeShort Status Signal Object 386 */ 387 StatusSignal<Boolean> getStickyFault_BridgeShort(boolean refresh); 388 389 /** 390 * Hall sensor signals are invalid. Check hall sensor and cabling. 391 * This fault can be used to detect when hall cable is unplugged. 392 * 393 * <ul> 394 * <li> <b>Default Value:</b> False 395 * </ul> 396 * <p> 397 * This refreshes and returns a cached StatusSignal object. 398 * 399 * @return Fault_HallSensorMissing Status Signal Object 400 */ 401 StatusSignal<Boolean> getFault_HallSensorMissing(); 402 403 /** 404 * Hall sensor signals are invalid. Check hall sensor and cabling. 405 * This fault can be used to detect when hall cable is unplugged. 406 * 407 * <ul> 408 * <li> <b>Default Value:</b> False 409 * </ul> 410 * <p> 411 * This refreshes and returns a cached StatusSignal object. 412 * 413 * @param refresh Whether to refresh the StatusSignal before returning it; 414 * defaults to true 415 * @return Fault_HallSensorMissing Status Signal Object 416 */ 417 StatusSignal<Boolean> getFault_HallSensorMissing(boolean refresh); 418 419 /** 420 * Hall sensor signals are invalid. Check hall sensor and cabling. 421 * This fault can be used to detect when hall cable is unplugged. 422 * 423 * <ul> 424 * <li> <b>Default Value:</b> False 425 * </ul> 426 * <p> 427 * This refreshes and returns a cached StatusSignal object. 428 * 429 * @return StickyFault_HallSensorMissing Status Signal Object 430 */ 431 StatusSignal<Boolean> getStickyFault_HallSensorMissing(); 432 433 /** 434 * Hall sensor signals are invalid. Check hall sensor and cabling. 435 * This fault can be used to detect when hall cable is unplugged. 436 * 437 * <ul> 438 * <li> <b>Default Value:</b> False 439 * </ul> 440 * <p> 441 * This refreshes and returns a cached StatusSignal object. 442 * 443 * @param refresh Whether to refresh the StatusSignal before returning it; 444 * defaults to true 445 * @return StickyFault_HallSensorMissing Status Signal Object 446 */ 447 StatusSignal<Boolean> getStickyFault_HallSensorMissing(boolean refresh); 448 449 /** 450 * Hall sensor signals are invalid during motor drive, so motor was 451 * disabled. Check hall sensor and cabling. 452 * 453 * <ul> 454 * <li> <b>Default Value:</b> False 455 * </ul> 456 * <p> 457 * This refreshes and returns a cached StatusSignal object. 458 * 459 * @return Fault_DriveDisabledHallSensor Status Signal Object 460 */ 461 StatusSignal<Boolean> getFault_DriveDisabledHallSensor(); 462 463 /** 464 * Hall sensor signals are invalid during motor drive, so motor was 465 * disabled. Check hall sensor and cabling. 466 * 467 * <ul> 468 * <li> <b>Default Value:</b> False 469 * </ul> 470 * <p> 471 * This refreshes and returns a cached StatusSignal object. 472 * 473 * @param refresh Whether to refresh the StatusSignal before returning it; 474 * defaults to true 475 * @return Fault_DriveDisabledHallSensor Status Signal Object 476 */ 477 StatusSignal<Boolean> getFault_DriveDisabledHallSensor(boolean refresh); 478 479 /** 480 * Hall sensor signals are invalid during motor drive, so motor was 481 * disabled. Check hall sensor and cabling. 482 * 483 * <ul> 484 * <li> <b>Default Value:</b> False 485 * </ul> 486 * <p> 487 * This refreshes and returns a cached StatusSignal object. 488 * 489 * @return StickyFault_DriveDisabledHallSensor Status Signal Object 490 */ 491 StatusSignal<Boolean> getStickyFault_DriveDisabledHallSensor(); 492 493 /** 494 * Hall sensor signals are invalid during motor drive, so motor was 495 * disabled. Check hall sensor and cabling. 496 * 497 * <ul> 498 * <li> <b>Default Value:</b> False 499 * </ul> 500 * <p> 501 * This refreshes and returns a cached StatusSignal object. 502 * 503 * @param refresh Whether to refresh the StatusSignal before returning it; 504 * defaults to true 505 * @return StickyFault_DriveDisabledHallSensor Status Signal Object 506 */ 507 StatusSignal<Boolean> getStickyFault_DriveDisabledHallSensor(boolean refresh); 508 509 /** 510 * Motor temperature signal appears to not be connected. 511 * 512 * <ul> 513 * <li> <b>Default Value:</b> False 514 * </ul> 515 * <p> 516 * This refreshes and returns a cached StatusSignal object. 517 * 518 * @return Fault_MotorTempSensorMissing Status Signal Object 519 */ 520 StatusSignal<Boolean> getFault_MotorTempSensorMissing(); 521 522 /** 523 * Motor temperature signal appears to not be connected. 524 * 525 * <ul> 526 * <li> <b>Default Value:</b> False 527 * </ul> 528 * <p> 529 * This refreshes and returns a cached StatusSignal object. 530 * 531 * @param refresh Whether to refresh the StatusSignal before returning it; 532 * defaults to true 533 * @return Fault_MotorTempSensorMissing Status Signal Object 534 */ 535 StatusSignal<Boolean> getFault_MotorTempSensorMissing(boolean refresh); 536 537 /** 538 * Motor temperature signal appears to not be connected. 539 * 540 * <ul> 541 * <li> <b>Default Value:</b> False 542 * </ul> 543 * <p> 544 * This refreshes and returns a cached StatusSignal object. 545 * 546 * @return StickyFault_MotorTempSensorMissing Status Signal Object 547 */ 548 StatusSignal<Boolean> getStickyFault_MotorTempSensorMissing(); 549 550 /** 551 * Motor temperature signal appears to not be connected. 552 * 553 * <ul> 554 * <li> <b>Default Value:</b> False 555 * </ul> 556 * <p> 557 * This refreshes and returns a cached StatusSignal object. 558 * 559 * @param refresh Whether to refresh the StatusSignal before returning it; 560 * defaults to true 561 * @return StickyFault_MotorTempSensorMissing Status Signal Object 562 */ 563 StatusSignal<Boolean> getStickyFault_MotorTempSensorMissing(boolean refresh); 564 565 /** 566 * Motor temperature signal indicates motor is too hot. 567 * 568 * <ul> 569 * <li> <b>Default Value:</b> False 570 * </ul> 571 * <p> 572 * This refreshes and returns a cached StatusSignal object. 573 * 574 * @return Fault_MotorTempSensorTooHot Status Signal Object 575 */ 576 StatusSignal<Boolean> getFault_MotorTempSensorTooHot(); 577 578 /** 579 * Motor temperature signal indicates motor is too hot. 580 * 581 * <ul> 582 * <li> <b>Default Value:</b> False 583 * </ul> 584 * <p> 585 * This refreshes and returns a cached StatusSignal object. 586 * 587 * @param refresh Whether to refresh the StatusSignal before returning it; 588 * defaults to true 589 * @return Fault_MotorTempSensorTooHot Status Signal Object 590 */ 591 StatusSignal<Boolean> getFault_MotorTempSensorTooHot(boolean refresh); 592 593 /** 594 * Motor temperature signal indicates motor is too hot. 595 * 596 * <ul> 597 * <li> <b>Default Value:</b> False 598 * </ul> 599 * <p> 600 * This refreshes and returns a cached StatusSignal object. 601 * 602 * @return StickyFault_MotorTempSensorTooHot Status Signal Object 603 */ 604 StatusSignal<Boolean> getStickyFault_MotorTempSensorTooHot(); 605 606 /** 607 * Motor temperature signal indicates motor is too hot. 608 * 609 * <ul> 610 * <li> <b>Default Value:</b> False 611 * </ul> 612 * <p> 613 * This refreshes and returns a cached StatusSignal object. 614 * 615 * @param refresh Whether to refresh the StatusSignal before returning it; 616 * defaults to true 617 * @return StickyFault_MotorTempSensorTooHot Status Signal Object 618 */ 619 StatusSignal<Boolean> getStickyFault_MotorTempSensorTooHot(boolean refresh); 620 621 /** 622 * Motor arrangement has not been set in configuration. 623 * 624 * <ul> 625 * <li> <b>Default Value:</b> False 626 * </ul> 627 * <p> 628 * This refreshes and returns a cached StatusSignal object. 629 * 630 * @return Fault_MotorArrangementNotSelected Status Signal Object 631 */ 632 StatusSignal<Boolean> getFault_MotorArrangementNotSelected(); 633 634 /** 635 * Motor arrangement has not been set in configuration. 636 * 637 * <ul> 638 * <li> <b>Default Value:</b> False 639 * </ul> 640 * <p> 641 * This refreshes and returns a cached StatusSignal object. 642 * 643 * @param refresh Whether to refresh the StatusSignal before returning it; 644 * defaults to true 645 * @return Fault_MotorArrangementNotSelected Status Signal Object 646 */ 647 StatusSignal<Boolean> getFault_MotorArrangementNotSelected(boolean refresh); 648 649 /** 650 * Motor arrangement has not been set in configuration. 651 * 652 * <ul> 653 * <li> <b>Default Value:</b> False 654 * </ul> 655 * <p> 656 * This refreshes and returns a cached StatusSignal object. 657 * 658 * @return StickyFault_MotorArrangementNotSelected Status Signal Object 659 */ 660 StatusSignal<Boolean> getStickyFault_MotorArrangementNotSelected(); 661 662 /** 663 * Motor arrangement has not been set in configuration. 664 * 665 * <ul> 666 * <li> <b>Default Value:</b> False 667 * </ul> 668 * <p> 669 * This refreshes and returns a cached StatusSignal object. 670 * 671 * @param refresh Whether to refresh the StatusSignal before returning it; 672 * defaults to true 673 * @return StickyFault_MotorArrangementNotSelected Status Signal Object 674 */ 675 StatusSignal<Boolean> getStickyFault_MotorArrangementNotSelected(boolean refresh); 676 677 /** 678 * The CTR Electronics' TalonFX device has detected a 5V fault. This 679 * may be due to overcurrent or a short-circuit. 680 * 681 * <ul> 682 * <li> <b>Default Value:</b> False 683 * </ul> 684 * <p> 685 * This refreshes and returns a cached StatusSignal object. 686 * 687 * @return Fault_5V Status Signal Object 688 */ 689 StatusSignal<Boolean> getFault_5V(); 690 691 /** 692 * The CTR Electronics' TalonFX device has detected a 5V fault. This 693 * may be due to overcurrent or a short-circuit. 694 * 695 * <ul> 696 * <li> <b>Default Value:</b> False 697 * </ul> 698 * <p> 699 * This refreshes and returns a cached StatusSignal object. 700 * 701 * @param refresh Whether to refresh the StatusSignal before returning it; 702 * defaults to true 703 * @return Fault_5V Status Signal Object 704 */ 705 StatusSignal<Boolean> getFault_5V(boolean refresh); 706 707 /** 708 * The CTR Electronics' TalonFX device has detected a 5V fault. This 709 * may be due to overcurrent or a short-circuit. 710 * 711 * <ul> 712 * <li> <b>Default Value:</b> False 713 * </ul> 714 * <p> 715 * This refreshes and returns a cached StatusSignal object. 716 * 717 * @return StickyFault_5V Status Signal Object 718 */ 719 StatusSignal<Boolean> getStickyFault_5V(); 720 721 /** 722 * The CTR Electronics' TalonFX device has detected a 5V fault. This 723 * may be due to overcurrent or a short-circuit. 724 * 725 * <ul> 726 * <li> <b>Default Value:</b> False 727 * </ul> 728 * <p> 729 * This refreshes and returns a cached StatusSignal object. 730 * 731 * @param refresh Whether to refresh the StatusSignal before returning it; 732 * defaults to true 733 * @return StickyFault_5V Status Signal Object 734 */ 735 StatusSignal<Boolean> getStickyFault_5V(boolean refresh); 736 737 738 739 /** 740 * Clear sticky fault: Bridge was disabled most likely due to a short 741 * in the motor leads. 742 * <p> 743 * This will wait up to 0.100 seconds (100ms) by default. 744 * 745 * @return StatusCode of the set command 746 */ 747 StatusCode clearStickyFault_BridgeShort(); 748 /** 749 * Clear sticky fault: Bridge was disabled most likely due to a short 750 * in the motor leads. 751 * 752 * @param timeoutSeconds Maximum time to wait up to in seconds. 753 * @return StatusCode of the set command 754 */ 755 StatusCode clearStickyFault_BridgeShort(double timeoutSeconds); 756 757 /** 758 * Clear sticky fault: Hall sensor signals are invalid. Check hall 759 * sensor and cabling. This fault can be used to detect when hall 760 * cable is unplugged. 761 * <p> 762 * This will wait up to 0.100 seconds (100ms) by default. 763 * 764 * @return StatusCode of the set command 765 */ 766 StatusCode clearStickyFault_HallSensorMissing(); 767 /** 768 * Clear sticky fault: Hall sensor signals are invalid. Check hall 769 * sensor and cabling. This fault can be used to detect when hall 770 * cable is unplugged. 771 * 772 * @param timeoutSeconds Maximum time to wait up to in seconds. 773 * @return StatusCode of the set command 774 */ 775 StatusCode clearStickyFault_HallSensorMissing(double timeoutSeconds); 776 777 /** 778 * Clear sticky fault: Hall sensor signals are invalid during motor 779 * drive, so motor was disabled. Check hall sensor and cabling. 780 * <p> 781 * This will wait up to 0.100 seconds (100ms) by default. 782 * 783 * @return StatusCode of the set command 784 */ 785 StatusCode clearStickyFault_DriveDisabledHallSensor(); 786 /** 787 * Clear sticky fault: Hall sensor signals are invalid during motor 788 * drive, so motor was disabled. Check hall sensor and cabling. 789 * 790 * @param timeoutSeconds Maximum time to wait up to in seconds. 791 * @return StatusCode of the set command 792 */ 793 StatusCode clearStickyFault_DriveDisabledHallSensor(double timeoutSeconds); 794 795 /** 796 * Clear sticky fault: Motor temperature signal appears to not be 797 * connected. 798 * <p> 799 * This will wait up to 0.100 seconds (100ms) by default. 800 * 801 * @return StatusCode of the set command 802 */ 803 StatusCode clearStickyFault_MotorTempSensorMissing(); 804 /** 805 * Clear sticky fault: Motor temperature signal appears to not be 806 * connected. 807 * 808 * @param timeoutSeconds Maximum time to wait up to in seconds. 809 * @return StatusCode of the set command 810 */ 811 StatusCode clearStickyFault_MotorTempSensorMissing(double timeoutSeconds); 812 813 /** 814 * Clear sticky fault: Motor temperature signal indicates motor is too 815 * hot. 816 * <p> 817 * This will wait up to 0.100 seconds (100ms) by default. 818 * 819 * @return StatusCode of the set command 820 */ 821 StatusCode clearStickyFault_MotorTempSensorTooHot(); 822 /** 823 * Clear sticky fault: Motor temperature signal indicates motor is too 824 * hot. 825 * 826 * @param timeoutSeconds Maximum time to wait up to in seconds. 827 * @return StatusCode of the set command 828 */ 829 StatusCode clearStickyFault_MotorTempSensorTooHot(double timeoutSeconds); 830 831 /** 832 * Clear sticky fault: Motor arrangement has not been set in 833 * configuration. 834 * <p> 835 * This will wait up to 0.100 seconds (100ms) by default. 836 * 837 * @return StatusCode of the set command 838 */ 839 StatusCode clearStickyFault_MotorArrangementNotSelected(); 840 /** 841 * Clear sticky fault: Motor arrangement has not been set in 842 * configuration. 843 * 844 * @param timeoutSeconds Maximum time to wait up to in seconds. 845 * @return StatusCode of the set command 846 */ 847 StatusCode clearStickyFault_MotorArrangementNotSelected(double timeoutSeconds); 848} 849