Thanks brother,
I have attached the files. I downloaded the 1.03 version from this website (http://ardupilot.com/downloads/?category=6). There are example projects in there. I guess they are all .pde . If you think this is the problem of .pde. I can make a new project, if you suggest with the new Arduino IDE version. which is 1.0.5-rc2. If I open the PDE version in Arduino IDE version I get errors however same code with 1.0.3 mentioned on the website (http://ardupilot.com/downloads/?category=6) works great.
This is the website from where I downloaded the version 1.0.3 and it does not allow to compile the SoftwareSerial.h file (Google Code Archive - Long-term storage for Google Code Project Hosting.)
and this is the error I get when I include SoftwareSerial.h
C:\ArduPilot-Arduino-1.0.3\libraries\SoftwareSerial/SoftwareSerial.h:36:20: warning: Stream.h: No such file or directory
Custom.ino:214:5: warning: "/*" within comment
In file included from Custom.ino:27:
C:\ArduPilot-Arduino-1.0.3\libraries\SoftwareSerial/SoftwareSerial.h:48: error: expected class-name before '{' token
C:\ArduPilot-Arduino-1.0.3\libraries\SoftwareSerial/SoftwareSerial.h:97: error: 'Print' has not been declared
SoftwareSerial.cpp (13.3 KB)
SoftwareSerial.h (3.48 KB)