Apply Weight Window Upon Surface Crossing (#2670)

Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Xinyan Wang 2023-09-26 01:03:49 -04:00 committed by GitHub
parent 9b7b33c7fa
commit 9cf2f22f24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 97 additions and 8 deletions

View file

@ -74,6 +74,8 @@ bool trigger_predict {false};
bool ufs_on {false};
bool urr_ptables_on {true};
bool weight_windows_on {false};
bool weight_window_checkpoint_surface {false};
bool weight_window_checkpoint_collision {true};
bool write_all_tracks {false};
bool write_initial_source {false};
@ -974,6 +976,19 @@ void read_settings_xml(pugi::xml_node root)
}
}
}
// Set up weight window checkpoints
if (check_for_node(root, "weight_window_checkpoints")) {
xml_node ww_checkpoints = root.child("weight_window_checkpoints");
if (check_for_node(ww_checkpoints, "collision")) {
weight_window_checkpoint_collision =
get_node_value_bool(ww_checkpoints, "collision");
}
if (check_for_node(ww_checkpoints, "surface")) {
weight_window_checkpoint_surface =
get_node_value_bool(ww_checkpoints, "surface");
}
}
}
void free_memory_settings()