class ProcessingConfiguration(configbase.ProcessingConfig): VERSION = 1 class SpeedUnit(Enum): METER_PER_SECOND = ("m/s", 1) KILOMETERS_PER_HOUR = ("km/h", 3.6) MILES_PER_HOUR = ("mph", 2.237) @property def label(self): return self.value[0] @property def scale(self): return self.value[1] min_speed = configbase.FloatParameter( label="Minimum speed", unit="m/s", default_value=0.2, limits=(0, 5), decimals=1, updateable=True, order=0, ) shown_speed_unit = configbase.EnumParameter( label="Speed unit", default_value=SpeedUnit.METER_PER_SECOND, enum=SpeedUnit, updateable=True, order=100, ) show_data_plot = configbase.BoolParameter( label="Show data", default_value=False, updateable=True, order=110, ) show_sd_plot = configbase.BoolParameter( label="Show spectral density", default_value=True, updateable=True, order=120, ) show_vel_history_plot = configbase.BoolParameter( label="Show speed history", default_value=True, updateable=True, order=130, )
class ProcessingConfiguration(configbase.ProcessingConfig): VERSION = 1 show_data_plot = configbase.BoolParameter( label="Show data", default_value=True, updateable=True, order=0, ) show_speed_plot = configbase.BoolParameter( label="Show speed on FFT y-axis", default_value=False, updateable=True, order=10, )
class ProcessingConfiguration(configbase.ProcessingConfig): VERSION = 3 detection_threshold = configbase.FloatParameter( label="Detection threshold", default_value=1.5, limits=(0, OUTPUT_MAX / 2), updateable=True, order=0, help="Level at which the detector output is considered as \"present\".", ) inter_frame_fast_cutoff = configbase.FloatParameter( label="Inter fast cutoff freq.", unit="Hz", default_value=20.0, limits=(1, 100), logscale=True, updateable=True, order=10, help= ("Cutoff frequency of the low pass filter for the fast filtered subsweep mean." " No filtering is applied if the cutoff is set over half the sweep frequency" " (Nyquist limit)."), ) inter_frame_slow_cutoff = configbase.FloatParameter( label="Inter slow cutoff freq.", unit="Hz", default_value=0.2, limits=(0.01, 1), logscale=True, updateable=True, order=20, help= "Cutoff frequency of the low pass filter for the slow filtered subsweep mean.", ) inter_frame_deviation_time_const = configbase.FloatParameter( label="Inter deviation time const.", unit="s", default_value=0.5, limits=(0, 3), updateable=True, order=30, help= ("Time constant of the low pass filter for the (inter-frame) deviation between" " fast and slow."), ) intra_frame_time_const = configbase.FloatParameter( label="Intra time const.", unit="s", default_value=0.15, limits=(0, 0.5), updateable=True, order=40, help="Time constant for the intra frame part.", ) intra_frame_weight = configbase.FloatParameter( label="Intra weight", default_value=0.6, limits=(0, 1), updateable=True, order=50, help= ("The weight of the intra-frame part in the final output. A value of 1 corresponds" " to only using the intra-frame part and a value of 0 corresponds to only using" " the inter-frame part."), ) output_time_const = configbase.FloatParameter( label="Output time const.", unit="s", default_value=0.5, limits=(0, 3), updateable=True, order=60, help="Time constant of the low pass filter for the detector output.") show_sweep = configbase.BoolParameter( # TODO: rename param, don't use sweep label="Show data scatter plot", default_value=True, updateable=True, order=100, help= ("Show the plot of the current data frame along with the fast and slow filtered" " mean sweep (used in the inter-frame part)."), ) show_noise = configbase.BoolParameter( label="Show noise", default_value=False, updateable=True, order=110, help="Show the noise estimation plot.", pidget_location="advanced", ) show_depthwise_output = configbase.BoolParameter( label="Show depthwise presence", default_value=True, updateable=True, order=120, help="Show the depthwise presence output plot.", ) show_sectors = configbase.BoolParameter( label="Show distance sectors", default_value=False, updateable=True, order=130, ) history_length_s = configbase.FloatParameter( label="History length", unit="s", default_value=5, limits=(1, 20), decimals=0, order=200, pidget_location="advanced", )