robot c and natural language

13
Robot C and Natural Language

Upload: cullen

Post on 22-Feb-2016

44 views

Category:

Documents


0 download

DESCRIPTION

Robot C and Natural Language. Create a folder. Create a folder on your desktop to insert all your Robot C files, Here you will begin with your template and other basic programs, Immediately change the name of your modified file!. PLTW Template. Begin with PLTW template. RobotC files. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Robot C and  Natural Language

Robot C and Natural Language

Page 2: Robot C and  Natural Language

Create a folder• Create a folder on your desktop to insert all

your Robot C files,

• Here you will begin with your template and other basic programs,

• Immediately change the name of your modified file!

Page 3: Robot C and  Natural Language

PLTW TemplateBegin with PLTW template

Test 1

Save in

RobotC files

Page 4: Robot C and  Natural Language

Change the name to TEST 1Save in your desktop folder

Page 5: Robot C and  Natural Language

Step #1

Page 6: Robot C and  Natural Language

Step #2

Page 7: Robot C and  Natural Language

Step #3

Page 8: Robot C and  Natural Language

Cortex SchematicThis information should match the motor and sensors setup done in ROBOTC

Check:

leftMotorrightMotor

bumpSwitchtouchSwitch

lineFollower

potentiometer

clawMotor

Page 9: Robot C and  Natural Language

Motors• 2-wire motors can be connected directly to

ports 1 and 10 on the VEX Cortex• The VEX Motor Controller 29 allows you to

connect the VEX 2-wire Motors to any of the standard 3-wire ports on the VEX Cortex.

• To use the VEX Motor Controller 29, plug the 3-wire end into one of the MOTOR ports (2-9) on your VEX Cortex Microcontroller.

Check:

Page 10: Robot C and  Natural Language

ROBOTC - Programming3. Complete Motor and Sensor Setup

Allows you to configure and name all of the motors and sensors connected to your robot.

Check:

Page 11: Robot C and  Natural Language

Analog Sensor Setup

Type a name to describe the sensor.

Choose the type of sensor – the only analog sensors for GTT are Line Follower and Potentiometer.

Check:

Page 12: Robot C and  Natural Language

Sensor Setup

Type a name to describe the digital sensor location or purpose. Both the limit and bumper switches are Touch Type.

LED’s can be plugged in to dgtl9-dgtl12, the type is Digital Out.

Check:

Page 13: Robot C and  Natural Language

Practice with bump switch:  

         untilBump(bumpSwitch,5);         wait(.5);         startMotor(leftMotor,127);         startMotor(rightMotor,-127);         untilBump(bumpSwitch); 

Try such program