For the complete documentation index, see llms.txt. This page is also available as Markdown.

Examples

Use case

This example reads the CAN Lidar’s distance, status, flags, peak signal, and ambient-light values and publishes them to SmartDashboard. Use it to verify CAN communication, confirm the configured device ID, evaluate mounting, and collect data for application-specific validation thresholds.

The snippets use CAN bus 2 and device ID 0. Change both values to match the controller and sensor configuration.

Mounting example

CAN Lidar mounted to robot structure
Mount the sensor rigidly with an unobstructed view of the target.

Setup

Install the AndyMark WPILib vendor library before using these examples. See Device API for all available methods.

Next steps

  • Move the target through the full operating range.

  • Compare status, peak signal, and ambient values under realistic lighting.

  • Use the Validation page to establish acceptance criteria.

  • Apply tuning only after recording baseline performance.

Last updated

Was this helpful?