I just made a short test. The loading of the protocol is in file flightgear/Network/generic.cxx in method FGGeneric::reinit().
Instead of
- Code: Select all
if (direction == "out") {
. . .
} else if (direction == "in") {
. . .
}
I rewrote it to
- Code: Select all
if (direction == "out" || direction == "bi") {
. . .
}
if (direction == "in" || direction == "bi") {
. . .
}
After compiling I can now use direction "bi" in FG. If you know how to compile the source, you can give it a try.
Since I am on Linux I can already use "out" and "in" for same Arduino device. It would be good if this solved it on Windows.