...
Connect Pixhawk to PC, open Mission Planner, and connect. Go to Setup tab, servo outputs. It shows which motor/servo goes where. Only the FMU ports support DSHOT, I/O ports support only PWM. They must be set in blocks, so no PWM devices can be connected to the FMU ports and vice versa. Below is a diagram showing motor numbers and the intended spin direction. (Note this is opposite what is typically used for a quad)
...
Future Peripherals
HereFlow Optical Flow Sensor: CAN1
...