コンテンツにスキップ

torque_columns

このコンテンツはまだ日本語訳がありません。

Defined in: components.rs:325

fn torque_columns<‘a>(models: impl IntoIterator<Item = &‘a str>) -> [Vec<(ComponentName, [Vec<String>](https://doc.rust-lang.org/std/vec/struct.Vec.html))>](https://doc.rust-lang.org/std/vec/struct.Vec.html)

The component name and column names to log each model’s torque under, in the order the names arrive.

Model::name(crate::model::Model::name) is not unique — nothing stops two models of a spacecraft from answering the same name — and two values logged under one name at one time point are two samples of it, which would open a second row rather than sit beside each other. Repeats therefore get .2, .3, counted per name, so every column is distinct and the numbering does not depend on how many other models there are. The mark is a . because encoded never produces one and a file returns it, which # does not.