lib/middleware/golden.rb in tracksperanto-2.9.5 vs lib/middleware/golden.rb in tracksperanto-2.9.6

- old
+ new

@@ -1,10 +1,13 @@ # -*- encoding : utf-8 -*- # This middleware marks all trackers as being 100% accurate class Tracksperanto::Middleware::Golden < Tracksperanto::Middleware::Base - attr_accessor :enabled + def self.action_description + "Reset residual of all the trackers to zero" + end + def export_point(frame, float_x, float_y, float_residual) - super(frame, float_x, float_y, (enabled ? 0.0 : float_residual)) + super(frame, float_x, float_y, 0.0) end end