chsw / MavLink_FrSkySPort

30 stars 62 forks source link

compiling error and I fixed it #26

Open xros opened 9 years ago

xros commented 9 years ago

I got this error when compiling this thing on teensyduino 3.0/3.1/3.2 with Arduino 1.6.5-r5. After installing teensyduino on the Arduino software, an error came out.

The teensyduino Version 1.25. And current environment is Linux Ubuntu 14.04 AMD64.

arduino-1.6.5-r5/libraries/GCS_MAVLink/GCS_MAVLink.cpp:22:44: error: too many initializers for 'mavlink_system_t {aka __mavlink_system}' mavlink_system_t mavlink_system = {12,1,0,0}; //modified ^ Error compiling.

But after I go to the library codes and change the codes from https://github.com/chsw/MavLink_FrSkySPort/blob/master/libraries/GCS_MAVLink/GCS_MAVLink.cpp#L22

from

mavlink_system_t mavlink_system = {12,1,0,0}; //modified

to

mavlink_system_t mavlink_system = {12,1}; //modified

Then it works.

This is a bug. If you have time, please check it out and update it.

:)

xros

xros commented 9 years ago

I found many other forks based on this repo...

So...whatever...

ThePikk commented 8 years ago

I had issue with this also. It was really helpful for me, thanks! :)

xros commented 8 years ago

@ThePikk Sounds great. You are welcome.