Code
Drivetrain
Magnet
Looks
Events
Control
Sensing
Operators
Variables
My Blocks
Comments
when starteddriveforward200driveforwardformmturnright90turnrightfordegrees90turn to headingdegrees90turn to rotationdegreesstop driving50set drive velocity to%50set turn velocity to%0set drive heading todegrees0set drive rotation todegreesenergizeMagnettoboostVEXcodeprintset print precision to0.1clear all rowsset cursor to next rowset print colorblackset pen to widththinmove pendownset pen to colorblack set pen color fill area with colorwhen startedwhenLeftBumperpressed1when timer >secondswhen I receivemessage1broadcastmessage1broadcastmessage1and waitwhenFrontEyedetectsan object1waitseconds10repeatforeverifthenifthenelseifthenelse ifthenelsewait untilrepeat untilwhilebreakstop projectreset timertimer in secondsdrive is done?drive is moving?drive heading in degreesdrive rotation in degreesLeftBumperpressed?FrontDistancefound an object?FrontDistanceinmmFrontEyeis near object?FrontEyedetectsred?FrontEyebrightness in %positionXinmmposition angle in degrees00+00-00*00/110pick randomto050>050<050=andornot0round0absof00remainder of/11atan2 of X:Y:myVariable0setmyVariableto1changemyVariablebycommentDrivetrainMagnetLooksEventsControlSensingBrain SensingDrivetrain SensingBumper SensingDistance SensingEye SensingLocation SensingOperatorsVariablesMake a VariableMake a BooleanMake a ListMake a 2D ListMy BlocksMake a BlockComments
Feedback
Close

How would you rate your experience?

  • Send a Smile
  • Send a Frown
  • Selected
By including your email address, you agree that VEX can send you emails if we have questions about your feedback.

Privacy Policy

Success!

Your feedback was sent.