Using a RC receiver with Arduino Uno (Rc Car)

Hey guys, I have an old rc car i lost the remote for and i have a 4 channel airplane remote i would like to use for it. I have ripped out the old controll board and would like to use the arduino. I am having issues with many things right now. The first question i have is how can i control the power going from my 3cell lipo to the motor using my ardino uno (hardware). The nest question i have is how can i get the arduino uno to take the signal from my reciever and understand it. I have this code here but i do not know how to get it to do what i want (how to use the output). It is a dc motor btw.

//Reads PPM signals from 6 channels of a Spectrum DX7 RC reciever, translates the values to
//PWM and prints the values to serial port.
//Works with Spectrum DX7 (haven't tested anything else but should work with any PPM output

//Create variables for 6 channels
int RXCH[6];
volatile int RXSG[6];
int RXOK[6];
int PWMSG[6];

void setup() {

//Start communication to serial port
Serial.begin(115200);

//Assign PPM input pins. The receiver output pins are conected as below to non-PWM Digital connectors:
RXCH[0] = 4; //Throttle
RXCH[1] = 6; //Aile / Yaw
RXCH[2] = 5; //Elev. / Pitch
RXCH[3] = 2; //Rudd. / Roll
RXCH[4] = 7; //Gear
RXCH[5] = 8; //Aux / Flt Mode

for (int i = 0; i < 6; i++){
pinMode(RXCH*, INPUT);*

  • }*
    }
    void loop() {

// Read RX values

  • for (int i = 0; i < 6; i++){ //for each of the 6 channels:*
    RXSG = pulseIn(RXCH*, HIGH, 20000); //read the receiver signal*
    if (RXSG == 0) {RXSG = RXOK;} else {RXOK = RXSG*;} //if the signal is good then use it, else use the previous signal*
    PWMSG = map(RXSG*, 1000, 2000, 0, 511); //substitute the high values to a value between 0 and 511*
    _ constrain (PWMSG*, 0, 511); //make sure that the value stays within the disired boundries*_

// Print RX values
* Serial.print(" || Ch: ");*
* Serial.print(i+1);*
* Serial.print(" / PWMSG: ");*
_ Serial.print(PWMSG*);
//Serial.print(" / RXSG: ");
//Serial.print(RXSG);
delay(10);
}
Serial.println();
}

Please help! Thanks very much!_