ir i2c working with sim target

This commit is contained in:
Gautier Hattenberger
2010-12-28 15:59:33 +01:00
parent 161c2e7c51
commit 267ee33b0e
2 changed files with 4 additions and 5 deletions
+4 -4
View File
@@ -10,10 +10,10 @@
<event fun="infrared_i2cEvent()"/>
<makefile>
<define name="USE_INFRARED_I2C"/>
<raw>
ap.srcs += subsystems/sensors/infrared.c
ap.srcs += subsystems/sensors/infrared_i2c.c
</raw>
<raw>ap.srcs += subsystems/sensors/infrared.c</raw>
<raw>ap.srcs += subsystems/sensors/infrared_i2c.c</raw>
<raw>sim.srcs += subsystems/sensors/infrared.c</raw>
<raw>sim.srcs += subsystems/sensors/infrared_i2c.c</raw>
</makefile>
<makefile target="sim">
<raw>sim.srcs += $(SRC_ARCH)/sim_ir.c</raw>
@@ -133,7 +133,6 @@ struct Infrared {
extern struct Infrared infrared;
//TODO Trigger some estimator update
#define UpdateIRValue(_v) { \
infrared.value.ir1 = (IR_IR1_SIGN)*_v.ir1; \
infrared.value.ir2 = (IR_IR2_SIGN)*_v.ir2; \