by joebar.rc » Tue Jul 31, 2012 10:54 am
The value for temp0 is in IMU_TEMP (adcData.temperature)
Most if the sensor calculations are in the adc.c
If you want to do something like that, I would trigger an extra event in the supervisor.c. The supervisor updates @10h so place a void checktemp() or something at the end of the cylce.
If you want to use the GPS led for example
So something like : if (adcData.temperature >50.0f) digitalHi (gpsLed)
And make sure that that led is temporary not triggered by the main events..
You need to include the relevant header files off course.
Personaly, I would place an external led on one of the not used pwm ports, use the GPIO and trigger that led. Examples in the development - example signaling..
Menno