Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Claw/Claw.h
- Revision:
- 8:c5969685cf02
- Parent:
- 1:9c7bb3db32bc
- Child:
- 16:e3ecfcd2a389
--- a/Claw/Claw.h Sun Apr 26 07:30:22 2020 +0000 +++ b/Claw/Claw.h Sun Apr 26 13:17:27 2020 +0000 @@ -20,12 +20,12 @@ ~Claw(); void init(int winch_width); void draw(N5110 &lcd); - void update(Direction d,float mag); + void update(Direction d,float mag,Vector2D winch_pos); /// accessors and mutators void add_now_score(); int get_now_score(); - void set_velocity(int v); - int get_velocity(); + void set_velocity(float v); + float get_velocity(); Vector2D get_pos(); void set_pos(Vector2D p); @@ -37,7 +37,7 @@ int _y0; int _x1; int _y1; - int _velocity_y; + float _velocity_y; int _now_score; int _speed_x;