Lua scripting for prolonged 360 deg servo motor control

Good day, gentleman. I am working on a hybrid quadrotor-rover concept( i discussed it in previous topics). A mechanism on our drone requires the servo motor to go through a complete 360 degree rotation 6 times. How would i do this through a Lua script? Do I have to get pwm values from an RC channel? Or can i generate them?