Starter code for Georgia Tech ECE 2036 Summer 2014 Lab 2
Dependencies: 4DGL-uLCD-SE PinDetect mbed
Diff: ball.h
- Revision:
- 1:839d22d423bd
- Parent:
- 0:356124c0bafc
diff -r 356124c0bafc -r 839d22d423bd ball.h --- a/ball.h Tue Jun 17 20:03:41 2014 +0000 +++ b/ball.h Thu Jun 19 21:45:38 2014 +0000 @@ -5,8 +5,16 @@ { public: // Constructors + Ball (); + Ball (float, float, int); + /* For Part 3: + * you need to be able to pass a pin to the + * tempModule object from main, so you should + * add in a PinName argument. + */ Ball(PinName); Ball(PinName, float, float, int); + */ // Set Functions void setBaseVx(float); // This sets the lowest velocity of vx (for Thermal pong) or the constant velocity void setBaseVy(float); // This sets the lowest velocity of vy (for Thermal pong) or the constant velocity @@ -23,7 +31,7 @@ private: // Data members are suggestions, feel free to add/remove - TempModule *tempSensor; + TempModule *tempSensor; // Pointer -- it's recommended to use "new" operator to create this int vxSign; int vySign; float fx;