<?xml version="1.0"?>
<block>
	<name>CW to Symbols</name>
	<key>satnogs_cw_to_symbol</key>
	<category>satnogs</category>
	<import>import satnogs</import>
	<make>satnogs.cw_to_symbol($sampling_rate, $threshold, $conf_level, $wpm, $auto_config)</make>
	<callback>set_act_threshold($threshold)</callback>
	
	<param>
		<name>Sampling Rate</name>
		<key>sampling_rate</key>
		<value>samp_rate</value>
		<type>real</type>
	</param>

	<param>
		<name>Activation Threshold</name>
		<key>threshold</key>
		<type>real</type>
	</param>
	
	<param>
		<name>Confidence Level</name>
		<key>conf_level</key>
		<value>0.9</value>
		<type>real</type>
	</param>

	<param>
		<name>Words per Minute</name>
		<key>wpm</key>
		<value>20</value>
		<type>int</type>
	</param>
	
	<param>
		<name>Automatic timing recovery</name>
		<key>auto_config</key>
		<type>enum</type>
		<option>
			<name>No</name>
			<key>False</key>
		</option>
		<option>
			<name>Yes</name>
			<key>True</key>
		</option>
	</param>

	<sink>
		<name>act_threshold</name>
		<type>message</type>
		<optional>1</optional>
	</sink>
	
	<sink>
		<name>sync</name>
		<type>message</type>
		<optional>1</optional>
	</sink>
	
	<sink>
		<name>in</name>
		<type>float</type>
	</sink>

	<source>
		<name>out</name>
		<type>message</type>
	</source>
</block>
