mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-15 18:30:34 +08:00
New field in dynamic allocator app for Linux: 'All allocated'
This commit is contained in:
@@ -256,7 +256,7 @@ void redraw(const uavcan_linux::NodePtr& node,
|
||||
/*
|
||||
* Constants that are permanent for the designed UI layout
|
||||
*/
|
||||
constexpr unsigned NumRelevantEvents = 16;
|
||||
constexpr unsigned NumRelevantEvents = 17;
|
||||
constexpr unsigned NumRowsWithoutEvents = 3;
|
||||
|
||||
/*
|
||||
@@ -390,6 +390,11 @@ void redraw(const uavcan_linux::NodePtr& node,
|
||||
node->getInternalFailureCount(),
|
||||
colorize_if(node->getInternalFailureCount() != 0, CLIColor::Magenta));
|
||||
|
||||
const bool all_allocated = server.guessIfAllDynamicNodesAreAllocated();
|
||||
render_top_str("All allocated",
|
||||
all_allocated ? "Yes": "No",
|
||||
colorize_if(!all_allocated, CLIColor::Magenta));
|
||||
|
||||
// Empty line before the next block
|
||||
std::printf(" ");
|
||||
render_next_event_counter();
|
||||
|
||||
Reference in New Issue
Block a user