Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions protobuf_definitions/message_formats.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1553,6 +1553,15 @@ message MultibeamDiscovery {
MultibeamErrorFlags error_flags = 8; // Error flags specific for the connected multibeam device.
}

// Color filter used to render the multibeam sonar fan.
//
// The fan renderer maps each echo intensity (0..255) to a color through this
// lookup table. The drone keeps the last filter received in memory and applies
// it to the sonar RTSP stream; grayscale is used until one is set.
message MultibeamColorFilter {
bytes rgb = 1; // 768 bytes: 256 consecutive R,G,B triplets, indexed by echo intensity.
}

// Error flags for multibeam sonar devices.
message MultibeamErrorFlags {
/*
Expand Down
18 changes: 18 additions & 0 deletions protobuf_definitions/req_rep.proto
Original file line number Diff line number Diff line change
Expand Up @@ -275,3 +275,21 @@ message GetCvModelsReq {
message GetCvModelsRep {
repeated CvModelInfo cv_models = 1; // All installed models, including models that are not running.
}

// Request to set the color filter used to render the multibeam sonar fan.
message SetMultibeamColorFilterReq {
MultibeamColorFilter color_filter = 1; // The color filter to apply.
}

// Response after setting the multibeam color filter.
message SetMultibeamColorFilterRep {
}

// Request to get the color filter currently used to render the multibeam sonar fan.
message GetMultibeamColorFilterReq {
}

// Response with the current multibeam color filter.
message GetMultibeamColorFilterRep {
MultibeamColorFilter color_filter = 1; // The current color filter. Empty rgb means none is set (grayscale).
}
Loading