advice needed for arduino as diesel injection brain...

The uC won't, the throttle cable is (was in the past) connected to distributor so more throttle means more advance.
Using throttle for advance timing is discussionable but in practice it has proven to work very well, and gives a very responsive engine.

My point, exactly. The code you posted before had a fixed relationship between cam position and injector firing. The old setup had a variable relationship between cam position and injector firing.

If the uC is to be used, that variable relationship needs to be maintained, or the performance of your engine is going to change. And, probably not for the better.