Skip to content

Task list : 12 15_12 20

admin4571 edited this page Dec 15, 2016 · 23 revisions

R2D2 assignments

[ Mahim, Leslie, Mohammed, Arlenis, Sharom ]

A. Reading/Learning assignments

  1. Other robot code [Everyone]

  2. Start looking into vision tracking [Mohammed]

  3. Using PID controllers [Mahim, Leslie, Arlenis] http://www.simbotics.org/files/pdf/programming-pid.pdf

  4. Github with Eclipse [ Sharom ] https://maxrohde.com/2012/05/25/eclipse-and-github-tutorial/ You will also research the errors people are facing on google and try to debug it with/for them.

B. Coding assignments

I want you to send me your completed code ( For the Rectangle class ONLY ) as an attachment on Remind by Monday evening. This is mandatory. Whoever does not complete this will be moved out of R2D2.

  1. Write a class called 'Rectangle' to calculate the area and perimeter of a rectangle.

    • Let there be 2 methods in the class called "calculateArea" and "calculatePerimeter"

    • Each method will take 2 arguments of type "double" called 'length' and 'width'

    • You will need to know the mathematical formula for calculating area and perimeter of a rectangle. Google it if you dont know!

    • Add another method - the "main method" to your class with the following definition

      public static void main( String[] args ){

                   {This is the region where your methods will be called }
      

      }

    • Call your 2 methods 'calculateArea' and 'calculatePerimeter' FROM this main method and print out the values of area and perimeter

  2. Complete the tele-op part of your subsystems by referring to the old robot code at https://github.com/frc4571/FRC2014Robot

C3P0 assignments

[ Ben, Marsala, Nourin, Nathaniel, Jia, Loren, Brian, Arif ]

A. Coding assignments

  1. If you aren't done with Codeacademy ( https://www.codecademy.com/learn/learn-java ) finish that up. If you ARE done with codeacademy, finish the Udacity Java course ( https://in.udacity.com/course/intro-to-java-programming--cs046/ )