Hi Marco,<br>Thanks. That was way too simple.<br>Jim<br><br><div class="gmail_quote">On Mon, Jan 14, 2013 at 3:24 AM, IZ3GME Marco <span dir="ltr"><<a href="mailto:iz3gme.marco@gmail.com" target="_blank">iz3gme.marco@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I can't understand which is the reason not to define step as<br>
<br>
u8 step:4,<br>
unknown:4;<br>
<br>
73 de IZ3GME Marco<br>
<div class="im HOEnZb"><br>
On 14/01/2013 03:50, Jim Unroe wrote:<br>
> Les,<br>
> Half way there...<br>
><br>
> On Sun, Jan 13, 2013 at 8:52 PM, Les Niles <<a href="mailto:les@2pi.org">les@2pi.org</a><br>
</div><div class="im HOEnZb">> <mailto:<a href="mailto:les@2pi.org">les@2pi.org</a>>> wrote:<br>
><br>
> Jim,<br>
><br>
> In that case, what I suggested won't work. Especially if the<br>
> mapping is non-uniform, that is, the freq steps are all integer<br>
> multiples of the smallest step.<br>
><br>
> Maybe you just need to divide the index by 16 when you access<br>
> STEP_LIST:<br>
>><br>
>>> RadioSettingValueList(STEP_LIST,<br>
>>><br>
>>> STEP_LIST[self._memobj.vfoa.step/16])<br>
>><br>
><br>
> The "STEP_LIST[self._memobj.vfoa.step/16])" works for reading the values<br>
> from the UV-5R. Now I just have to figure out the right way to *16 the<br>
> other direction.<br>
><br>
> Jim<br>
><br>
><br>
</div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> chirp_devel mailing list<br>
> <a href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a><br>
> <a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br>
> Developer docs: <a href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" target="_blank">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a><br>
><br>
<br>
_______________________________________________<br>
chirp_devel mailing list<br>
<a href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a><br>
<a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br>
Developer docs: <a href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" target="_blank">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a><br>
</div></div></blockquote></div><br>