dmccormick001
New Member
I need some help, please! I'm trying to modify a really nice program provided by PicProjects.org for navigation lights on an R/C model. The link to the project info ishere.
What I want to do is add some code to allow me to turn the lights on/off from the transmitter, by using the PULSIN command to detect the signal from the receiver. (As provided, the lights all come on as soon as the model is turned on.) But I'm not sure exactly where to insert the new code to do this, since this program uses several different files to execute. I think the best place to do it is at the very beginning of the file that's named "RCnavlights_func.inc", but I'm not sure. Can someone look at the files included in this project and advise me? My goal is to have the code check for a valid signal, something greater than 1.55ms, and if no signal is present, continue to check. If a valid signal is detected, then proceed as normal, which will casue the lights to come on.
Also, since I cannot program in "C", I'm hoping to be able to add my code in PICBASIC, and then cut and paste the provided ASM code into the program before I compile it. That's do-able, right?
Thanks in advance for any help you can provide! Sorry for the dumb questions, but I'm still re-learning this stuff. At 56, it doesn't come as easy as it did in my college days when I worked for Radio Shack!
What I want to do is add some code to allow me to turn the lights on/off from the transmitter, by using the PULSIN command to detect the signal from the receiver. (As provided, the lights all come on as soon as the model is turned on.) But I'm not sure exactly where to insert the new code to do this, since this program uses several different files to execute. I think the best place to do it is at the very beginning of the file that's named "RCnavlights_func.inc", but I'm not sure. Can someone look at the files included in this project and advise me? My goal is to have the code check for a valid signal, something greater than 1.55ms, and if no signal is present, continue to check. If a valid signal is detected, then proceed as normal, which will casue the lights to come on.
Also, since I cannot program in "C", I'm hoping to be able to add my code in PICBASIC, and then cut and paste the provided ASM code into the program before I compile it. That's do-able, right?
Thanks in advance for any help you can provide! Sorry for the dumb questions, but I'm still re-learning this stuff. At 56, it doesn't come as easy as it did in my college days when I worked for Radio Shack!