Skip to content

Add Unit.GetSensors RPC and sensor typing#288

Open
YoloWingPixie wants to merge 3 commits intoDCS-gRPC:mainfrom
YoloWingPixie:yolowingpixie-add-get-sensors
Open

Add Unit.GetSensors RPC and sensor typing#288
YoloWingPixie wants to merge 3 commits intoDCS-gRPC:mainfrom
YoloWingPixie:yolowingpixie-add-get-sensors

Conversation

@YoloWingPixie
Copy link
Collaborator

Introduce UnitService.GetSensors to expose DCS Unit:getSensors() with typed outputs for radar, IRST, RWR, and optical sensors.

  • Add proto messages: SensorCategory, Sensor, RadarSensor, IrstSensor, RwrSensor, OpticalSensor, DetectionDistanceAir, Hemisphere
  • Implement GRPC.methods.getSensors in Lua
  • Wire UnitService::get_sensors in Rust
  • Classify sensors by type id (0=optical, 1=radar, 2=irst, 3=rwr);

Introduce UnitService.GetSensors to expose DCS Unit:getSensors() with
typed outputs for radar, IRST, RWR, and optical sensors.

- Add proto messages: SensorCategory, Sensor, RadarSensor, IrstSensor,
  RwrSensor, OpticalSensor, DetectionDistanceAir, Hemisphere
- Implement GRPC.methods.getSensors in Lua
- Wire UnitService::get_sensors in Rust
- Classify sensors by type id (0=optical, 1=radar, 2=irst,
  3=rwr);
Copy link
Contributor

@rurounijones rurounijones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me based on my fuzzy DCS memory

rurounijones
rurounijones previously approved these changes Nov 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants