Useful resources for getting started

From B58 Wiki

Torque-based ECU control

Modern ECUs work in the same way. The accelerator pedal input is converted into a 'torque request' and from that the ECU figures out air, fuelling and spark timing before moving onto the low-level business of how this translates to wastegate duty-cycle, injector pulse width, etc. There are many, many details. This makes it important to be able to step away to a high-level view.

Understanding the torque-based ECU control strategy: https://www.motorsport-developments.co.uk/Understanding_Ford_Ecoboost_Torque_Control.html

N54 and N55 Tuning

PID control

Other B58 tuning resources

Getting tunes off of your car

Creating tunes