Changes between Version 6 and Version 7 of ControlSystems/SoftwareTeam/IntroToPython
- Timestamp:
- Sep 4, 2017, 4:19:33 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/IntroToPython
v6 v7 65 65 While: The more charming cousin of the for loop, this one repeats 66 66 67 [[[wiki:ProgrammingReserve Programming]Archive]] 68 67 69 [[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. 68 70 … … 84 86 }}} {{{#!td COLOR BLACK [[BR]] REPEAT 4[[BR]] 85 87 86 DRAW 10 [[BR]] RIGHT 90 [[BR]]88 DRAW 10 [[BR]] RIGHT 90 [[BR]] 87 89 88 90 NEXT }}} {{{#!td setColor(Color.Black); [[BR]] int edge = 0; [[BR]] while (edge < 4) { 89 91 90 edge = edge + 1; [[BR]] moveAndDraw(10); [[BR]]turn(90); [[BR]]92 edge = edge + 1; [[BR]] moveAndDraw(10); [[BR]] turn(90); [[BR]] 91 93 92 94 } }}} }}}