mappings: add a map for albus the tree

This commit is contained in:
2024-12-14 14:44:53 +01:00
parent c9496e3dc3
commit d09c82c3fc
2 changed files with 7 additions and 1 deletions

View File

@ -169,6 +169,12 @@ impl<const STRIDE_NUM: usize> StrideMapping<STRIDE_NUM> {
])
}
pub fn new_albus() -> Self {
Self::from_json(&[
(0, 0, 50 * 3, false)
])
}
pub fn from_json(stride_json: &[(u8, u8, u8, bool)]) -> Self {
let mut strides = [Stride::default(); STRIDE_NUM];
let stride_count = stride_json.len();