Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project import generated by Copybara. #45

Merged
merged 1 commit into from
Jul 18, 2023
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
45 changes: 44 additions & 1 deletion api/nbi/v1alpha/resources/antenna_pattern.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ option go_package = "aalyria.com/spacetime/api/nbi/v1alpha/resources";
// Models an antenna radiation pattern. Multiple platform definitions can
// reference the same antenna pattern.
message AntennaPattern {
reserved 8, 11 to max;
reserved 8, 13 to max;

// A custom / user-defined antenna radiation pattern.
message CustomAntennaPattern {
Expand All @@ -44,6 +44,40 @@ message AntennaPattern {
repeated SphericalGainValue gain_value = 1;
}

// Represents antennas that have gain patterns which vary based on the
// scan angle.
message CustomAntennaPatternPerAngle {
message ScanAngleAndCustomPattern {
// Scan angle.
// Required. Phi is defined as the azimuth angle from the positive x-axis
// to the orthogonal projection of the point in the x-y plane.
// Must be within [-pi, pi].
optional float phi_rad = 1;

// Required. Theta is the zenith angle from the positive z-axis to
// the point. Must be within [0, pi].
optional float theta_rad = 2;

// Required. The antenna pattern for this scan angle.
// These patterns assign a gain value to each look angle.
// The phi and theta in these patterns must also conform to the ranges
// above.
optional CustomAntennaPattern custom_pattern = 3;
}
// The list of custom antenna patterns for each scan angle.
// The phi angles must have an equal interval between them, and
// the theta angles must also have an equal interval between them.
// The interval for the phi angles does not have to be the same as
// the interval for the theta angles.
// The interval for the scan angle does not have to be the same as the
// interval for the look angles. But, each CustomAntennaPattern must
// have the same phi and theta range.
// The phi and theta angles for both the scan angles and look angles must
// be able to be transformed into two dimensional arrays where there
// are no missing values.
repeated ScanAngleAndCustomPattern scan_angle_and_custom_patterns = 1;
}

message GaussianAntennaPattern {
optional double diameter_m = 1;
optional double efficiency_percent = 2;
Expand Down Expand Up @@ -117,6 +151,13 @@ message AntennaPattern {
optional double near_field_range_m = 3;
}

// Applies a different antenna radiation pattern for the transmitter
// and receiver.
message TransmitterAndReceiverAntennaPattern {
optional AntennaPattern transmitter_pattern = 1;
optional AntennaPattern receiver_pattern = 2;
}

oneof pattern_type {
CustomAntennaPattern custom_pattern = 1;
GaussianAntennaPattern gaussian_pattern = 2;
Expand All @@ -127,5 +168,7 @@ message AntennaPattern {
GaussianOpticalAntennaPattern gaussian_optical_pattern = 7;
PhasedArrayAntennaPattern phased_array_pattern = 10;
NearAndFarFieldAntennaPattern near_and_far_field_pattern = 9;
TransmitterAndReceiverAntennaPattern transmitter_and_receiver_pattern = 11;
CustomAntennaPatternPerAngle custom_antenna_pattern_per_angle = 12;
}
}
6 changes: 6 additions & 0 deletions api/nbi/v1alpha/resources/network_link.proto
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ message WirelessLinkReport {

// The modeled data rate capacity, in layer 2 bits per second.
optional double data_rate_bps = 6;

// The transmitter antenna's gain in the link direction, in dB.
optional double transmitter_antenna_gain_in_link_direction_db = 7;

// The receiver antenna's gain in the link direction, in dB.
optional double receiver_antenna_gain_in_link_direction_db = 8;
}
repeated WirelessLinkMetrics sampled_metrics = 4;
}
Expand Down