We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 674ef18 commit e7d0f6bCopy full SHA for e7d0f6b
FprimeZephyrReference/Components/Drv/Helpers/Helpers.cpp
@@ -13,4 +13,8 @@ F64 sensor_value_to_f64(const struct sensor_value& val) {
13
return val.val1 + (val.val2 / 1000000.0f);
14
}
15
16
+F64 f64_square(float num) {
17
+ return num * num;
18
+}
19
+
20
} // namespace Drv
FprimeZephyrReference/Components/Drv/Helpers/Helpers.hpp
@@ -14,6 +14,9 @@ namespace Drv {
//! Convert a Zephyr sensor_value to an Fprime F64
F64 sensor_value_to_f64(const struct sensor_value& val);
+//! Square a float
+F64 f64_square(float num);
21
22
#endif
0 commit comments