Controling a lineal actuator to keep a hinged carriage floor level as the track it is running on changes angle

Hi, my company builds and services Inclined platform lifts. These are platform lifts that run up and down hillsides. We are looking to repair a unit whose manufacturer is no longer in business. This unit’s control system connects to the carriage via cables located within the core of the lifting cable. These cables are broken and have shorted out the electronics within the carriage. The carriage has a self leveling floor which is hinged and lifted/lowered using a lineal actuator which was controlled by the PLC using an encoder to know the carriage location and in turn when to raise or lower the platform.

We will be fitting our Control system to this unit which communicates with the carriage via a radio signal.
We are looking to control the Lineal actuator independently of the operating system using a gyroscopic switch an Adruino as well as a motor controller. The lineal actuator is 24V with a 10A current draw at full load.

I am looking for a recommendation of what to use as well as I imagine someone to program.

Thanks

Andrew