Manual RC to ESC Throttle via Arduino plus RC Switch Arduino autocontrol

Hi, this is what I want to do.

Manual RC throttle control through Arduino to ESC to brushless motor.
RC switch on/off forces Arduino to run routine once,
a distance at changing revolutions for X amount of time.
Manual RC operation overrides auto control.

Stuff I think I need to look at so far
servo lib

Not sure if I need to look at motor safety routine if I also have RC manual operation.

Any help at would be appreciated.
Thanks Stephen Jack