paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] bat_checker configuration problems solved


From: Prof. Dr.-Ing. Heinrich Warmers
Subject: Re: [Paparazzi-devel] bat_checker configuration problems solved
Date: Sat, 20 Oct 2012 13:50:11 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.4) Gecko/20030619 Netscape/7.1 (ax)

Hello,
I corrected the wrong spelling (sorry) and then it works when the definition are inside the autopilot block.
The block bat_checker has no effect.
Heinirch


Prof. Dr.-Ing. Heinrich Warmers schrieb:

Hello,
i want to apply the bat_checker module written by Thomas Kolb.
The problem is that configurations constants are not declared when the module is compiled and there is no documentation in the wiki how to use this module.
Can someone help me how to use this module?
Thanks
Heinrich

<airframe name="HBMINI_V2">
<modules main_freq="512">
   <!--load name="booz_pwm.xml">
     <define name="USE_PWM1"/>
   </load-->
   <!--load name="booz_drop.xml"/>
   <load name="booz_cam.xml"/-->
   <load name="mag_hmc5843.xml"/>
   <load name="baro_bmp.xml"/>
   <load name="gps_ubx_ucenter.xml"/>
   <load name="bat_checker.xml"/>
 </modules>

<bat_checker>
   <define name="CRITIC_BAT_LEVEL" value="9.6"/>
   <define name="BAT_CHEKER_LED" value="3"/>
   <define name="BAT_CHEKER_DELAY" value="3"/>
</bat_checker>

<firmware name="rotorcraft">
   <define name="USE_INS_NAV_INIT"/>
   <define name="USE_ATTITUDE_REF" value="0"/>
   <target name="ap" board="hbmini_1.0">
     <define name="BMP_I2C_DEV" value="i2c1"/>
     <define name="SENSOR_SYNC_SEND" value="1"/>
     <define name="FAILSAFE_GROUND_DETECT"/>
     <define name="USE_GPS_ACC4R"/>
     <define name="CRITIC_BAT_LEVEL" value="9.6"/>
     <define name="BAT_CHEKER_LED" value="3"/>
     <define name="BAT_CHEKER_DELAY" value="3"/>

Makefile.ac :

####################################################
# makefile firmware 'rotorcraft'
####################################################

###########
# -target: 'ap'
ifeq ($(TARGET), ap)
MODEM_BAUD = B38400
$(TARGET).CFLAGS += -DUSE_INS_NAV_INIT
$(TARGET).CFLAGS += -DUSE_ATTITUDE_REF=0
$(TARGET).CFLAGS += -DBMP_I2C_DEV=i2c1
$(TARGET).CFLAGS += -DSENSOR_SYNC_SEND=1
$(TARGET).CFLAGS += -DFAILSAFE_GROUND_DETECT
$(TARGET).CFLAGS += -DUSE_GPS_ACC4R
$(TARGET).CFLAGS += -DCRITIC_BAT_LEVEL=9.6
$(TARGET).CFLAGS += -DBAT_CHEKER_LED=3
$(TARGET).CFLAGS += -DBAT_CHEKER_DELAY=3

# makefile for fillmodule bat_checker in modules/bat_checker
ap.srcs += $(BAT_CHECKER_DIR)/bat_checker.



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]