Jump to content

Problem whit simpit and Arduino DUE


Recommended Posts

I have copied the controller from @Wurmi and would now like to upgrade it to simpit and an Arduino DUE.

Unfortunately, I always get this message when I try to install it, and the message also appears in the examples.

 

c:\arduino\libraries\KerbalSimpit\src\KerbalSimpit.cpp: In member function 'bool KerbalSimpit::init()':

c:\arduino\libraries\KerbalSimpit\src\KerbalSimpit.cpp:54:54: error: 'SERIAL_RX_BUFFER_SIZE' was not declared in this scope

printToKSP("Buffer receive size : " + String(SERIAL_RX_BUFFER_SIZE));

^

Does anyone have a solution?
 

Edited by droka
Link to comment
Share on other sites

6 hours ago, droka said:

I have copied the controller from @Wurmi and would now like to upgrade it to simpit and an Arduino DUE.

Unfortunately, I always get this message when I try to install it, and the message also appears in the examples.

 

c:\arduino\libraries\KerbalSimpit\src\KerbalSimpit.cpp: In member function 'bool KerbalSimpit::init()':

c:\arduino\libraries\KerbalSimpit\src\KerbalSimpit.cpp:54:54: error: 'SERIAL_RX_BUFFER_SIZE' was not declared in this scope

printToKSP("Buffer receive size : " + String(SERIAL_RX_BUFFER_SIZE));

^

Does anyone have a solution?
 

You need to add Serial support to your project.

Check the documentation here:

https://www.arduino.cc/reference/en/language/functions/communication/serial/

Follows a nice tutorial about how to handle serial communications with an Arduino. I think it will worth reading it!

https://www.ladyada.net/learn/arduino/lesson4.html

 

Link to comment
Share on other sites

29 minutes ago, HebaruSan said:

That's a compiler error, it means there's a problem with the C++ source code you're trying to compile.

I looked for KerbalSimpit, but I found C# code and different user names.

Can you share a link to whatever it is you're doing?

I have rebuilt this controller, now I would like to use simpit.

Controller von Wurmi

Code für Controller

 

 

 

But I can't get the sketch onto the Arduino. Even the examples in the simpit library don't work.

 

@Lisias Thanks, I will have a look at it.

Link to comment
Share on other sites

11 hours ago, droka said:

I have rebuilt this controller, now I would like to use simpit.

Controller von Wurmi

Code für Controller

 

But I can't get the sketch onto the Arduino. Even the examples in the simpit library don't work.

Found it! You need to add a module to the project:

https://github.com/Richi0D/Kerbalcontroller

 

Out of curiosity, the missing define is on this file:

https://github.com/Richi0D/Kerbalcontroller/blob/master/KerbalController.ino

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...