Error whence uploading

I just received my kit Friday. Put it all together and if I power it on. it goes forward then backwards repeting as long as its on. I went to your website, grabbed the WASD code to control via a hyperterminal. it compiles fine, when I try to upload, it gets to about 90% done then throws me these errrors:

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

In my IDE I have the Arguino Mega 2560 or Mega ADK on COM5.

Any ideas? I am trying to get this going for a class I teach at a high school and these looked like good platforms to teach from.

The DFRobotShop Rover V2 is based on the Arduino Uno, not the MEGA.
When you select the board type, choose Arduino Uno w/328.
Be sure to have manually installed the drivers (Windows will not do this automatically).

Thanks, did get it working… I also noticed that I have to have the motor batteries disconnected and the power switch on… ?

The reason you need the power switch on is because the microcontroller needs power to write the problem to it’s flash memory. I’m unsure of why you would need to disconnect your motor battery though.

You should not need to disconnect the battery or have the On/Off switch to upload code - just the USB cable connected.
The main logic can be powered simply using USB.