2015/08/14
Dependencies: VNH5019
Fork of cansat by
Diff: cansat.cpp
- Revision:
- 4:8713fff9e20d
- Parent:
- 2:0f76226be922
- Child:
- 5:534a54a44b22
diff -r a7510585a11a -r 8713fff9e20d cansat.cpp --- a/cansat.cpp Thu Jul 23 09:16:21 2015 +0000 +++ b/cansat.cpp Thu Aug 06 17:06:08 2015 +0000 @@ -50,6 +50,36 @@ double CanSat::get_robotKalman_y(){ return robotK_y; } +double CanSat::get_compass_z(){ + return compass_z; +} +double CanSat::get_target_distance(){ + return target_distance; +} +double CanSat::get_target_x(){ + return target_x; +} +double CanSat::get_target_y(){ + return target_y; +} +int CanSat::get_speed(){ + return speed; +} +int CanSat::get_robot_angle(){ + return robot_angle; +} +int CanSat::get_target_angle(){ + return target_angle; +} +double CanSat::get_pressure(){ + return pressure; +} +double CanSat::get_temperature(){ + return temperature; +} +double CanSat::get_humidity(){ + return humidity; +} ////////////////////////////// // Set // ////////////////////////////// @@ -89,4 +119,16 @@ CanSat::acceleration_x = x; CanSat::acceleration_y = y; CanSat::acceleration_z = z; +} +void CanSat::set_target_distance(double distance){ + CanSat::target_distance = distance; +} +void CanSat::set_speed(int new_speed){ + CanSat::speed = new_speed; +} +void CanSat::set_robot_angle(int new_robot_angle){ + CanSat::robot_angle = new_robot_angle; +} +void CanSat::set_target_angle(int new_target_angle){ + CanSat::target_angle = new_target_angle; } \ No newline at end of file