001package com.ctre.phoenix.signals; 002 003/** 004 * Interface for invertable objects 005 */ 006public interface IInvertable 007{ 008 /** 009 * Inverts the hbridge output of the motor controller. 010 * 011 * This does not impact sensor phase and should not be used to correct sensor polarity. 012 * 013 * This will invert the hbridge output but NOT the LEDs. 014 * This ensures.... 015 * - Green LEDs always represents positive request from robot-controller/closed-looping mode. 016 * - Green LEDs correlates to forward limit switch. 017 * - Green LEDs correlates to forward soft limit. 018 * 019 * @param invert 020 * Invert state to set. 021 */ 022 void setInverted(boolean invert); 023 /** 024 * @return invert setting of motor output. 025 */ 026 boolean getInverted(); 027}