Stlker_Logger_AM06_Serial

Greetings all,

I run Arduino 1.0.1 interfaced to Stalker V2.
I've Blinked pin8 LED on the stalker.
I've downloaded Stalker_code_FAT16.zip and Stlker_logger_AM06_Serial.zip, (twice).
I've extracted FAT16 folder to arduino libraries and Stlker_logger_AM06_Serial to my Sketchbook folder, linked via Arduino Preferences.
I've changed WProgram to Arduino in the FAT16util.h and FAT16.ccp files.
When I compile the Stlker_logger_AM06_Serial sketch this is error I get :-

in file included from FT.h:11,
from FT.ccp:1:
/home/graham/arduino-1.0.1/libraries/FAT16/FAT16.h: 250: error: conflicting return type specifiedfor 'virtual void FAT16: :Write(unit8_t)'
/home/arduino/hardware/cores/adruino/print.h: 48: error: overriding ' virtual size_t print: :Write(unit8_t)'

This seems to be a conflict in the downloaded files, any help would be appreciated.

Thanks in anticipation, regards Graham77.

I run Arduino 1.0.1 interfaced to Stalker V2.
I've Blinked pin8 LED on the stalker.
I've downloaded Stalker_code_FAT16.zip and Stlker_logger_AM06_Serial.zip, (twice).
I've extracted FAT16 folder to arduino libraries and Stlker_logger_AM06_Serial to my Sketchbook folder, linked via Arduino Preferences.
I've changed WProgram to Arduino in the FAT16util.h and FAT16.ccp files.

What you haven't done is to post the program that you are using.

Thanks for the reply UKHeliBob,
I see I have a typo to, not FT but TF.h & .ccp.

Here’s the STlker_logger_AM06_Serial program.

#include <avr/sleep.h>

#include "tmp102.h"
#include "TF.h"
#include "Battery.h"
#include "RX8025.h"

#include <Wire.h>
#include <Fat16.h>
#include <Fat16util.h> // use functions to print strings from flash memory

//**************************************

float convertedtemp; /* We then need to multiply our two bytes by a scaling factor, mentioned in the datasheet. */
int tmp102_val; /* an int is capable of storing two bytes, this is where we "chuck" the two bytes together. */

char name[] = "data.log";/* file name in TF card root dir */

unsigned int bat_read;//analog read battery voltage
float bat_voltage;//battery voltage
unsigned char charge_status;//battery charge status

unsigned char hour=0;
unsigned char minute=0;
unsigned char second=0;
unsigned char week=0;
unsigned char year=0;
unsigned char month=0;
unsigned char date=0;

unsigned char RX8025_time[7]=
{
  0x00,0x54,0x09,0x03,0x10,0x11,0x10 //second, minute, hour, week, date, month, year, BCD format
};


//======================================
void setup(void)
{
  Serial.begin(38400);
  RX8025_init();
  TF_card_init();
  tmp102_init();
  Battery_init();
  pinMode(8,OUTPUT);//LED pin set to OUTPUT
  pinMode(5,OUTPUT);//Bee power control pin
}
//======================================
void loop(void)
{
  digitalWrite(8,HIGH);//LED pin set to OUTPUT
  getTemp102();
  Battery_charge_status();
  Battery_voltage_read();  
  getRtcTime();
  write_data_to_TF();
  digitalWrite(8,LOW);

  //debug data
  print_RX8025_time();
  print_tmp102_data();
  print_Battery_data();
  Serial.println("--------------next--data---------------");
  Serial_Command();
  Serial.println();

  delay(2000);
}

//=================================
void print_tmp102_data(void)
{
  Serial.print("tep102_temperature = ");
  Serial.println(convertedtemp);
}

//==================================
void print_Battery_data(void)
{
  switch (charge_status) 
  {
  case 0x01:    
    {
      Serial.print("CH_sleeping");
      break;
    }
  case 0x02:    
    {
      Serial.print("CH_complete");
      break;
    }
  case 0x04:    
    {
      Serial.print("CH_charging");
      break;
    }
  case 0x08:    
    {
      Serial.print("CH_bat_not_exist");
      break;
    }
  }
  Serial.print(" battery voltage = ");
  Serial.println(bat_voltage);
}
//==============================================
void print_RX8025_time(void)
{
  Serial.print(year,DEC);
  Serial.print("/");
  Serial.print(month,DEC);
  Serial.print("/");
  Serial.print(date,DEC);
  switch(week)
  {
  case 0x00:
    {
      Serial.print("/Sunday  ");   
      break;
    }
  case 0x01:
    {
      Serial.print("/Monday  ");
      break;
    }
  case 0x02:
    {
      Serial.print("/Tuesday  ");
      break;
    }
  case 0x03:
    {
      Serial.print("/Wednesday  ");
      break;
    }
  case 0x04:
    {
      Serial.print("/Thursday  ");
      break;
    }
  case 0x05:
    {
      Serial.print("/Friday  ");
      break;
    }
  case 0x06:
    {
      Serial.print("/Saturday  ");
      break;
    }
  }
  Serial.print(hour,DEC);
  Serial.print(":");
  Serial.print(minute,DEC);
  Serial.print(":");
  Serial.println(second,DEC);
}

//======================================
void Serial_Command(void)
{
  if(Serial.available()==3)
  {
    if(Serial.read()=='c')
    {
      if(Serial.read()=='c')
      {
        if(Serial.read()=='c')
        {
          Serial.println("Got Serial data");
        }
      }
    }
  }
  else
  {
    Serial.flush();
  }
}

Regards Graham77.