![]() SensingDead ReckoningA prewritten routineCode flows A to B to CIf interrupted, will only try to continueEasier to writeSensing Routine that can adaptCode flows, but can respondIf interrupted, can attempt to correctMore complicated Hardware ReviewServoCan only go 180 degrees In code, it is from 0 to 255DC MotorContinuousControlled by power rather than degree (+100 forward to -100 backward)Ġ255180Plan the CodeGet a diagram of the fieldDraw the general routine w/ arrows and numbersMake side notes noting what happens at each time intervalStart your first draft of the codeĬoding BasicsComments:// is used as a line comment/* is the beginning of a group comment*/ ends a group commentComments never affect the function of codeAlways comment code so your team members understand it!ĭead Reckoning vs. ![]() Coding for the FIRST Tech Challenge:RobotCPresented by:Audrey YeohAcknowledgements: Team Unlimited FTC 0001Why RobotC?SpeedRobotC runs quicker on the NXTDifferences in speed are small until larger code is writtenControlIn RobotC you have control over almost everythingReal Time Debugger to allow viewing of code line by line while runningPersonal PreferenceText base controlAdvanced math functionsTeam Decision
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |