summaryrefslogtreecommitdiffhomepage
path: root/logic/pipeline.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/pipeline.hpp')
-rw-r--r--logic/pipeline.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/logic/pipeline.hpp b/logic/pipeline.hpp
index 5c3c3a26..d51655b3 100644
--- a/logic/pipeline.hpp
+++ b/logic/pipeline.hpp
@@ -92,22 +92,22 @@ private:
Pose newpose;
runtime_libraries const& libs;
// The owner of the reference is the main window.
- // This design might be usefull if we decide later on to swap out
+ // This design might be useful if we decide later on to swap out
// the logger while the tracker is running.
TrackLogger& logger;
struct state
{
- rmat rot_center;
+ rmat inv_rot_center;
rmat rotation;
- state() : rot_center(rmat::eye())
+ state() : inv_rot_center(rmat::eye())
{}
};
reltrans rel;
- state real_rotation, scaled_rotation;
+ state rotation;
euler_t t_center;
ns backlog_time = ns(0);
@@ -117,7 +117,7 @@ private:
double map(double pos, Map& axis);
void logic();
void run() override;
- void maybe_enable_center_on_tracking_started();
+ bool maybe_enable_center_on_tracking_started();
void maybe_set_center_pose(const Pose& value, bool own_center_logic);
Pose clamp_value(Pose value) const;
Pose apply_center(Pose value) const;
@@ -126,9 +126,9 @@ private:
Pose apply_reltrans(Pose value, vec6_bool disabled);
Pose apply_zero_pos(Pose value) const;
- // note: float exponent base is 2
- static constexpr inline double c_mult = 16;
- static constexpr inline double c_div = 1./c_mult;
+ // reminder: float exponent base is 2
+ //static constexpr inline double c_mult = 16;
+ //static constexpr inline double c_div = 1./c_mult;
public:
pipeline(Mappings& m, runtime_libraries& libs, event_handler& ev, TrackLogger& logger);
~pipeline();