[chirp_devel] Request help with RIT programming
I am working with a radio that has a RIT setting. It goes from -7 to +7 and are stored in single byte. The way they are stored, I've not seen before. Here's what they look like.
F9 = -7 FA = -6 FB = -5 FC = -4 FD = -3 FE = -2 FF = -1 00 = 0 01 = +1 02 = +2 03 = +3 04 = +4 05 = +5 06 = +6 07 = +7
I'm sure this is probably simple for some of you Python gurus, but I'm not seeing an easy solution.
What would be a good way to implement this into my CHIRP driver.
Thanks, Jim KC9HI
that looks like signed byte, i.e., -127 to +127 range, stored in "two's complement" binary form I think the corresponding bitwise type is "i8" i8 foo; /* Signed 8-bit value */
________________________________ From: Jim Unroe rock.unroe@gmail.com To: chirp_devel@intrepid.danplanet.com Sent: Monday, December 23, 2013 6:19 PM Subject: [chirp_devel] Request help with RIT programming
I am working with a radio that has a RIT setting. It goes from -7 to +7 and are stored in single byte. The way they are stored, I've not seen before. Here's what they look like.
F9 = -7 FA = -6 FB = -5 FC = -4 FD = -3 FE = -2 FF = -1 00 = 0 01 = +1 02 = +2 03 = +3 04 = +4 05 = +5 06 = +6 07 = +7
I'm sure this is probably simple for some of you Python gurus, but I'm not seeing an easy solution.
What would be a good way to implement this into my CHIRP driver.
Thanks, Jim KC9HI
_______________________________________________ chirp_devel mailing list chirp_devel@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_devel Developer docs: http://chirp.danplanet.com/projects/chirp/wiki/Developers
On Mon, Dec 23, 2013 at 7:27 PM, Jens J. kd4tjx@yahoo.com wrote:
that looks like signed byte, i.e., -127 to +127 range, stored in "two's complement" binary form I think the corresponding bitwise type is "i8" i8 foo; /* Signed 8-bit value */
Thanks Jens. This is exactly what I needed.
Jim KC9HI
On Mon, Dec 23, 2013 at 8:08 PM, Dan Smith dsmith@danplanet.com wrote:
F9 = -7 FA = -6 FB = -5 FC = -4 FD = -3 FE = -2 FF = -1 00 = 0 01 = +1 02 = +2 03 = +3 04 = +4 05 = +5 06 = +6 07 = +7
This is a signed byte, which we don't have support for in bitwise. It would be easy to add though.
--Dan
I'll do some more testing. But as far as I could tell, what Jen suggested was working for me.
Jim
participants (3)
-
Dan Smith
-
Jens J.
-
Jim Unroe