A few things in this branch:
1) USB checks to see if its powered, if so it enables USB mode (so you can easily get into the bootloader without having to jump pins, also so no modifications would be needed to run this to a USB serial terminal for debugging)
Note that it could take up to 5 minutes for it to recognize that its plugged in (for battery conservations sake we don't want to be checking all the time!)
2) the wixel calibrate it's own timing in 3 passes then runs using those values until it misses a packet, then it will recalculate it's timings. This should save some headaches caused by time drift while it is in sleep mode, it also allows us to spend more time in sleep mode and should help with battery life (though there are currently leds to let us know if the device is sleeping or not they would probably be removed before getting merged)
3) it now will only watch channels 1 and 4 as trying to jump between all of them was causing missed packets in itself.
My results so far: after 16 hours, 2 readings missed on DexDrip but both happened while the logs say bluetooth got disconnected. Looks solid for me but I would like more people to run it.
Also I may retry the timings using sleep mode two for better battery (but more drift.. Which causes more recalculation of timings, which wastes battery...)
A few things in this branch: 1) USB checks to see if its powered, if so it enables USB mode (so you can easily get into the bootloader without having to jump pins, also so no modifications would be needed to run this to a USB serial terminal for debugging)
Note that it could take up to 5 minutes for it to recognize that its plugged in (for battery conservations sake we don't want to be checking all the time!)
2) the wixel calibrate it's own timing in 3 passes then runs using those values until it misses a packet, then it will recalculate it's timings. This should save some headaches caused by time drift while it is in sleep mode, it also allows us to spend more time in sleep mode and should help with battery life (though there are currently leds to let us know if the device is sleeping or not they would probably be removed before getting merged)
3) it now will only watch channels 1 and 4 as trying to jump between all of them was causing missed packets in itself.
My results so far: after 16 hours, 2 readings missed on DexDrip but both happened while the logs say bluetooth got disconnected. Looks solid for me but I would like more people to run it.
Also I may retry the timings using sleep mode two for better battery (but more drift.. Which causes more recalculation of timings, which wastes battery...)