Skip to content

Commit 495aee1

Browse files
committed
re-enable commented sections
1 parent 87321d2 commit 495aee1

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

lib/trajectory_following/TrajectoryFollower.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ void follow_trajectory() {
138138
Prop::get_prop_perc(co.thrust_N, co.roll_rad_sec_squared, &thrust_perc, &diffy_perc);
139139

140140
if (flight_armed) {
141-
// Prop::set_throttle_roll(thrust_perc, diffy_perc); // TODO - re-enable this
142-
// GimbalServos::setGimbalAngle(co.gimbal_yaw_deg, -co.gimbal_pitch_deg);
141+
Prop::set_throttle_roll(thrust_perc, diffy_perc);
142+
GimbalServos::setGimbalAngle(co.gimbal_yaw_deg, -co.gimbal_pitch_deg);
143143
}
144144

145145
TrajectoryLogger::log_trajectory_flash(timer, i, ci, co);
@@ -235,11 +235,10 @@ void start_flight_loop() {
235235
return;
236236
}
237237

238-
// TODO - re-enable this!
239-
// if (!Logging::is_armed()) {
240-
// Router::println("FAILURE: Flash logging is not armed. Use command log_arm.");
241-
// return;
242-
// }
238+
if (!Logging::is_armed()) {
239+
CommsSerial.println("FAILURE: Flash logging is not armed. Use command log_arm.");
240+
return;
241+
}
243242

244243
CommsSerial.println("Flight loop starting. Type arm to start following trajectory.");
245244
follow_trajectory();

0 commit comments

Comments
 (0)