Ich bin grade am verzweifeln...
Ich habe jetzt eine Datei erstellt wo folgendes drin steht:
extern #define is_set_home
extern #define gps
extern #define lati
extern #define loni
extern #define GPS_distanceToHome
extern #define flat
extern #define flon
extern #define f_HOME_LAT
extern #define f_HOME_LON
extern #define alt
extern #define alt_offset
extern #define start_height
extern #define p_alt
Mein erstes Problem ist, dass ich sie nicht als Header Datei gespeichert bekomme... Die Datei hat immer die Endung .ino
Nun habe ich in die HoTTv4.ino diese Datei mit #include "sketch_jul09a" eingebunden. Das funktioniert soweit aber ich bekomme und beim Kompilieren den Fehler:
HoTTv4.ino:3:29: error: sketch_jul09a.ino: No such file or directory
sketch_jul09a:1: error: stray '#' in program
HoTTv4.ino: In function 'void hottV4GPSUpdate()':
HoTTv4:55: error: 'is_set_home' was not declared in this scope
HoTTv4:57: error: 'gps' was not declared in this scope
HoTTv4:62: error: 'lati' was not declared in this scope
HoTTv4:69: error: 'loni' was not declared in this scope
HoTTv4:80: error: 'GPS_distanceToHome' was not declared in this scope
HoTTv4:80: error: 'flat' was not declared in this scope
HoTTv4:80: error: 'flon' was not declared in this scope
HoTTv4:80: error: 'f_HOME_LAT' was not declared in this scope
HoTTv4:80: error: 'f_HOME_LON' was not declared in this scope
HoTTv4:84: error: 'alt' was not declared in this scope
HoTTv4:84: error: 'alt_offset' was not declared in this scope
HoTTv4:84: error: 'start_height' was not declared in this scope
HoTTv4:94: error: 'p_alt' was not declared in this scope
HoTTv4:103: error: 'gps' was not declared in this scope
HoTTv4:126: error: 'GPS_distanceToHome' was not declared in this scope
HoTTv4:126: error: 'flat' was not declared in this scope
HoTTv4:126: error: 'flon' was not declared in this scope
HoTTv4:126: error: 'f_HOME_LAT' was not declared in this scope
HoTTv4:126: error: 'f_HOME_LON' was not declared in this scope
HoTTv4:130: error: 'alt' was not declared in this scope
HoTTv4:130: error: 'alt_offset' was not declared in this scope
HoTTv4.ino: In function 'void hottV4SendGPS()':
HoTTv4:163: error: 'is_set_home' was not declared in this scope
sketch_jul09a.ino: At global scope:
sketch_jul09a:1: error: expected initializer before 'extern'
Sorry das ich mich so dämlich anstelle.... Ich habe noch nicht so viel Erfahrung im Arduino Bereich aber ich bin lernwillig