From 3d544eb379ef26bf712d75af70eeeb297012365c Mon Sep 17 00:00:00 2001 From: Johannes Schrimpf Date: Wed, 30 Oct 2024 14:45:08 +0100 Subject: [PATCH] Add CPUInfoTel --- protobuf_definitions/message_formats.proto | 8 ++++++++ protobuf_definitions/telemetry.proto | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/protobuf_definitions/message_formats.proto b/protobuf_definitions/message_formats.proto index 1b875f52..40d72c5b 100644 --- a/protobuf_definitions/message_formats.proto +++ b/protobuf_definitions/message_formats.proto @@ -1056,3 +1056,11 @@ message PersistentStorageSettings { bool compass_calibration = 8; // Indicates if compass calibration data should be written to the data partition. bool acc_calibration = 9; // Indicates if accelerometer calibration data should be written to the data partition. } + +// CPU information +// +// Contains information about the CPU load and memory usage of the drone. +message CPUInfo { + float cpu_load = 1; // CPU load in percent (0..100) + float memory_bus_load = 2; // Memory bus load in percent (0..100) +} \ No newline at end of file diff --git a/protobuf_definitions/telemetry.proto b/protobuf_definitions/telemetry.proto index 7422dba2..7ab42f61 100644 --- a/protobuf_definitions/telemetry.proto +++ b/protobuf_definitions/telemetry.proto @@ -275,4 +275,8 @@ message MultibeamConfigTel { // Multibeam sonar status message message MultibeamDiscoveryTel { MultibeamDiscovery discovery = 1; // Discovery data from a multibeam sonar +} + +message CPUInfoTel { + CPUInfo cpu_info = 1; } \ No newline at end of file