We are testing Falcon 500 in closed loop velocity and motion magic mode. In KOP drive train setup, we had to invert the motor at the right side via .setInverted(true). Traditionally, we had to experiment .setSensorPhase’s value (true or false) to make sure the sensor is in phase. However, for Falcon 500, we observed:
- .setSensorPhase’s value has no impact on the sensor phase,
- the velocity reading from Phoenix Tuner is always negative if .setInverted is set to true. However, by following the instruction in " Confirm Sensor Phase using API" section, .getSelectedSensorVelocity(0) gives the positive velocity value when the voltage is positive. So API and Phoenix Tuner gives different reading
We verified this in two different setups: KOP chassis and single Falcon 500 motor. It is not consistent with CTRE documentation on “Adjust Sensor Phase”. In addition, regardless of .setSensorPhase’s value, the closed loop velocity and motion magic does work as we expected.
Did anyone observe the similar behavior as we did ? We want to make sure it is not our wiring issue.