travisgoodspeed / goodfet

An embedded bus adapter for various microcontrollers and radios.
http://goodfet.sourceforge.net/
309 stars 109 forks source link

Stuck in loop in client/goodfet.nrf Autotune::selftune #36

Open sbluhm opened 6 years ago

sbluhm commented 6 years ago

https://github.com/travisgoodspeed/goodfet/blob/34f175f8ff00a2262ee1ffe52a062359df42ee21/client/goodfet.nrf#L425

Hello, I am hitting a problem at the above location that the program is not continuing. Do I read this line correct, that the program will only continue if it has received a packet? This will cause issues if no packets are received on the selected channel/rate/speed. Is the assumption really that there will always be a packet received? Why can't there be empty channels?

travisgoodspeed commented 6 years ago

With checksums disabled, you'd need to be in a very quiet environment to never have a packet. Is there no wifi in your area?

Perhaps your goodfet's INFO flash is not set, and the UART is slightly miscalibrarted? That would cause trouble at the same location.

sbluhm commented 6 years ago

Hi Travis, I am actually using the code on a Raspberry Pi standalone with an NRF module to find the right address and channel of a "Blum ServoDrive" transmitter. This setup is placed in a rural area with tons of WIFI but I assumed that they are all transmitting on different frequencies. I will check this out in more detail but I seem to be hitting the on packet every 1 or 2 runs.

What is your oppinion, should I keep this issue open or close it?