Irgendwie bekomme ich das Protokoll gar nicht eingebunden. Ich habe ein neues Projekt erstellt und im Projekt-Ordner den Unterordner libraries erstellt und dort hinein die Ordner mavlink und FastSerial eingerichtet. Entsprechend dieser Anleitung:
http://qgroundcontrol.org/dev/mavlink_arduino_integration_tutorial Die Dateien habe ich unter den Punkten 1 und 2 bei "Preparation Steps" geladen und entsprechend in die obige Ordner kopiert. Jedes mal, wenn ich den Beispielcode unter "Receive Function" kompiliere, erhalte ich die Meldung 'MAV_MODE_UNINIT' was not declared in this scope und unten - es sei angemerkt, dass ich die mavlink.h Dateien mit verschiedenen Pfad-Angaben versucht habe einzubinden...:
mavtohott.cpp:1:21: error: mavlink.h: No such file or directory
In file included from mavtohott.cpp:2:
C:\Users\Anxxxxxxx\Desktop\arducopter\mavtohott\libraries\FastSerial/FastSerial.h:108: error: conflicting return type specified for 'virtual void FastSerial::write(uint8_t)'
E:\arduino-1.0\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)'
mavtohott:7: error: 'MAV_MODE_UNINIT' was not declared in this scope
mavtohott.cpp: In function 'void communication_receive()':
mavtohott:17: error: 'mavlink_message_t' was not declared in this scope
mavtohott:17: error: expected `;' before 'msg'
mavtohott:18: error: 'mavlink_status_t' was not declared in this scope
mavtohott:18: error: expected `;' before 'status'
mavtohott:22: error: 'uart0_char_available' was not declared in this scope
mavtohott:24: error: 'uart0_get_char' was not declared in this scope
mavtohott:26: error: 'MAVLINK_COMM_0' was not declared in this scope
mavtohott:26: error: 'msg' was not declared in this scope
mavtohott:26: error: 'status' was not declared in this scope
mavtohott:26: error: 'mavlink_parse_char' was not declared in this scope
mavtohott:31: error: 'MAVLINK_MSG_ID_SET_MODE' was not declared in this scope
mavtohott:33: error: 'mavlink_msg_set_mode_get_mode' was not declared in this scope
mavtohott:36: error: 'MAVLINK_MSG_ID_ACTION' was not declared in this scope
mavtohott:49: error: 'status' was not declared in this scope
mavtohott:53: error: 'uart1_char_available' was not declared in this scope
mavtohott:55: error: 'uart1_get_char' was not declared in this scope
mavtohott:57: error: 'MAVLINK_COMM_1' was not declared in this scope
mavtohott:57: error: 'msg' was not declared in this scope
mavtohott:57: error: 'mavlink_parse_char' was not declared in this scope
Wie bekomme ich den Kram vernünftig eingebunden? Hilfe! *args*