Need urgent help setting up L298N V2 motor driver and DC Geared Motor using Pixhawk

The intermediate board can be as simple as two TTL inverter’s. You can insert an Arduino if you want controlled braking when changing direction, but the inverters work decently.