[ardrone2] warn if bat_voltage_ardrone2 module is not loaded

This commit is contained in:
Felix Ruess
2015-07-23 18:35:37 +02:00
parent 929bd6b1b9
commit dff29f77ed
4 changed files with 6 additions and 0 deletions
+6
View File
@@ -28,6 +28,12 @@
#include <stdlib.h>
#include "mcu.h"
/* check if the electric_ardrone2 module is loaded */
#include "generated/modules.h"
#ifndef BAT_VOLTAGE_ARDRONE2_PERIODIC_FREQ
#warning No battery voltage measurement available! Please add <load name="electric_ardrone2.xml"/> to your modules.
#endif
void board_init(void)
{
// First we try to kill the program.elf and its respawner if it is running