Skip to content

Commit 9eb4560

Browse files
committed
Fix wrong string angles in dynamic output window
1 parent 2e87416 commit 9eb4560

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

gui/source/post/OutputWidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ DynamicOutputWidget::DynamicOutputWidget(const BowResult& data)
262262
plot_combo->addData("Arrow acceleration", data.dynamics->states.arrow_acc, Quantities::acceleration);
263263
plot_combo->addData("String force (total)", data.dynamics->states.string_force, Quantities::force);
264264
plot_combo->addData("String force (strand)", data.dynamics->states.strand_force, Quantities::force);
265-
plot_combo->addData("String tip angle", data.statics->states.string_tip_angle, Quantities::angle);
266-
plot_combo->addData("String center angle", data.statics->states.string_center_angle, Quantities::angle);
265+
plot_combo->addData("String tip angle", data.dynamics->states.string_tip_angle, Quantities::angle);
266+
plot_combo->addData("String center angle", data.dynamics->states.string_center_angle, Quantities::angle);
267267
plot_combo->addData("Grip force", data.dynamics->states.grip_force, Quantities::force);
268268
plot_combo->addData("Pot. energy limbs", data.dynamics->states.elastic_energy_limbs, Quantities::energy);
269269
plot_combo->addData("Kin. energy limbs", data.dynamics->states.kinetic_energy_limbs, Quantities::energy);

rust/virtualbow_num/src/utils/newton.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub fn solve_newton<F>(function: &mut F, x0: DVector<f64>, settings: NewtonSetti
9595
});
9696
}
9797

98-
// Check if the minimum error has been decreased
98+
// Check if the minimum absolute error has been decreased
9999
// If yes, record the new minimum and reset the stagnation counter
100100
// If no, increase the stagnation counter and return error if the limit is reached
101101
if error < error_min {

0 commit comments

Comments
 (0)