Well, ive hit an impasse with the scan code!
My ancient brain knows that what I need to do involves a couple of decision making loops and a flag variable to keep track, but ive had to revert to asking yet again for help from experienced coders.
This is for the code which, on the face of it, has a simple job - if there is a signal, wait, if not, keep scanning. The difficulty comes from the 2nd part of the process - if there was a signal, but now there isnt, wait for a bit and see if it comes back...
In other words, getting the code for the scanners dwell time, that is, how long it remains on a previously active frequency waiting for it to become active again, is far from as simple as it sounds!
This is the penultimate code puzzle as well! After this, all that remains at this stage, to implement the 'blind scan' function (that is the simple system without external control) is to add the external interrupt input that will allow an active channel to be jumped off and the scan resumed. Im hoping that will turn out to be simpler to do!
Then, its all hardware again! First the potential divider bank and switching, then the MOSFET power on controls. After that its time to install it all into the radio and see how it works. If alls well, then the miniturisation process starts!
No comments:
Post a Comment