Andruino Anfänger Problem

Diskutiere Andruino Anfänger Problem im Developer Network Forum im Bereich Hardware & Software Forum; Kennt sich jemand mit Andruino aus? Ich versuche diesen Code zu kompilieren und weiß nicht was ich falsch machen bzw. wo der Fehler ist. (Ich...
  • Andruino Anfänger Problem Beitrag #1
Gravity

Gravity

Bekanntes Mitglied
Dabei seit
28.02.2002
Beiträge
2.743
Reaktionspunkte
0
Ort
Sincity
Kennt sich jemand mit Andruino aus?

Ich versuche diesen Code zu kompilieren und weiß nicht was ich falsch machen bzw. wo der Fehler ist. (Ich brauche so einen Protokollwandler.)

http://diydrones.com/forum/topics/a...apter?id=705844:Topic:1939719&page=2#comments

MAVLink.ino:12:63: fatal error: ../GCS_MAVLink/include/mavlink/v1.0/mavlink_types.h: No such file or directory

compilation terminated.

Fehler beim Kompilieren.



Die Bibliotheken muss man sich scheinbar selber zusammen suchen oder wie geht man da vor?


Ich hab es einfach mal gemacht (alles von Github)
Jetzt stehe ich an dieser Stelle:


In file included from Mav2HoTT_NoLeds.ino:85:0:

C:\Users\Documents\Arduino\libraries\GCS_MAVLink/GCS_MAVLink.h:15:15: error: operator '==' has no left operand

#if MAVLINK10 == ENABLED

^

In file included from Mav2HoTT_NoLeds.ino:85:0:

C:\Users\Documents\Arduino\libraries\GCS_MAVLink/GCS_MAVLink.h:25:14: error: operator '==' has no left operand

#if MAVLINK10==ENABLED

^

In file included from Mav2HoTT_NoLeds.ino:85:0:

C:\Users\Documents\Arduino\libraries\GCS_MAVLink/GCS_MAVLink.h:122:14: error: operator '==' has no left operand

#if MAVLINK10==1

^

In file included from MAVLink.ino:11:0:

C:\Users\Documents\Arduino\libraries\GCS_MAVLink/Mavlink_compat.h:5:14: error: operator '==' has no left operand

#if MAVLINK10==1

^

In file included from C:\Users\Documents\Arduino\libraries\FastSerial/BetterStream.h:16:0,

from C:\Users\Documents\Arduino\libraries\FastSerial/FastSerial.h:56,

from Mav2HoTT_NoLeds.ino:79:

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h: In function 'int strcasecmp_P(const char*, const prog_char_t*)':

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:108:38: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]

return strcasecmp_P(str1, (const prog_char *)pstr);

^

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:108:38: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:108:32: error: expected primary-expression before 'const'

return strcasecmp_P(str1, (const prog_char *)pstr);

^

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:108:32: error: expected ')' before 'const'

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h: In function 'int strcmp_P(const char*, const prog_char_t*)':

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:113:34: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]

return strcmp_P(str1, (const prog_char *)pstr);

^

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:113:34: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:113:28: error: expected primary-expression before 'const'

return strcmp_P(str1, (const prog_char *)pstr);

^

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:113:28: error: expected ')' before 'const'

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h: In function 'size_t strlen_P(const prog_char_t*)':

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:118:28: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]

return strlen_P((const prog_char *)pstr);

^

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:118:28: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:118:22: error: expected primary-expression before 'const'

return strlen_P((const prog_char *)pstr);

^

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:118:22: error: expected ')' before 'const'

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h: In function 'void* memcpy_P(void*, const prog_char_t*, size_t)':

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:123:34: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]

return memcpy_P(dest, (const prog_char *)src, n);

^

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:123:34: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:123:28: error: expected primary-expression before 'const'

return memcpy_P(dest, (const prog_char *)src, n);

^

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:123:28: error: expected ')' before 'const'

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h: In function 'char* strncpy_P(char*, const prog_char_t*, size_t)':

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:148:37: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]

return strncpy_P(buffer, (const prog_char *)pstr, buffer_size);

^

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:148:37: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:148:31: error: expected primary-expression before 'const'

return strncpy_P(buffer, (const prog_char *)pstr, buffer_size);

^

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:148:31: error: expected ')' before 'const'

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/WString.h:29:0,

from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Print.h:26,

from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Stream.h:26,

from C:\Users\Documents\Arduino\libraries\FastSerial/BetterStream.h:14,

from C:\Users\Documents\Arduino\libraries\FastSerial/FastSerial.h:56,

from Mav2HoTT_NoLeds.ino:79:

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h: In function 'uintptr_t pgm_read_pointer(const void*)':

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:165:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]

u.a = pgm_read_byte(i + (const prog_char *)s);

^

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:165:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:165:41: error: expected primary-expression before 'const'

u.a = pgm_read_byte(i + (const prog_char *)s);

^

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:165:41: error: expected ')' before 'const'

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:165:22: error: expected ')' before ';' token

u.a = pgm_read_byte(i + (const prog_char *)s);

^

C:\Users\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:165:22: error: expected ')' before ';' token

In file included from C:\Users\Documents\Arduino\libraries\FastSerial/FastSerial.h:56:0,

from Mav2HoTT_NoLeds.ino:79:

C:\Users\Documents\Arduino\libraries\FastSerial/BetterStream.h: At global scope:

C:\Users\Documents\Arduino\libraries\FastSerial/BetterStream.h:28:41: error: 'prog_char' does not name a type

void _printf_P(const prog_char *, ...);

^

C:\Users\Documents\Arduino\libraries\FastSerial/BetterStream.h:28:51: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]

void _printf_P(const prog_char *, ...);

^

MAVLink.ino: In function 'void read_mavlink()':

MAVLink:73: error: 'mavlink_msg_heartbeat_get_base_mode' was not declared in this scope

MAVLink:74: error: 'mavlink_msg_heartbeat_get_custom_mode' was not declared in this scope

MAVLink:75: error: 'mavlink_msg_heartbeat_get_system_status' was not declared in this scope

MAVLink:169: error: 'mavlink_msg_sys_status_get_voltage_battery' was not declared in this scope

MAVLink:170: error: 'mavlink_msg_sys_status_get_current_battery' was not declared in this scope

MAVLink:192: error: 'mavlink_msg_gps_raw_int_get_cog' was not declared in this scope

MAVLink:193: error: 'mavlink_msg_gps_raw_int_get_satellites_visible' was not declared in this scope

MAVLink:237: error: 'MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT' was not declared in this scope

MAVLink:239: error: 'mavlink_msg_set_global_position_setpoint_int_get_latitude' was not declared in this scope

MAVLink:240: error: 'mavlink_msg_set_global_position_setpoint_int_get_longitude' was not declared in this scope

MAVLink:241: error: 'mavlink_msg_set_global_position_setpoint_int_get_altitude' was not declared in this scope

'mavlink_msg_heartbeat_get_base_mode' was not declared in this scope
 
  • Andruino Anfänger Problem Beitrag #3
Gravity

Gravity

Bekanntes Mitglied
Dabei seit
28.02.2002
Beiträge
2.743
Reaktionspunkte
0
Ort
Sincity
Ja hab ich alles runter geladen und probiert, aber ich weiss offen gesagt nicht was ich da mache.

Der Code soll ja angeblich fertig sein, aber scheinbar fehlt da was.
 
  • Andruino Anfänger Problem Beitrag #4
Gravity

Gravity

Bekanntes Mitglied
Dabei seit
28.02.2002
Beiträge
2.743
Reaktionspunkte
0
Ort
Sincity
Mittlerweile habe ich eine aktuellere Version gefunden.

Dort scheint es mit dem Libs zu passen aber ich bekomme dennoch nicht weiter.
Klicke ich das erste Mal auf Überprüfen und Kompilieren wird kein Fehler angezeigt.
Nur endlos Sketch wird kompiliert.
Nach erneuten Klick:

^
C:\Users\user\Documents\Arduino\libraries\FastSerial/../AP_Common/AP_Common.h:165:22: error: expected ')' before ';' token
In file included from C:\Users\user\Documents\Arduino\libraries\FastSerial/FastSerial.h:56:0,
from Mav2HoTT.ino:70:
C:\Users\user\Documents\Arduino\libraries\FastSerial/BetterStream.h: At global scope:
C:\Users\user\Documents\Arduino\libraries\FastSerial/BetterStream.h:28:41: error: 'prog_char' does not name a type
void _printf_P(const prog_char *, ...);
^
C:\Users\user\Documents\Arduino\libraries\FastSerial/BetterStream.h:28:51: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
void _printf_P(const prog_char *, ...);
^
In file included from Mav2HoTT.ino:95:0:
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:30:7: error: 'prog_char' does not name a type
const prog_char flModeStrings [15][20] PROGMEM = {
^
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:50:2: error: 'flModeStrings' was not declared in this scope
flModeStrings[0], flModeStrings[1], flModeStrings[2], flModeStrings[3], flModeStrings[4], flModeStrings[5],
^
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:50:21: error: 'flModeStrings' was not declared in this scope
flModeStrings[0], flModeStrings[1], flModeStrings[2], flModeStrings[3], flModeStrings[4], flModeStrings[5],
^
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:50:39: error: 'flModeStrings' was not declared in this scope
flModeStrings[0], flModeStrings[1], flModeStrings[2], flModeStrings[3], flModeStrings[4], flModeStrings[5],
^
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:50:57: error: 'flModeStrings' was not declared in this scope
flModeStrings[0], flModeStrings[1], flModeStrings[2], flModeStrings[3], flModeStrings[4], flModeStrings[5],
^
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:50:75: error: 'flModeStrings' was not declared in this scope
flModeStrings[0], flModeStrings[1], flModeStrings[2], flModeStrings[3], flModeStrings[4], flModeStrings[5],
^
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:50:93: error: 'flModeStrings' was not declared in this scope
flModeStrings[0], flModeStrings[1], flModeStrings[2], flModeStrings[3], flModeStrings[4], flModeStrings[5],
^
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:51:2: error: 'flModeStrings' was not declared in this scope
flModeStrings[6], flModeStrings[7], flModeStrings[8], flModeStrings[9], flModeStrings[10], flModeStrings[11],
^
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:51:21: error: 'flModeStrings' was not declared in this scope
flModeStrings[6], flModeStrings[7], flModeStrings[8], flModeStrings[9], flModeStrings[10], flModeStrings[11],
^
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:51:39: error: 'flModeStrings' was not declared in this scope
flModeStrings[6], flModeStrings[7], flModeStrings[8], flModeStrings[9], flModeStrings[10], flModeStrings[11],
^
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:51:57: error: 'flModeStrings' was not declared in this scope
flModeStrings[6], flModeStrings[7], flModeStrings[8], flModeStrings[9], flModeStrings[10], flModeStrings[11],
^
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:51:75: error: 'flModeStrings' was not declared in this scope
flModeStrings[6], flModeStrings[7], flModeStrings[8], flModeStrings[9], flModeStrings[10], flModeStrings[11],
^
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:51:94: error: 'flModeStrings' was not declared in this scope
flModeStrings[6], flModeStrings[7], flModeStrings[8], flModeStrings[9], flModeStrings[10], flModeStrings[11],
^
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:52:2: error: 'flModeStrings' was not declared in this scope
flModeStrings[12], flModeStrings[13], flModeStrings[14], flModeStrings[15]
^
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:52:22: error: 'flModeStrings' was not declared in this scope
flModeStrings[12], flModeStrings[13], flModeStrings[14], flModeStrings[15]
^
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:52:41: error: 'flModeStrings' was not declared in this scope
flModeStrings[12], flModeStrings[13], flModeStrings[14], flModeStrings[15]
^
C:\Users\AppData\Local\Temp\build6475372437027294259.tmp\HoTTv4.h:52:60: error: 'flModeStrings' was not declared in this scope
flModeStrings[12], flModeStrings[13], flModeStrings[14], flModeStrings[15]
^
Fehler beim Kompilieren.
 
Thema:

Andruino Anfänger Problem

ANGEBOTE & SPONSOREN

https://www.mofapower.de/

Statistik des Forums

Themen
213.177
Beiträge
1.579.167
Mitglieder
55.871
Neuestes Mitglied
Mein-Helmut
Oben