Changes between Version 6 and Version 7 of ControlSystems/SoftwareTeam/IntroToPython


Ignore:
Timestamp:
Sep 4, 2017, 4:19:33 PM (8 years ago)
Author:
cdelgigante
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/IntroToPython

    v6 v7  
    6565While:  The more charming cousin of the for loop, this one repeats
    6666
     67[[[wiki:ProgrammingReserve Programming]Archive]]
     68
    6769[[Image(https://qph.ec.quoracdn.net/main-qimg-cf520202236c0a99986988706131aafb-c,right,30%,margin=20)]] FRC robots are controlled by their on-board roboRIO computer.  The computer runs software (programs) that are written by Control Systems students using a programming language.  Programming languages are very compact, precise ways of telling the robot what to do.  Programming languages are very different from spoken languages (English, Spanish, Chinese, etc.) and often consist of as few as [https://www.programiz.com/c-programming/list-all-keywords-c-language 32 words]!  What's really cool about programming languages is that using that tiny set of words, you can write programs of amazing sophistication.
    6870
     
    8486}}}  {{{#!td COLOR BLACK [[BR]] REPEAT 4[[BR]]
    8587
    86   DRAW 10 [[BR]]   RIGHT 90 [[BR]]
     88  DRAW 10 [[BR]]    RIGHT 90 [[BR]]
    8789
    8890NEXT  }}} {{{#!td setColor(Color.Black); [[BR]] int edge = 0; [[BR]] while (edge < 4) {
    8991
    90   edge = edge + 1; [[BR]]   moveAndDraw(10); [[BR]]   turn(90); [[BR]]
     92  edge = edge + 1; [[BR]]    moveAndDraw(10); [[BR]]    turn(90); [[BR]]
    9193
    9294} }}} }}}