Skip to content

Commit d755edd

Browse files
sindrehancodex
andcommitted
Add power-canister environmental telemetry
Expose front and rear ESC-board temperature in degrees Celsius and relative humidity in percent. Keep each board optional so unavailable readings are distinguishable from zero. Co-authored-by: Astra <noreply@openai.com>
1 parent 369b31c commit d755edd

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

‎protobuf_definitions/message_formats.proto‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,18 @@ message CanisterHumidity {
359359
float humidity = 3; // Air humidity (%).
360360
}
361361

362+
// Environmental measurements inside the X7 power canister.
363+
message PowerCanister {
364+
// Temperature and relative humidity measured by an ESC board's SHT40 sensor.
365+
message Environment {
366+
float temperature = 1; // Temperature (°C).
367+
float humidity = 2; // Relative humidity (%).
368+
}
369+
370+
Environment front_esc = 1; // Front ESC board; absent when no recent reading is available.
371+
Environment rear_esc = 2; // Rear ESC board; absent when no recent reading is available.
372+
}
373+
362374
// Essential battery information.
363375
message Battery {
364376
float voltage = 1; // Battery voltage (V).

‎protobuf_definitions/telemetry.proto‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ message CanisterBottomHumidityTel {
164164
CanisterHumidity humidity = 1; // Humidity information.
165165
}
166166

167+
// Receive environmental measurements from the X7 power canister at 1 Hz.
168+
message PowerCanisterTel {
169+
PowerCanister power_canister = 1; // Front and rear ESC-board temperature and humidity.
170+
}
171+
167172
// Video storage info.
168173
message VideoStorageSpaceTel {
169174
StorageSpace storage_space = 1; // Internal Video storage information.

0 commit comments

Comments
 (0)