-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FalconSharedMemoryArea2 #2
Comments
Hi I reviewed up to pilotsStatus, and believe you have to use the multipliers for the array lengths. After that the fields might be from a newer version of FlightData.h? Where can I see the latest? Nils
|
Here's a link to a copy of version 4.35 FlightData.h: https://gist.github.com/dglava/55a823cb6d8f899f11790b2a4c3e4356 Thanks for looking into this. |
ok, try the struct description in my post #2 (comment), that looks right atm |
I have tried it, but I'm still getting weird data. I tried a few things:
But then stuff like "cmdsMode" seems to give me the correct data. Do you reckon it's an issue with the FlightData2 class or with the shared memory in Falcon BMS itself? |
Ok, found another mistake that would break anything after RTT_*, see below
|
Thanks, it's working! Sorry for bothering you, but would you also know why this additional Falcon BMS shared memory part isn't working when trying to access it? It's the IntelliVibe values which can be seen in the "IVibe" tab inside Falcon BMS shared memory viewer. It's not documented in the FlightData.h file. Here's a related thread and the only documentation I could find. I have created a new class and defined those fields according to the info above. The first few ones (BYTE and INT) are working, but the BOOL fields aren't. Here's what I have:
When I do |
Glad it works, can you create a pull request so your shared memory area 2 ends up in code? For your additional example try ctypes.wintypes.BOOLEAN (not BOOL which seems to be a long) |
Using BOOLEAN instead of BOOL fixed it! |
I am trying to get values from FalconSharedMemoryArea2. I have tried to modify falcon.py to include some of the data from it, but without much success.
I wanted to access the FlyState. Running the script below isn't returning integers in the range of 0 to 5 as expected, but somewhat random longer integers (01241535 for example). I'm not very knowledgeable about this and I'm pretty sure I'm doing something wrong. How would I access the FlyState?Edit: I have made some progress.
I have added the FLIGHTDATA2 structure. I am however unsure if I assigned all the ctypes correctly. I am also getting a weird byte for pilotsStatus. I assume I am using it wrongly? How would I get the correct pilotsStatus?
Here's my modification of falcon.py:
Thanks for this neat utility. I would have never figured out myself how to access Falcon BMS' shared memory via Python without it.
The text was updated successfully, but these errors were encountered: