2015/08/14
Dependencies: VNH5019
Fork of cansat by
Diff: cansat.cpp
- Revision:
- 6:601cac49d4b1
- Parent:
- 5:534a54a44b22
- Child:
- 7:b24799407d03
diff -r 534a54a44b22 -r 601cac49d4b1 cansat.cpp --- a/cansat.cpp Mon Aug 10 10:01:15 2015 +0000 +++ b/cansat.cpp Mon Aug 10 18:22:25 2015 +0000 @@ -141,4 +141,8 @@ } void CanSat::set_target_angle(int new_target_angle){ CanSat::target_angle = new_target_angle; -} \ No newline at end of file +} +void CanSat::set_target(double x, double y){ + CanSat::target_x = x; + CanSat::target_y = y; +}