Ok,
Did you know the position signal has to be sent @ ~ 50 Hz repeating frequency ???
Your program does not ... it just sends position ONCE ...
so, you should have 3 loops , each during 1s - send 50 times the position - , for each 3 position, inside the main loop ...
Also do not mix floating point when you declare and use integers ... ( I do not like Vdelay_ms ( 18.5 ) ... compiler nor !!! )
That's for soft.
You also have a problem with hardware wiring ... but I need your scheme !!!
Alain