Ich bräuchte mal eure Hilfe. Ich würde gerne das Modul nachbauen und habe bereits ein arduino Pro mini(3,3V) und ein Ftdi Adapter. Beides wird vom Pc erkannt. Ich habe jetzt bei Arduino als Board Arduino Pro oder Arduino Pro mini ausgewählt. Außerdem den Atmega 328 3,3V und meinen Port. Wen ich jedoch versuche den Sketch zu Kompilieren bekomme ich diese Fehlermeldung:
Arduino: 1.6.5 (Windows 8.1), Platine: "Arduino Pro or Pro Mini, ATmega328 (3.3V, 8 MHz)"
In file included from HoTTv4.ino:1:0:
HoTTv4.h:10: error: 'uint8_t' does not name a type
const uint8_t kHoTTv4BinaryPacketSize = 45;
^
HoTTv4.h:11: error: 'uint8_t' does not name a type
const uint8_t kHoTTv4TextPacketSize = 173;
^
HoTTv4.h:59: error: 'uint8_t' does not name a type
uint8_t startByte; /* Byte 1: 0x7C = Start byte data */
^
HoTTv4.h:60: error: 'uint8_t' does not name a type
uint8_t sensorID; /* Byte 2: 0x8A = GPS Sensor */
^
HoTTv4.h:61: error: 'uint8_t' does not name a type
uint8_t alarmTone; /* Byte 3: 0…= warning beeps */
^
HoTTv4.h:62: error: 'uint8_t' does not name a type
uint8_t sensorTextID; /* Byte 4: 160 0xA0 Sensor ID Neu! */
^
HoTTv4.h:63: error: 'uint8_t' does not name a type
uint8_t alarmInverse1; /* Byte 5: 01 inverse status */
^
HoTTv4.h:64: error: 'uint8_t' does not name a type
uint8_t alarmInverse2; /* Byte 6: 00 inverse status status 1 = kein GPS Signal */
^
HoTTv4.h:65: error: 'uint8_t' does not name a type
uint8_t flightDirection; /* Byte 7: 119 = Flightdir./dir. 1 = 2°; 0° (North), 9 0° (East), 180° (South), 270° (West) */
^
In file included from HoTTv4.ino:1:0:
HoTTv4.h:66: error: 'uint8_t' does not name a type
uint8_t GPSSpeedLow; /* Byte 8: 8 = /GPS speed low byte 8km/h */
^
HoTTv4.h:67: error: 'uint8_t' does not name a type
uint8_t GPSSpeedHigh; /* Byte 9: 0 = /GPS speed high byte */
^
HoTTv4.h:69: error: 'uint8_t' does not name a type
uint8_t LatitudeNS; /* Byte 10: 000 = N = 48°39’988 */
^
HoTTv4.h:70: error: 'uint8_t' does not name a type
uint8_t LatitudeMinLow; /* Byte 11: 231 0xE7 = 0x12E7 = 4839 */
^
HoTTv4.h:71: error: 'uint8_t' does not name a type
uint8_t LatitudeMinHigh; /* Byte 12: 018 18 = 0x12 */
^
HoTTv4.h:72: error: 'uint8_t' does not name a type
uint8_t LatitudeSecLow; /* Byte 13: 171 220 = 0xDC = 0x03DC =0988 */
^
HoTTv4.h:73: error: 'uint8_t' does not name a type
uint8_t LatitudeSecHigh; /* Byte 14: 016 3 = 0x03 */
^
HoTTv4.h:75: error: 'uint8_t' does not name a type
uint8_t longitudeEW; /* Byte 15: 000 = E= 9° 25’9360 */
^
HoTTv4.h:76: error: 'uint8_t' does not name a type
uint8_t longitudeMinLow; /* Byte 16: 150 157 = 0x9D = 0x039D = 0925 */
^
HoTTv4.h:77: error: 'uint8_t' does not name a type
uint8_t longitudeMinHigh; /* Byte 17: 003 3 = 0x03 */
^
HoTTv4.h:78: error: 'uint8_t' does not name a type
uint8_t longitudeSecLow; /* Byte 18: 056 144 = 0x90 0x2490 = 9360*/
^
HoTTv4.h:79: error: 'uint8_t' does not name a type
uint8_t longitudeSecHigh; /* Byte 19: 004 36 = 0x24 */
^
HoTTv4.h:81: error: 'uint8_t' does not name a type
uint8_t distanceLow; /* Byte 20: 027 123 = /distance low byte 6 = 6 m */
^
HoTTv4.h:82: error: 'uint8_t' does not name a type
uint8_t distanceHigh; /* Byte 21: 036 35 = /distance high byte */
^
HoTTv4.h:83: error: 'uint8_t' does not name a type
uint8_t altitudeLow; /* Byte 22: 243 244 = /Altitude low byte 500 = 0m */
^
HoTTv4.h:84: error: 'uint8_t' does not name a type
uint8_t altitudeHigh; /* Byte 23: 001 1 = /Altitude high byte */
^
HoTTv4.h:85: error: 'uint8_t' does not name a type
uint8_t resolutionLow; /* Byte 24: 48 = Low Byte m/s resolution 0.01m 30000 = 0.00m/s (1=0.01m/s) */
^
HoTTv4.h:86: error: 'uint8_t' does not name a type
uint8_t resolutionHigh; /* Byte 25: 117 = High Byte m/s resolution 0.01m */
^
HoTTv4.h:87: error: 'uint8_t' does not name a type
uint8_t vario3; /* Byte 26: 120 = 0m/3s */
^
HoTTv4.h:88: error: 'uint8_t' does not name a type
uint8_t GPSNumSat; /* Byte 27: GPS.Satelites (number of satelites) (1 byte) */
^
HoTTv4.h:89: error: 'uint8_t' does not name a type
uint8_t GPSFixChar; /* Byte 28: GPS.FixChar. (GPS fix character. display, if DGPS, 2D oder 3D) (1 byte) */
^
HoTTv4.h:90: error: 'uint8_t' does not name a type
uint8_t HomeDirection; /* Byte 29: HomeDirection (direction from starting point to Model position) (1 byte) */
^
HoTTv4.h:91: error: 'uint8_t' does not name a type
uint8_t angleXdirection; /* Byte 30: angle x-direction (1 byte) */
^
HoTTv4.h:92: error: 'uint8_t' does not name a type
uint8_t angleYdirection; /* Byte 31: angle y-direction (1 byte) */
^
HoTTv4.h:93: error: 'uint8_t' does not name a type
uint8_t angleZdirection; /* Byte 32: angle z-direction (1 byte) */
^
HoTTv4.h:94: error: 'uint8_t' does not name a type
uint8_t gyroXLow; /* Byte 33: gyro x low byte (2 bytes) */
^
HoTTv4.h:95: error: 'uint8_t' does not name a type
uint8_t gyroXHigh; /* Byte 34: gyro x high byte */
^
HoTTv4.h:96: error: 'uint8_t' does not name a type
uint8_t gyroYLow; /* Byte 35: gyro y low byte (2 bytes) */
^
HoTTv4.h:97: error: 'uint8_t' does not name a type
uint8_t gyroYHigh; /* Byte 36: gyro y high byte */
^
HoTTv4.h:98: error: 'uint8_t' does not name a type
uint8_t gyroZLow; /* Byte 37: gyro z low byte (2 bytes) */
^
HoTTv4.h:99: error: 'uint8_t' does not name a type
uint8_t gyroZHigh; /* Byte 38: gyro z high byte */
^
HoTTv4.h:100: error: 'uint8_t' does not name a type
uint8_t vibration; /* Byte 39: vibration (1 bytes) */
^
HoTTv4.h:101: error: 'uint8_t' does not name a type
uint8_t Ascii4; /* Byte 40: 00 ASCII Free Character [4] */
^
HoTTv4.h:102: error: 'uint8_t' does not name a type
uint8_t Ascii5; /* Byte 41: 00 ASCII Free Character [5] */
^
HoTTv4.h:103: error: 'uint8_t' does not name a type
uint8_t GPS_fix; /* Byte 42: 00 ASCII Free Character [6], we use it for GPS FIX */
^
HoTTv4.h:104: error: 'uint8_t' does not name a type
uint8_t version; /* Byte 43: 00 version number */
^
HoTTv4.h:105: error: 'uint8_t' does not name a type
uint8_t endByte; /* Byte 44: 0x7D Ende byte */
^
HoTTv4.h:106: error: 'uint8_t' does not name a type
uint8_t chksum; /* Byte 45: Parity Byte */
^
HoTTv4.h:111: error: 'uint8_t' does not name a type
uint8_t startByte;
^
HoTTv4.h:112: error: 'uint8_t' does not name a type
uint8_t sensorID;
^
HoTTv4.h:113: error: 'uint8_t' does not name a type
uint8_t alarmTone; /* Alarm */
^
HoTTv4.h:114: error: 'uint8_t' does not name a type
uint8_t sensorTextID;
^
HoTTv4.h:115: error: 'uint8_t' does not name a type
uint8_t alarmInverse;
^
HoTTv4.h:117: error: 'uint16_t' does not name a type
uint16_t altitude;
^
HoTTv4.h:118: error: 'uint16_t' does not name a type
uint16_t maxAltitude;
^
HoTTv4.h:119: error: 'uint16_t' does not name a type
uint16_t minAltitude;
^
HoTTv4.h:121: error: 'uint16_t' does not name a type
uint16_t m1s;
^
HoTTv4.h:122: error: 'uint16_t' does not name a type
uint16_t m3s;
^
HoTTv4.h:123: error: 'uint16_t' does not name a type
uint16_t m10s;
^
HoTTv4.h:125: error: 'uint8_t' does not name a type
uint8_t text[24];
^
HoTTv4.h:126: error: 'uint8_t' does not name a type
uint8_t empty;
^
HoTTv4.h:128: error: 'uint8_t' does not name a type
uint8_t version;
^
HoTTv4.h:129: error: 'uint8_t' does not name a type
uint8_t endByte;
^
HoTTv4.h:130: error: 'uint8_t' does not name a type
uint8_t chksum;
^
HoTTv4.h:135: error: 'uint8_t' does not name a type
uint8_t startByte;
^
HoTTv4.h:136: error: 'uint8_t' does not name a type
uint8_t sensorID;
^
HoTTv4.h:137: error: 'uint8_t' does not name a type
uint8_t alarmTone; /* Alarm */
^
HoTTv4.h:138: error: 'uint8_t' does not name a type
uint8_t sensorTextID;
^
HoTTv4.h:139: error: 'uint16_t' does not name a type
uint16_t alarmInverse;
^
HoTTv4.h:141: error: 'uint8_t' does not name a type
uint8_t cell1L; /* Low Voltage Cell 1-7 in 2mV steps */
^
HoTTv4.h:142: error: 'uint8_t' does not name a type
uint8_t cell2L;
^
HoTTv4.h:143: error: 'uint8_t' does not name a type
uint8_t cell3L;
^
HoTTv4.h:144: error: 'uint8_t' does not name a type
uint8_t cell4L;
^
HoTTv4.h:145: error: 'uint8_t' does not name a type
uint8_t cell5L;
^
HoTTv4.h:146: error: 'uint8_t' does not name a type
uint8_t cell6L;
^
HoTTv4.h:147: error: 'uint8_t' does not name a type
uint8_t cell7L;
^
HoTTv4.h:148: error: 'uint8_t' does not name a type
uint8_t cell1H; /* High Voltage Cell 1-7 in 2mV steps */
^
HoTTv4.h:149: error: 'uint8_t' does not name a type
uint8_t cell2H;
^
HoTTv4.h:150: error: 'uint8_t' does not name a type
uint8_t cell3H;
^
HoTTv4.h:151: error: 'uint8_t' does not name a type
uint8_t cell4H;
^
HoTTv4.h:152: error: 'uint8_t' does not name a type
uint8_t cell5H;
^
HoTTv4.h:153: error: 'uint8_t' does not name a type
uint8_t cell6H;
^
HoTTv4.h:154: error: 'uint8_t' does not name a type
uint8_t cell7H;
^
HoTTv4.h:156: error: 'uint16_t' does not name a type
uint16_t battery1; /* Battetry 1 LSB/MSB in 100mv steps; 50 == 5V */
^
HoTTv4.h:157: error: 'uint16_t' does not name a type
uint16_t battery2; /* Battetry 2 LSB/MSB in 100mv steps; 50 == 5V */
^
HoTTv4.h:159: error: 'uint8_t' does not name a type
uint8_t temp1; /* Temp 1; Offset of 20. 20 == 0C */
^
HoTTv4.h:160: error: 'uint8_t' does not name a type
uint8_t temp2; /* Temp 2; Offset of 20. 20 == 0C */
^
HoTTv4.h:162: error: 'uint16_t' does not name a type
uint16_t altitude; /* Offset -500. 500 == 0 */
^
HoTTv4.h:163: error: 'uint16_t' does not name a type
uint16_t current; /* 1 = 0.1A */
^
HoTTv4.h:164: error: 'uint16_t' does not name a type
uint16_t driveVoltage;
^
HoTTv4.h:165: error: 'uint16_t' does not name a type
uint16_t capacity; /* mAh */
^
HoTTv4.h:166: error: 'uint16_t' does not name a type
uint16_t m2s; /* m2s; 0x48 == 0 */
^
HoTTv4.h:167: error: 'uint8_t' does not name a type
uint8_t m3s; /* m3s; 0x78 == 0 */
^
HoTTv4.h:169: error: 'uint16_t' does not name a type
uint16_t rpm; /* RPM. 10er steps; 300 == 3000rpm */
^
HoTTv4.h:170: error: 'uint8_t' does not name a type
uint8_t minutes;
^
HoTTv4.h:171: error: 'uint8_t' does not name a type
uint8_t seconds;
^
HoTTv4.h:172: error: 'uint8_t' does not name a type
uint8_t speed;
^
HoTTv4.h:174: error: 'uint8_t' does not name a type
uint8_t version;
^
HoTTv4.h:175: error: 'uint8_t' does not name a type
uint8_t endByte;
^
HoTTv4.h:176: error: 'uint8_t' does not name a type
uint8_t chksum;
^
HoTTv4.h:181: error: 'int16_t' does not name a type
int16_t maxAltitude;
^
HoTTv4.h:182: error: 'uint8_t' does not name a type
uint8_t varioBeep;
^
HoTTv4.h:187: error: 'uint8_t' does not name a type
uint8_t startByte;
^
HoTTv4.h:188: error: 'uint8_t' does not name a type
uint8_t sensorTextID;
^
HoTTv4.h:189: error: 'uint8_t' does not name a type
uint8_t alarm;
^
HoTTv4.h:190: error: 'uint8_t' does not name a type
uint8_t text[8*21];
^
HoTTv4.h:191: error: 'uint8_t' does not name a type
uint8_t endByte;
^
HoTTv4.h:192: error: 'uint8_t' does not name a type
uint8_t chksum;
^
HoTTv4:18: error: 'SoftwareSerial' does not name a type
HoTTv4.ino: In function 'void hottV4Setup()':
HoTTv4:24: error: 'hottV4Serial' was not declared in this scope
HoTTv4.ino: In function 'void hottV4SerialWrite(uint8_t)':
HoTTv4:47: error: 'hottV4Serial' was not declared in this scope
HoTTv4.ino: In function 'void hottV4GPSUpdate()':
HoTTv4:52: error: 'is_set_home' was not declared in this scope
HoTTv4:54: error: 'struct<anonymous>' has no member named 'GPSNumSat'
HoTTv4:54: error: 'gps' was not declared in this scope
HoTTv4:56: error: 'struct<anonymous>' has no member named 'GPS_fix'
HoTTv4:59: error: 'struct<anonymous>' has no member named 'LatitudeNS'
HoTTv4:59: error: 'lati' was not declared in this scope
HoTTv4:60: error: 'struct<anonymous>' has no member named 'LatitudeMinLow'
HoTTv4:61: error: 'struct<anonymous>' has no member named 'LatitudeMinHigh'
HoTTv4:62: error: 'struct<anonymous>' has no member named 'LatitudeSecLow'
HoTTv4:63: error: 'struct<anonymous>' has no member named 'LatitudeSecHigh'
HoTTv4:66: error: 'struct<anonymous>' has no member named 'longitudeEW'
HoTTv4:66: error: 'loni' was not declared in this scope
HoTTv4:67: error: 'struct<anonymous>' has no member named 'longitudeMinLow'
HoTTv4:68: error: 'struct<anonymous>' has no member named 'longitudeMinHigh'
HoTTv4:69: error: 'struct<anonymous>' has no member named 'longitudeSecLow'
HoTTv4:70: error: 'struct<anonymous>' has no member named 'longitudeSecHigh'
HoTTv4:74: error: 'struct<anonymous>' has no member named 'GPSSpeedLow'
HoTTv4:75: error: 'struct<anonymous>' has no member named 'GPSSpeedHigh'
HoTTv4:77: error: 'GPS_distanceToHome' was not declared in this scope
HoTTv4:77: error: 'flat' was not declared in this scope
HoTTv4:77: error: 'flon' was not declared in this scope
HoTTv4:77: error: 'f_HOME_LAT' was not declared in this scope
HoTTv4:77: error: 'f_HOME_LON' was not declared in this scope
HoTTv4:78: error: 'struct<anonymous>' has no member named 'distanceLow'
HoTTv4:79: error: 'struct<anonymous>' has no member named 'distanceHigh'
HoTTv4:81: error: 'alt' was not declared in this scope
HoTTv4:81: error: 'alt_offset' was not declared in this scope
HoTTv4:81: error: 'start_height' was not declared in this scope
HoTTv4:82: error: 'struct<anonymous>' has no member named 'altitudeLow'
HoTTv4:83: error: 'struct<anonymous>' has no member named 'altitudeHigh'
HoTTv4:85: error: 'struct<anonymous>' has no member named 'HomeDirection'
HoTTv4:87: error: 'struct<anonymous>' has no member named 'flightDirection'
HoTTv4:91: error: 'p_alt' was not declared in this scope
HoTTv4:92: error: 'struct<anonymous>' has no member named 'resolutionLow'
HoTTv4:93: error: 'struct<anonymous>' has no member named 'resolutionHigh'
HoTTv4:96: error: 'struct<anonymous>' has no member named 'vario3'
HoTTv4:100: error: 'struct<anonymous>' has no member named 'GPSNumSat'
HoTTv4:100: error: 'gps' was not declared in this scope
HoTTv4:102: error: 'struct<anonymous>' has no member named 'GPS_fix'
HoTTv4:105: error: 'struct<anonymous>' has no member named 'LatitudeNS'
HoTTv4:106: error: 'struct<anonymous>' has no member named 'LatitudeMinLow'
HoTTv4:107: error: 'struct<anonymous>' has no member named 'LatitudeMinHigh'
HoTTv4:108: error: 'struct<anonymous>' has no member named 'LatitudeSecLow'
HoTTv4:109: error: 'struct<anonymous>' has no member named 'LatitudeSecHigh'
HoTTv4:112: error: 'struct<anonymous>' has no member named 'longitudeEW'
HoTTv4:113: error: 'struct<anonymous>' has no member named 'longitudeMinLow'
HoTTv4:114: error: 'struct<anonymous>' has no member named 'longitudeMinHigh'
HoTTv4:115: error: 'struct<anonymous>' has no member named 'longitudeSecLow'
HoTTv4:116: error: 'struct<anonymous>' has no member named 'longitudeSecHigh'
HoTTv4:120: error: 'struct<anonymous>' has no member named 'GPSSpeedLow'
HoTTv4:121: error: 'struct<anonymous>' has no member named 'GPSSpeedHigh'
HoTTv4:123: error: 'GPS_distanceToHome' was not declared in this scope
HoTTv4:123: error: 'flat' was not declared in this scope
HoTTv4:123: error: 'flon' was not declared in this scope
HoTTv4:123: error: 'f_HOME_LAT' was not declared in this scope
HoTTv4:123: error: 'f_HOME_LON' was not declared in this scope
HoTTv4:124: error: 'struct<anonymous>' has no member named 'distanceLow'
HoTTv4:125: error: 'struct<anonymous>' has no member named 'distanceHigh'
HoTTv4:127: error: 'alt' was not declared in this scope
HoTTv4:127: error: 'alt_offset' was not declared in this scope
HoTTv4:128: error: 'struct<anonymous>' has no member named 'altitudeLow'
HoTTv4:129: error: 'struct<anonymous>' has no member named 'altitudeHigh'
HoTTv4:131: error: 'struct<anonymous>' has no member named 'HomeDirection'
HoTTv4:133: error: 'struct<anonymous>' has no member named 'flightDirection'
HoTTv4:138: error: 'struct<anonymous>' has no member named 'resolutionLow'
HoTTv4:139: error: 'struct<anonymous>' has no member named 'resolutionHigh'
HoTTv4:142: error: 'struct<anonymous>' has no member named 'vario3'
HoTTv4.ino: In function 'void hottV4SendGPS()':
HoTTv4:152: error: 'struct<anonymous>' has no member named 'startByte'
HoTTv4:153: error: 'struct<anonymous>' has no member named 'sensorID'
HoTTv4:154: error: 'struct<anonymous>' has no member named 'sensorTextID'
HoTTv4:155: error: 'struct<anonymous>' has no member named 'endByte'
HoTTv4:160: error: 'is_set_home' was not declared in this scope
HoTTv4:162: error: 'struct<anonymous>' has no member named 'alarmTone'
HoTTv4:166: error: 'struct<anonymous>' has no member named 'alarmTone'
HoTTv4:173: error: 'kHoTTv4BinaryPacketSize' was not declared in this scope
HoTTv4.ino: In function 'void hottV4SendData(uint8_t*, uint8_t)':
HoTTv4:310: error: 'hottV4Serial' was not declared in this scope
HoTTv4.ino: In function 'void hottV4SendTelemetry()':
HoTTv4:347: error: 'hottV4Serial' was not declared in this scope
'uint8_t' does not name a type
Ich denke es ist ein ganz banaler Fehler und ich hoffe ihr könnt mir helfen...
Ich muss dazu sagen das ich im Bereich Arduino noch nicht so viele Erfahrungen habe.