Skip to main content

validate_sensor_spec

Function validate_sensor_spec 

Source
pub fn validate_sensor_spec(spec: &SensorSpec) -> ValidationResult<()>
Expand description

Validate a complete sensor specification

Validates:

  • sensor_id is present
  • name is present
  • mount_type is specified
  • base_orientation is valid
  • field_of_view is present and valid
  • For non-fixed mounts: gimbal_limits should be present
  • For fixed mounts: gimbal_limits and current_state should be absent