Initial Commit: No compile yet
Beacon Mode works great. Just diabled the pre-sleep WDT, about to delete/modify main loop.
Just Cleaned up code, about to modify tones.
Best set of tones for the night.
Have the WDT working nicely. Fully Battery and Input voltage monitoring and behaviors.
Better voltage code: Measured with DMM, everyting matches within 10mV
Commit of all changes since last time (Months ago?), about to do major rework.
Major Rework Completed, Beacon works nicely, frequency corrected, Baud is good, GFSK works
Well Polished with Packet Transmit Working with live values.
Some other polishing, etc
Adding katanaDecoder.py
BROKEN! Massive rework of structures and transition, added all states.

I'm going to try to simplify the code, it's getting too messy. Make more methods perhaps?
Unstable, but works: Full Traversal between ACTIVE, FAILSAFE, BEACON, and SLEEP

Huge Stability Issues: Would only work 4 Times, then would scramble RFM.
KatanaLRS_Issues, _Issues2, and _Working.logicdata are the files that match this code version.
What Wonders a single line does! CS needs to be HIGH. Actually, not much changed.
Improved Beacon Tones, Trimmed Delays, Reordered Startup Port Config
INTERMEDIATE! Found a race condition in WDT. Finished PWM outputs.

The next items to do are to move the PWM generator to Timer1, and have it output PPM.
No more battery status PWM on the OCR1A/B Line to the blue LED
This will leave Timer 2 be used for packet timing.
Currently, Timer0 is sort of doing the packet timing.
May use one for expected packet delivery time, other left free.
PWM Switched to Timer1. Removed the count mechanism in the PWM ISR, as 16-bits does 32 ms

Some cleaning as well.
Massive Cleanup, Attempt to reduce start-up time.
CRITICAL! Works, but either the RFM needs more time, or the rcOutputs() method is broke

Had to comment out rcOutputs() to get the PWM outputs to work correctly.
Otherwise, the ports exhibited the same behavior as when output drivers are disabled.
Fully Working PWM PPM with ACTIVE, FAILSAFE, BEACON and SLEEP working.

The Saleae shows no problems that I can see.
Forced the state transitions to 6, 8, or 10 seconds.

Signed-off-by: unknown <Steve@Accipiter.(none)>
Slightly More Stable

The delays are known stable, just changed the 10ms to 1ms for RFM Reset, untested.
LED Configured for Read-Back Errors, Device ID Check mechanism improved for Failsafe

Also moved WDT enables in DOWN and SLEEP to the top of their processes.