Files
quadrotor/panic.h
Gavan Fantom e8adff93c1 Bye bye Wii Motion Plus, hello MPU6050. Also, increase control loop
to 200Hz, add SD card logging, and a number of other changes.
2014-05-06 21:03:48 +00:00

17 lines
345 B
C

/* panic.h */
/* OMG we're all going to die!!!! */
void panic(unsigned int reason);
/* Panic code goes in the low 8 bits */
#define PANIC_WATCHDOG_TIMEOUT 0x100
#define PANIC_SENSOR_FAIL 0x200
#ifdef PANIC_CHECKPOINT
extern unsigned int checkpoint;
#define CHECKPOINT(x) do { checkpoint = (x); } while (0)
#else
#define CHECKPOINT(x)
#endif