Copyright 2013 Louisiana Delta STEM Camp. Powered by Blogger.
Showing posts with label subroutines. Show all posts
Showing posts with label subroutines. Show all posts

Day 2 : Robotics Challenge #1

Robotics Challenge #1: Follow the Line


Utilizing the methods and concepts learned from the morning sessions, each team was required to wire and program their robot to follow a black line on a light background.  The teams consumed all available time (2 hours) to finish the task and were tireless in their efforts to solve the puzzle.  Guest judge and CenturyLink volunteer Rishanta Trundles was on hand to supervise the competition.  Team Silent But Deadly won this challenge.






  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

Day 2: Robotics Programming Using Subroutines

Robotics Class: Programming Using Subroutines, Calls, and Comments

This morning's first lesson revolved around the importance of using subroutines and comments in programming.  Prof. Greer led the talk stressing the re-usability of subroutines in streamlining code.


By definition, a subroutine is a sequence of program instructions that perform a specific task, packaged as a unit. A subroutine is often coded so that it can be started (called) several times and/or from several places during one execution of the program, including from other subroutines, and then branch back (return) to the next instruction after the call once the subroutine's task is done.


Comments in computer programming are also beneficial to coders in that they annotate the code, highlighting important parts and describing what sections of code do.  This can be especially useful for a programmer who has not reviewed the particulars of a program in quite some time and may have forgotten what functions are performed within.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS