Recently I have been playing with the Maxbotix LV-EZ0 (http://maxbotix.com/documents/MB1000_Datasheet.pdf) proximity sensor with the hope of giving the crazflie the ability to detect objects. I'm new to mcu programming but have a pretty good understanding of how the ADC and its dependent components work at this point. Rather than try and fit my additional sensor into the current ADC1 and 2 implementation I've just mapped a GPIO pin from the expansion header to AIN and replaced the battery input channel to get some initial sensor readings.
I've been able to send readings (that appear to be sensing proximity

So I have a few questions:
1. Any ideas why the crazyflie might be shutting off?
2. Suggestions on integrating an additional analog input into the current ADC code?
3. Is it possible to get any additional debugging information without a JTAG dongle?
I'm going to find and buy a suitable JTAG dongle as I don't think programming without a debugger will work in the long term, but I thought I would see if anyone had a thought meanwhile.
Also I believe there is an error in the wiki that describes the Analog Channel mapping on the expansion header. At least in the case of pin 12 (MOSI) and 14 (MISO) these map to channels 7 and 6 respectively as described in the data sheet. It might be helpful for new users like myself if the wiki pointed out the GPIO pin # and channel (A) of the pins on the expansion header as well.
Cheers,
_Chris