Which AQ6 files to peruse for temp0 and debug LED

News, Setup, Compiling, Flashing, Development

Which AQ6 files to peruse for temp0 and debug LED

Postby jabram » Tue Jul 31, 2012 10:28 am

Which AQ6 source files do I need to peruse to write my own routine to flash an LED when temp0 reaches 50C

All I need is the names of the relevant files that calculate temp0 and maybe whatever causes Debug LED to flash all the time faintly.
jabram
 
Posts: 98
Joined: Sun Jul 08, 2012 7:02 pm
Location: NSW and NT - Australia

Re: Which AQ6 files to peruse for temp0 and debug LED

Postby 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
joebar.rc
 
Posts: 1084
Joined: Fri Jun 22, 2012 8:59 am
Location: The netherlands

Re: Which AQ6 files to peruse for temp0 and debug LED

Postby jabram » Tue Jul 31, 2012 2:15 pm

Thanks Menno for all the useful information.
jabram
 
Posts: 98
Joined: Sun Jul 08, 2012 7:02 pm
Location: NSW and NT - Australia


Return to AQ Firmware

Who is online

Users browsing this forum: No registered users and 14 guests

cron