Connecting L298n Motor Driver With Apm 2.8 ArduRover

This could work.

Essentially, external TTL glue between controller and L298n:
In1 = PWM1 * DIR1
In2 = PWM1 * /DIR1
In3 = PWM2 * DIR2
In4 = PWM2 * /DIR2
but can be improved for braking between DIRx changes.

Unknown if tested.