mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
Add board info to Blackbox log headers (#9372)
Add board info to Blackbox log headers
This commit is contained in:
commit
a22d8dba10
1 changed files with 3 additions and 1 deletions
|
@ -53,6 +53,7 @@
|
|||
#include "drivers/time.h"
|
||||
|
||||
#include "config/config.h"
|
||||
#include "fc/board_info.h"
|
||||
#include "fc/controlrate_profile.h"
|
||||
#include "fc/rc.h"
|
||||
#include "fc/rc_controls.h"
|
||||
|
@ -660,7 +661,7 @@ static void writeInterframe(void)
|
|||
|
||||
int32_t deltas[8];
|
||||
int32_t setpointDeltas[4];
|
||||
|
||||
|
||||
arraySubInt32(deltas, blackboxCurrent->axisPID_P, blackboxLast->axisPID_P, XYZ_AXIS_COUNT);
|
||||
blackboxWriteSignedVBArray(deltas, XYZ_AXIS_COUNT);
|
||||
|
||||
|
@ -1236,6 +1237,7 @@ static bool blackboxWriteSysinfo(void)
|
|||
BLACKBOX_PRINT_HEADER_LINE("Firmware type", "%s", "Cleanflight");
|
||||
BLACKBOX_PRINT_HEADER_LINE("Firmware revision", "%s %s (%s) %s", FC_FIRMWARE_NAME, FC_VERSION_STRING, shortGitRevision, targetName);
|
||||
BLACKBOX_PRINT_HEADER_LINE("Firmware date", "%s %s", buildDate, buildTime);
|
||||
BLACKBOX_PRINT_HEADER_LINE("Board information", "%s %s", getManufacturerId(), getBoardName());
|
||||
BLACKBOX_PRINT_HEADER_LINE("Log start datetime", "%s", blackboxGetStartDateTime(buf));
|
||||
BLACKBOX_PRINT_HEADER_LINE("Craft name", "%s", pilotConfig()->name);
|
||||
BLACKBOX_PRINT_HEADER_LINE("I interval", "%d", blackboxIInterval);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue