MWC21NanoV_0991 hochladen

phpcode

Neuer Benutzer
#1
Hallo,

ich weissaktuell nicht mehr weiter und wie ich das beheben kann. Ich bekomme immer wenn ich die MWC21NanoV_0991 hochladen will diesen Fehler.


Code:
In file included from C:\Users\sr\Desktop\MWC21NanoV_0991\MWC21NanoV_0991.ino:18:0:

sketch\def.h:132:0: warning: "SOFT_PWM_3_PIN_HIGH" redefined [enabled by default]

   #define SOFT_PWM_3_PIN_HIGH        PORTD |= 1<<4;

 ^

sketch\def.h:68:0: note: this is the location of the previous definition

     #define SOFT_PWM_3_PIN_HIGH        PORTF |= 1<<7;

 ^

sketch\def.h:133:0: warning: "SOFT_PWM_3_PIN_LOW" redefined [enabled by default]

   #define SOFT_PWM_3_PIN_LOW         PORTD &= ~(1<<4);

 ^

sketch\def.h:69:0: note: this is the location of the previous definition

     #define SOFT_PWM_3_PIN_LOW         PORTF &= ~(1<<7);

 ^

sketch\def.h:134:0: warning: "SOFT_PWM_4_PIN_HIGH" redefined [enabled by default]

   #define SOFT_PWM_4_PIN_HIGH        PORTF |= 1<<5;

 ^

sketch\def.h:70:0: note: this is the location of the previous definition

     #define SOFT_PWM_4_PIN_HIGH        PORTF |= 1<<6;

 ^

sketch\def.h:135:0: warning: "SOFT_PWM_4_PIN_LOW" redefined [enabled by default]

   #define SOFT_PWM_4_PIN_LOW         PORTF &= ~(1<<5);

 ^

sketch\def.h:71:0: note: this is the location of the previous definition

     #define SOFT_PWM_4_PIN_LOW         PORTF &= ~(1<<6);

 ^

sketch\def.h:136:0: warning: "SW_PWM_P3" redefined [enabled by default]

   #define SW_PWM_P3                  4        

 ^

sketch\def.h:72:0: note: this is the location of the previous definition

     #define SW_PWM_P3                  A1        

 ^

sketch\def.h:137:0: warning: "SW_PWM_P4" redefined [enabled by default]

   #define SW_PWM_P4                  A2

 ^

sketch\def.h:73:0: note: this is the location of the previous definition

     #define SW_PWM_P4                  A0

 ^

C:\Users\sr\Desktop\MWC21NanoV_0991\Serial.ino: In function 'void SerialOpen(uint8_t, uint32_t)':

Serial:474: error: 'void SerialOpen(uint8_t, uint32_t)' was declared 'extern' and later 'static' [-fpermissive]

 static void inline SerialOpen(uint8_t port, uint32_t baud) {

                                                          ^

MWC21NanoV_0991:271: error: previous declaration of 'void SerialOpen(uint8_t, uint32_t)' [-fpermissive]

       LEDPIN_TOGGLE;

      ^

C:\Users\sr\Desktop\MWC21NanoV_0991\Serial.ino: In function 'void SerialEnd(uint8_t)':

Serial:485: error: 'void SerialEnd(uint8_t)' was declared 'extern' and later 'static' [-fpermissive]

 static void inline SerialEnd(uint8_t port) {

                                          ^

MWC21NanoV_0991:272: error: previous declaration of 'void SerialEnd(uint8_t)' [-fpermissive]

       calibratedAccTime = currentTime + 500000;

      ^

C:\Users\sr\Desktop\MWC21NanoV_0991\Serial.ino: In function 'void store_uart_in_buf(uint8_t, uint8_t)':

Serial:491: error: 'void store_uart_in_buf(uint8_t, uint8_t)' was declared 'extern' and later 'static' [-fpermissive]

 static void inline store_uart_in_buf(uint8_t data, uint8_t portnum) {

                                                                   ^

MWC21NanoV_0991:273: error: previous declaration of 'void store_uart_in_buf(uint8_t, uint8_t)' [-fpermissive]

     } else {

      ^

exit status 1
'void SerialOpen(uint8_t, uint32_t)' was declared 'extern' and later 'static' [-fpermissive]
 

Flugfrosch

Erfahrener Benutzer
#3
Ja,mit der neuesten Arduino Version geht alles vor MWii 2.3 nicht mehr.Am besten immer auch die älteren Versionen auf dem Rechner lassen.Manchmal klappts auch nach zig versuchen,macht dann aber im Betrieb ganz komische Sachen,es laufen nur 3Motoren,oder alle auf vollgas etc. Grüsse Martin
 
FPV1

Banggood

Oben Unten