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


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

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/IntroToPython

    v7 v8  
    6565While:  The more charming cousin of the for loop, this one repeats
    6666
    67 [[[wiki:ProgrammingReserve Programming]Archive]]
     67[[[wiki:ProgrammingReserve Programming]Archive | Programming Archive]]
    6868
    6969[[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.
     
    8686}}}  {{{#!td COLOR BLACK [[BR]] REPEAT 4[[BR]]
    8787
    88   DRAW 10 [[BR]]    RIGHT 90 [[BR]]
     88  DRAW 10 [[BR]]     RIGHT 90 [[BR]]
    8989
    9090NEXT  }}} {{{#!td setColor(Color.Black); [[BR]] int edge = 0; [[BR]] while (edge < 4) {
    9191
    92   edge = edge + 1; [[BR]]    moveAndDraw(10); [[BR]]    turn(90); [[BR]]
     92  edge = edge + 1; [[BR]]     moveAndDraw(10); [[BR]]     turn(90); [[BR]]
    9393
    9494} }}} }}}