Changeset - 911461738d90
[Not reviewed]
default
0 3 0
ethanzonca@CL-ENS241-08.cedarville.edu - 12 years ago 2013-01-18 15:43:21
ethanzonca@CL-ENS241-08.cedarville.edu
Added heater support to master
3 files changed with 9 insertions and 0 deletions:
0 comments (0 inline, 0 general)
master/master/config.h
Show inline comments
 
@@ -18,12 +18,14 @@
 
// --------------------------------------------------------------------------
 
 
#define F_CPU 11059200
 
#define MODULE_ID '1'
 
#define BOARDTEMP_ADDR 0x90
 
 
#define HEATER_THRESHOLD 70
 
 
// --------------------------------------------------------------------------
 
// Error Codes config (led.c, used throughout code)
 
// --------------------------------------------------------------------------
 
 
// SD Card
 
#define ERROR_SD_INIT 2
master/master/master.c
Show inline comments
 
@@ -121,12 +121,13 @@ int main(void)
 
		
 
		// Periodic: Logging
 
		if(time_millis() - lastLog > LOGGER_RATE) 
 
		{
 
			led_on(LED_CYCLE);
 
			
 
			heater_regulateTemp();
 
			
 
			// Print out GPS debug
 
			//snprintf(debugBuf, 128, "GPS> time: %s lat: %s lon: %s speed: %s hdop: %s course: %s\r\n",
 
			//get_timestamp(),get_latitude(),get_longitude(),get_speedKnots(),get_hdop(), get_course());
 
			//serial0_sendString(debugBuf);
 
			
master/master/master.cproj
Show inline comments
 
@@ -135,12 +135,18 @@
 
    <Compile Include="lib\boardtemp.c">
 
      <SubType>compile</SubType>
 
    </Compile>
 
    <Compile Include="lib\boardtemp.h">
 
      <SubType>compile</SubType>
 
    </Compile>
 
    <Compile Include="lib\heater.c">
 
      <SubType>compile</SubType>
 
    </Compile>
 
    <Compile Include="lib\heater.h">
 
      <SubType>compile</SubType>
 
    </Compile>
 
    <Compile Include="lib\i2c.c">
 
      <SubType>compile</SubType>
 
    </Compile>
 
    <Compile Include="lib\i2c.h">
 
      <SubType>compile</SubType>
 
    </Compile>
0 comments (0 inline, 0 general)