Comments (2)
Hi there! Thanks for reaching out, and sorry for the delay :)
As you mentioned I'm not really working on this any longer, mostly cause it was just a one-day project (almost ;) ) to see if I could get some controls on Arduino to connect to FGFS.
I would have loved to do bi-directional communication, but at the time I had no idea how to implement that in a nice way. I was thinking either to have two serial connections, or perhaps implement some kind of protocol for which every time Arduino would send a packet to me, I would be able to send back to Arduino some data about FGFS (maybe for displaying radios or for some forced feedback, stuff like that).
I think this would be quite wasteful though. Instead of just exchanging fixed size data packets, I think it would be better to exchange messages. I originally implemented fixed size packages as the binary protocol from FGFS to my program also worked that way, but I guess we could communicate with messages instead?
What were you thinking?
from fgfs-binary-protocol.
What were you thinking?
I needed a way to get data from the FlightGear
simulator.
I was looking for various options and thatβs how I actually found your project.
But your code only sent data to the simulator, I needed the inverse task, and I thought that this could be done by analogy.
In the end, I did it easier, using the generic protocol.
I created a protocol *xml
file in the folder, I indicated to the simulator what data I need to transfer to the com port, also known as the serial port.
And using the console command I ran:
fgfs --generic=serial,out,150,\\.\COM15,230400,insgns-imu2
I already receive this data using USB-TTL
and submit it to the RX
input of the STM32F411
microcontroller.
On which the code program with the serial port parser runs.
I needed to receive raw data from gyroscopes
and accelerometers
in order to process fusion algorithms
on a microcontroller, similar to mems sensors.
So far everything seems to be working out as planned.
The video shows not just a duplication of orientation angles from the simulator, but actually a real-time calculation of angles inside an aircraft instrument.
flightgear_imu.mp4
In the future, there are plans to rewrite your code to output data from their simulator, and wrap it all in a library.
Thanks for your response.
from fgfs-binary-protocol.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fgfs-binary-protocol.