How to detect a boot midair ? (what variable?)

I's like to add some code to:

void setup() {
memcheck_init();

//....my code here

init_ardupilot();
}

the code should initialize some other hardware, basically just use some output pins for 15sec. - before the Arduplane boots and works normally.

How can I *skip* this part - in the bizarre case of a mid-air-reboot ?   - what variable can I use to detect it ? 

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

This reply was deleted.

Activity