Hi ArduPlane people.
Can somebody tell me what data type the log_bitmask parameter value is for ArduPlane (V3.X) ?
In ArduCopter it's a signed value (2's complement). Is it in Plane also ?
On from that, has anyone got a bitmask calculator for the log_bitmask that saves time doing value modifications ?
Thanks,
Martin
Replies
Hi, just one question regarding the logging in Arduplane 3.3.0, why even if the log parameter is set to 2, I'm getting the log file with the messages ATT, FMT, IMU, MSG and PARM - I just wanted the ATT - I do not get it.
IMU eats a lot of memory.
Please, let me know if you have some answer.
Regards
Hi Paul,
Will the flags calculator work for both APMplane and APMCopter, or just Plane ?
It seems to when I've tried it blindly, but I wonder if both use the same bits for the same flags ???
Martin
Thanks Paul!!
Ditto, I love the Windows exe of the bit flag tool, quick and easy.
Thanks,
Martin
PS. I think this should be included in the Mission Planner as a pop up tool.
I seem to have AirSpeed and Baro in the flash logs now, but I'm not sure which bit flag does it and I'd like to know which one it is so I can trim out unnecessary stuff.
I don't program in C myself but there seems to be a list of logged parameters at the bottom of the source code
https://github.com/diydrones/ardupilot/blob/master/ArduPlane/Log.pde
In that there is this below, with Airspeed near the bottom. Can this mean there are extra undocumented bit flags ?
Anyone ?
is there a place that lists what parameters are included in each of these logs?
if i want a parameter that i know exists (climb rate) but isn't in a log how do i add it? i assume i simply create my own C program insert and somehow apply that to my apm but i would rather find what i want in some existing data flash log....
what happened to "RAW" - didn't there used to be a "get everything" setting that you could use for troubleshooting? how can i turn that on when i need it.
thanks for ANY guidance on this you might be able to provide me.
dennis
I've been meaning to do this for a while so you're post just pushed me over the edge. I've drawn up a simple spread sheet to calculate this for plane. See attached. See if I've made a mistake? The green area is for you to edit and the LOG_BITMASK will be available below to copy & paste into the parameter on Planner.
Bitmask Log.xlsx
Sorry I pushed you over the edge, but nice work and it opens up fine in Open Office Calc :-)
I can change the green values and the total bitmask value updates.
While you are still in free fall, is it possible to add a second function table that reverses the Log_bitmask value back to the individual bit number values as 0 & 1's ?
It would speed the process of working out what values like the suggested default selects (5190).
My original value after flashing V3.1.2Beta1 was 16254, which gave me a lot of log variables but not Airspeed or Baro. 5190 does not seem to either according to my logs.
Still investigating...
OK Excel 2010 can't do bitwise calcs so I had to go javascript. It's nasty but looks like it's working. I'll merge the two into one solution as soon as I can. Hope it helps you.
LogBitMask.htm
-
1
-
2
of 2 Next