Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 1 | #include <stdio.h> |
| 2 | #include <string.h> |
| 3 | #include <unistd.h> |
| 4 | #include <math.h> |
| 5 | |
| 6 | #include "aos/linux_code/init.h" |
| 7 | #include "aos/input/joystick_input.h" |
| 8 | #include "aos/common/input/driver_station_data.h" |
| 9 | #include "aos/common/logging/logging.h" |
| 10 | #include "aos/common/util/log_interval.h" |
| 11 | #include "aos/common/time.h" |
| 12 | #include "aos/common/actions/actions.h" |
| 13 | |
| 14 | #include "frc971/control_loops/drivetrain/drivetrain.q.h" |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 15 | #include "y2016/control_loops/shooter/shooter.q.h" |
| 16 | #include "y2016/control_loops/superstructure/superstructure.q.h" |
Comran Morshed | aa0573c | 2016-03-05 19:05:54 +0000 | [diff] [blame^] | 17 | #include "y2016/queues/ball_detector.q.h" |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 18 | |
Comran Morshed | 6c6a0a9 | 2016-01-17 12:45:16 +0000 | [diff] [blame] | 19 | #include "y2016/constants.h" |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 20 | #include "frc971/queues/gyro.q.h" |
| 21 | #include "frc971/autonomous/auto.q.h" |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 22 | |
| 23 | using ::frc971::control_loops::drivetrain_queue; |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 24 | using ::y2016::control_loops::shooter::shooter_queue; |
| 25 | using ::y2016::control_loops::superstructure_queue; |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 26 | |
| 27 | using ::aos::input::driver_station::ButtonLocation; |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 28 | using ::aos::input::driver_station::ControlBit; |
Austin Schuh | 4ea06c1 | 2016-03-12 17:54:31 -0800 | [diff] [blame] | 29 | using ::aos::input::driver_station::JoystickAxis; |
| 30 | using ::aos::input::driver_station::POVLocation; |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 31 | |
Comran Morshed | 6c6a0a9 | 2016-01-17 12:45:16 +0000 | [diff] [blame] | 32 | namespace y2016 { |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 33 | namespace input { |
| 34 | namespace joysticks { |
| 35 | |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 36 | const JoystickAxis kSteeringWheel(1, 1), kDriveThrottle(2, 2); |
Campbell Crowley | 5b27f02 | 2016-02-20 16:55:35 -0800 | [diff] [blame] | 37 | const ButtonLocation kShiftHigh(2, 3), kShiftHigh2(2, 2), kShiftLow(2, 1); |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 38 | const ButtonLocation kQuickTurn(1, 5); |
| 39 | |
Austin Schuh | 781cdcc | 2016-03-12 13:03:12 -0800 | [diff] [blame] | 40 | const ButtonLocation kTurn1(1, 7); |
| 41 | const ButtonLocation kTurn2(1, 11); |
| 42 | |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 43 | // Buttons on the lexan driver station to get things running on bring-up day. |
Austin Schuh | 4ea06c1 | 2016-03-12 17:54:31 -0800 | [diff] [blame] | 44 | const ButtonLocation kIntakeDown(3, 11); |
| 45 | const POVLocation kFrontLong(3, 180); |
| 46 | const POVLocation kBackLong(3, 0); |
| 47 | const ButtonLocation kTest3(3, 7); |
| 48 | const ButtonLocation kIntakeIn(3, 12); |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 49 | const ButtonLocation kTest5(3, 8); |
Austin Schuh | 4ea06c1 | 2016-03-12 17:54:31 -0800 | [diff] [blame] | 50 | const ButtonLocation kFire(3, 3); |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 51 | const ButtonLocation kTest7(3, 5); |
Austin Schuh | 4ea06c1 | 2016-03-12 17:54:31 -0800 | [diff] [blame] | 52 | const ButtonLocation kIntakeOut(3, 9); |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 53 | |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 54 | class Reader : public ::aos::input::JoystickInput { |
| 55 | public: |
| 56 | Reader() |
| 57 | : is_high_gear_(false), |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 58 | intake_goal_(0.0), |
| 59 | shoulder_goal_(M_PI / 2.0), |
| 60 | wrist_goal_(0.0) {} |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 61 | |
| 62 | void RunIteration(const ::aos::input::driver_station::Data &data) override { |
| 63 | bool last_auto_running = auto_running_; |
| 64 | auto_running_ = data.GetControlBit(ControlBit::kAutonomous) && |
| 65 | data.GetControlBit(ControlBit::kEnabled); |
| 66 | if (auto_running_ != last_auto_running) { |
| 67 | if (auto_running_) { |
| 68 | StartAuto(); |
| 69 | } else { |
| 70 | StopAuto(); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | if (!data.GetControlBit(ControlBit::kAutonomous)) { |
| 75 | HandleDrivetrain(data); |
| 76 | HandleTeleop(data); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | void HandleDrivetrain(const ::aos::input::driver_station::Data &data) { |
| 81 | bool is_control_loop_driving = false; |
Austin Schuh | 781cdcc | 2016-03-12 13:03:12 -0800 | [diff] [blame] | 82 | static double left_goal = 0.0; |
| 83 | static double right_goal = 0.0; |
| 84 | |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 85 | const double wheel = -data.GetAxis(kSteeringWheel); |
| 86 | const double throttle = -data.GetAxis(kDriveThrottle); |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 87 | |
Austin Schuh | 781cdcc | 2016-03-12 13:03:12 -0800 | [diff] [blame] | 88 | if (data.PosEdge(kTurn1) || data.PosEdge(kTurn2)) { |
| 89 | drivetrain_queue.status.FetchLatest(); |
| 90 | if (drivetrain_queue.status.get()) { |
| 91 | const double delta = data.PosEdge(kTurn2) ? 0.1 : -0.1; |
| 92 | left_goal = drivetrain_queue.status->estimated_left_position + delta; |
| 93 | right_goal = drivetrain_queue.status->estimated_right_position - delta; |
| 94 | } |
| 95 | } |
| 96 | if (data.IsPressed(kTurn1) || data.IsPressed(kTurn2)) { |
| 97 | is_control_loop_driving = true; |
| 98 | } |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 99 | if (!drivetrain_queue.goal.MakeWithBuilder() |
| 100 | .steering(wheel) |
| 101 | .throttle(throttle) |
| 102 | .highgear(is_high_gear_) |
| 103 | .quickturn(data.IsPressed(kQuickTurn)) |
| 104 | .control_loop_driving(is_control_loop_driving) |
Austin Schuh | 781cdcc | 2016-03-12 13:03:12 -0800 | [diff] [blame] | 105 | .left_goal(left_goal + wheel * 0.5 + throttle * 0.3) |
| 106 | .right_goal(right_goal - wheel * 0.5 + throttle * 0.3) |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 107 | .left_velocity_goal(0) |
| 108 | .right_velocity_goal(0) |
| 109 | .Send()) { |
| 110 | LOG(WARNING, "sending stick values failed\n"); |
| 111 | } |
Comran Morshed | 6c6a0a9 | 2016-01-17 12:45:16 +0000 | [diff] [blame] | 112 | |
Campbell Crowley | 5b27f02 | 2016-02-20 16:55:35 -0800 | [diff] [blame] | 113 | if (data.PosEdge(kShiftLow)) { |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 114 | is_high_gear_ = false; |
| 115 | } |
Comran Morshed | 6c6a0a9 | 2016-01-17 12:45:16 +0000 | [diff] [blame] | 116 | |
Campbell Crowley | 5b27f02 | 2016-02-20 16:55:35 -0800 | [diff] [blame] | 117 | if (data.PosEdge(kShiftHigh) || data.PosEdge(kShiftHigh2)) { |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 118 | is_high_gear_ = true; |
| 119 | } |
| 120 | } |
| 121 | |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 122 | void HandleTeleop(const ::aos::input::driver_station::Data &data) { |
| 123 | if (!data.GetControlBit(ControlBit::kEnabled)) { |
| 124 | action_queue_.CancelAllActions(); |
Comran Morshed | 6c6a0a9 | 2016-01-17 12:45:16 +0000 | [diff] [blame] | 125 | LOG(DEBUG, "Canceling\n"); |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 126 | } |
| 127 | |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 128 | if (data.PosEdge(ControlBit::kEnabled)) { |
| 129 | // If we got enabled, wait for everything to zero. |
| 130 | LOG(INFO, "Waiting for zero.\n"); |
| 131 | waiting_for_zero_ = true; |
Austin Schuh | de802e9 | 2016-02-27 14:49:03 -0800 | [diff] [blame] | 132 | is_high_gear_ = true; |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 133 | } |
| 134 | |
| 135 | superstructure_queue.status.FetchLatest(); |
| 136 | if (!superstructure_queue.status.get()) { |
| 137 | LOG(ERROR, "Got no superstructure status packet.\n"); |
| 138 | } |
| 139 | |
| 140 | if (superstructure_queue.status.get() && |
| 141 | superstructure_queue.status->zeroed) { |
| 142 | if (waiting_for_zero_) { |
| 143 | LOG(INFO, "Zeroed! Starting teleop mode.\n"); |
| 144 | waiting_for_zero_ = false; |
| 145 | } |
| 146 | } else { |
| 147 | waiting_for_zero_ = true; |
| 148 | } |
| 149 | |
Austin Schuh | 4ea06c1 | 2016-03-12 17:54:31 -0800 | [diff] [blame] | 150 | if (data.IsPressed(kIntakeDown)) { |
Austin Schuh | 3f0b119 | 2016-03-12 13:03:56 -0800 | [diff] [blame] | 151 | intake_goal_ = 0.1; |
Austin Schuh | 4ea06c1 | 2016-03-12 17:54:31 -0800 | [diff] [blame] | 152 | } else { |
| 153 | intake_goal_ = 1.6; |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 154 | } |
| 155 | |
Austin Schuh | 4ea06c1 | 2016-03-12 17:54:31 -0800 | [diff] [blame] | 156 | if (data.IsPressed(kFrontLong)) { |
| 157 | // Forwards shot |
Austin Schuh | 5a6db4d | 2016-02-28 22:02:42 -0800 | [diff] [blame] | 158 | shoulder_goal_ = M_PI / 2.0 - 0.2; |
Austin Schuh | 4ea06c1 | 2016-03-12 17:54:31 -0800 | [diff] [blame] | 159 | wrist_goal_ = M_PI + 0.42; |
| 160 | shooter_velocity_ = 640.0; |
| 161 | } else if (data.IsPressed(kBackLong)) { |
| 162 | // Backwards shot |
| 163 | shoulder_goal_ = M_PI / 2.0 - 0.2; |
| 164 | wrist_goal_ = -0.59; |
| 165 | shooter_velocity_ = 640.0; |
Austin Schuh | de802e9 | 2016-02-27 14:49:03 -0800 | [diff] [blame] | 166 | } else { |
Austin Schuh | 4ea06c1 | 2016-03-12 17:54:31 -0800 | [diff] [blame] | 167 | wrist_goal_ = 0.0; |
Austin Schuh | 3f0b119 | 2016-03-12 13:03:56 -0800 | [diff] [blame] | 168 | shoulder_goal_ = -0.010; |
Austin Schuh | 4ea06c1 | 2016-03-12 17:54:31 -0800 | [diff] [blame] | 169 | shooter_velocity_ = 0.0; |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 170 | } |
| 171 | |
Austin Schuh | de802e9 | 2016-02-27 14:49:03 -0800 | [diff] [blame] | 172 | if (data.IsPressed(kTest3)) { |
| 173 | wrist_goal_ = 0.0; |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 174 | } |
| 175 | |
Comran Morshed | aa0573c | 2016-03-05 19:05:54 +0000 | [diff] [blame^] | 176 | bool ball_detected = false; |
| 177 | ::y2016::sensors::ball_detector.FetchLatest(); |
| 178 | if (::y2016::sensors::ball_detector.get()) { |
| 179 | ball_detected = ::y2016::sensors::ball_detector->voltage > 2.5; |
| 180 | } |
| 181 | if (data.PosEdge(kIntakeIn)) { |
| 182 | saw_ball_when_started_intaking_ = ball_detected; |
| 183 | } |
| 184 | |
| 185 | is_intaking_ = data.IsPressed(kIntakeIn) && |
| 186 | (!ball_detected || saw_ball_when_started_intaking_); |
Austin Schuh | de802e9 | 2016-02-27 14:49:03 -0800 | [diff] [blame] | 187 | |
Austin Schuh | 4ea06c1 | 2016-03-12 17:54:31 -0800 | [diff] [blame] | 188 | if (data.IsPressed(kFire) && shooter_velocity_ != 0.0) { |
Austin Schuh | de802e9 | 2016-02-27 14:49:03 -0800 | [diff] [blame] | 189 | fire_ = true; |
| 190 | } else { |
| 191 | fire_ = false; |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 192 | } |
| 193 | |
| 194 | if (data.PosEdge(kTest7)) { |
| 195 | } |
| 196 | |
Austin Schuh | 4ea06c1 | 2016-03-12 17:54:31 -0800 | [diff] [blame] | 197 | is_outtaking_ = data.IsPressed(kIntakeOut); |
Austin Schuh | 5a6db4d | 2016-02-28 22:02:42 -0800 | [diff] [blame] | 198 | |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 199 | if (!waiting_for_zero_) { |
| 200 | if (!action_queue_.Running()) { |
| 201 | auto new_superstructure_goal = superstructure_queue.goal.MakeMessage(); |
| 202 | new_superstructure_goal->angle_intake = intake_goal_; |
| 203 | new_superstructure_goal->angle_shoulder = shoulder_goal_; |
| 204 | new_superstructure_goal->angle_wrist = wrist_goal_; |
Austin Schuh | 3f0b119 | 2016-03-12 13:03:56 -0800 | [diff] [blame] | 205 | |
| 206 | new_superstructure_goal->max_angular_velocity_intake = 7.0; |
| 207 | new_superstructure_goal->max_angular_velocity_shoulder = 4.0; |
Austin Schuh | 4ea06c1 | 2016-03-12 17:54:31 -0800 | [diff] [blame] | 208 | new_superstructure_goal->max_angular_velocity_wrist = 10.0; |
Austin Schuh | 3f0b119 | 2016-03-12 13:03:56 -0800 | [diff] [blame] | 209 | new_superstructure_goal->max_angular_acceleration_intake = 40.0; |
Austin Schuh | 4ea06c1 | 2016-03-12 17:54:31 -0800 | [diff] [blame] | 210 | new_superstructure_goal->max_angular_acceleration_shoulder = 10.0; |
Austin Schuh | 3f0b119 | 2016-03-12 13:03:56 -0800 | [diff] [blame] | 211 | new_superstructure_goal->max_angular_acceleration_wrist = 25.0; |
| 212 | |
Austin Schuh | 3f0b119 | 2016-03-12 13:03:56 -0800 | [diff] [blame] | 213 | // Granny mode |
Austin Schuh | 4ea06c1 | 2016-03-12 17:54:31 -0800 | [diff] [blame] | 214 | /* |
Austin Schuh | 3f0b119 | 2016-03-12 13:03:56 -0800 | [diff] [blame] | 215 | new_superstructure_goal->max_angular_velocity_intake = 0.2; |
| 216 | new_superstructure_goal->max_angular_velocity_shoulder = 0.2; |
| 217 | new_superstructure_goal->max_angular_velocity_wrist = 0.2; |
| 218 | new_superstructure_goal->max_angular_acceleration_intake = 1.0; |
| 219 | new_superstructure_goal->max_angular_acceleration_shoulder = 1.0; |
| 220 | new_superstructure_goal->max_angular_acceleration_wrist = 1.0; |
| 221 | */ |
Austin Schuh | de802e9 | 2016-02-27 14:49:03 -0800 | [diff] [blame] | 222 | if (is_intaking_) { |
| 223 | new_superstructure_goal->voltage_top_rollers = 12.0; |
Austin Schuh | 5a6db4d | 2016-02-28 22:02:42 -0800 | [diff] [blame] | 224 | new_superstructure_goal->voltage_bottom_rollers = 12.0; |
| 225 | } else if (is_outtaking_) { |
| 226 | new_superstructure_goal->voltage_top_rollers = -12.0; |
| 227 | new_superstructure_goal->voltage_bottom_rollers = -7.0; |
Austin Schuh | de802e9 | 2016-02-27 14:49:03 -0800 | [diff] [blame] | 228 | } else { |
| 229 | new_superstructure_goal->voltage_top_rollers = 0.0; |
| 230 | new_superstructure_goal->voltage_bottom_rollers = 0.0; |
| 231 | } |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 232 | |
| 233 | if (!new_superstructure_goal.Send()) { |
| 234 | LOG(ERROR, "Sending superstructure goal failed.\n"); |
| 235 | } else { |
| 236 | LOG(DEBUG, "sending goals: intake: %f, shoulder: %f, wrist: %f\n", |
| 237 | intake_goal_, shoulder_goal_, wrist_goal_); |
| 238 | } |
| 239 | |
| 240 | if (!shooter_queue.goal.MakeWithBuilder() |
Austin Schuh | de802e9 | 2016-02-27 14:49:03 -0800 | [diff] [blame] | 241 | .angular_velocity(shooter_velocity_) |
Austin Schuh | 5a6db4d | 2016-02-28 22:02:42 -0800 | [diff] [blame] | 242 | .clamp_open(is_intaking_ || is_outtaking_) |
Austin Schuh | de802e9 | 2016-02-27 14:49:03 -0800 | [diff] [blame] | 243 | .push_to_shooter(fire_) |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 244 | .Send()) { |
| 245 | LOG(ERROR, "Sending shooter goal failed.\n"); |
| 246 | } |
| 247 | } |
| 248 | } |
| 249 | |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 250 | was_running_ = action_queue_.Running(); |
| 251 | } |
| 252 | |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 253 | private: |
| 254 | void StartAuto() { |
| 255 | LOG(INFO, "Starting auto mode\n"); |
| 256 | ::frc971::autonomous::autonomous.MakeWithBuilder().run_auto(true).Send(); |
| 257 | } |
| 258 | |
| 259 | void StopAuto() { |
| 260 | LOG(INFO, "Stopping auto mode\n"); |
| 261 | ::frc971::autonomous::autonomous.MakeWithBuilder().run_auto(false).Send(); |
| 262 | } |
| 263 | |
| 264 | bool is_high_gear_; |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 265 | // Whatever these are set to are our default goals to send out after zeroing. |
| 266 | double intake_goal_; |
| 267 | double shoulder_goal_; |
| 268 | double wrist_goal_; |
Austin Schuh | de802e9 | 2016-02-27 14:49:03 -0800 | [diff] [blame] | 269 | double shooter_velocity_ = 0.0; |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 270 | |
| 271 | bool was_running_ = false; |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 272 | bool auto_running_ = false; |
| 273 | |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 274 | // If we're waiting for the subsystems to zero. |
| 275 | bool waiting_for_zero_ = true; |
| 276 | |
Comran Morshed | aa0573c | 2016-03-05 19:05:54 +0000 | [diff] [blame^] | 277 | // If true, the ball was present when the intaking button was pressed. |
| 278 | bool saw_ball_when_started_intaking_ = false; |
| 279 | |
Austin Schuh | de802e9 | 2016-02-27 14:49:03 -0800 | [diff] [blame] | 280 | bool is_intaking_ = false; |
Austin Schuh | 5a6db4d | 2016-02-28 22:02:42 -0800 | [diff] [blame] | 281 | bool is_outtaking_ = false; |
Austin Schuh | de802e9 | 2016-02-27 14:49:03 -0800 | [diff] [blame] | 282 | bool fire_ = false; |
| 283 | |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 284 | ::aos::common::actions::ActionQueue action_queue_; |
| 285 | |
| 286 | ::aos::util::SimpleLogInterval no_drivetrain_status_ = |
| 287 | ::aos::util::SimpleLogInterval(::aos::time::Time::InSeconds(0.2), WARNING, |
| 288 | "no drivetrain status"); |
| 289 | }; |
| 290 | |
| 291 | } // namespace joysticks |
| 292 | } // namespace input |
Comran Morshed | 6c6a0a9 | 2016-01-17 12:45:16 +0000 | [diff] [blame] | 293 | } // namespace y2016 |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 294 | |
| 295 | int main() { |
| 296 | ::aos::Init(-1); |
Comran Morshed | 6c6a0a9 | 2016-01-17 12:45:16 +0000 | [diff] [blame] | 297 | ::y2016::input::joysticks::Reader reader; |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 298 | reader.Run(); |
| 299 | ::aos::Cleanup(); |
| 300 | } |