mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Add logging of the inflight adjustment events to the blackbox
This commit is contained in:
parent
5dee96c3e0
commit
00bff6485b
5 changed files with 137 additions and 52 deletions
|
@ -407,6 +407,21 @@ void blackboxWriteTag8_8SVB(int32_t *values, int valueCount)
|
|||
}
|
||||
}
|
||||
|
||||
/** Write unsigned integer **/
|
||||
void blackboxWriteU32(int32_t value)
|
||||
{
|
||||
blackboxWrite(value & 0xFF);
|
||||
blackboxWrite((value >> 8) & 0xFF);
|
||||
blackboxWrite((value >> 16) & 0xFF);
|
||||
blackboxWrite((value >> 24) & 0xFF);
|
||||
}
|
||||
|
||||
/** Write float value in the integer form **/
|
||||
void blackboxWriteFloat(float value)
|
||||
{
|
||||
blackboxWriteU32(castFloatBytesToInt(value));
|
||||
}
|
||||
|
||||
/**
|
||||
* If there is data waiting to be written to the blackbox device, attempt to write (a portion of) that now.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue