I connected both rear motor encoders to my pixhawk 6x board model 2a. Used Aux 1&2 for the left motor and Aux 3 & 4 for the Right motor. Settings were confirmed by referencing the pix6x info on Ardu website. When I checked the logs (WENC) there was no data after driving it.
For reference, each motor encoder works when connected to Aux5 and Aux 6 with the settings below with data recorded on the logs for the drive session.
WENC_TYPE = 1
WENC2_PINA = 54
WENC2_PINB = 55
SERVO13_FUNCTION = -1 (GPIO)
SERVO14_FUNCTION = -1 (GPIO)
WENC_CPR = 2448
WENC_RADIUS = 0.08
Can someone tell me if Aux 1-4 operate differently from Aux 5-6? Seems weird that it works on aux 4-5 but not 1-4.
On a Pixhawk1 with IOMCU AUX’s are processor pins and PWM’s are on IOMCU (possibly your case).
On balance bots on Pixhawk1 with DIR/PWM motor controller I use AUX1-2 for DIR’s (outputs) and AUX3-6 for WENC’s (inputs with interrupt capability). PWM’s (duty cycle) on MAIN1-2. Additionally to your WENC/SERVO parameters I use: MOT_PWM_TYPE,3 RELAY_PIN,50 RELAY_PIN2,51 RELAY_PIN3,-1 RELAY_PIN4,-1 RELAY_PIN5,-1 RELAY_PIN6,-1