& I am curious about if it can exchange to double type or other type
See this docs article.
WoW !
But I still can’t find member units::second_t in the docs
https://first.wpi.edu/wpilib/allwpilib/docs/release/cpp/index.html
So I’m not sure now if I can still use units::second_t to construct
If you want to convert from a units::second_t to a double, use value().
If you want to create a units::second_t you can either call the constructor (units::second_t{5.0}
) or use a type literal (5.0_s
).
Cool ! I get ~ But I couldn’t found it in docs makes me really puzzle
We don’t generate Doxygen docs for units, as it’s not particularly useful. The WPILib documentation page linked above are the docs (and link to more detailed docs where available).
Fine thanks ~ !
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.