How to list Sparks in VScode Java

We just have a simple problem, we don’t know how to list spark motor controllers in vscode java, and can’t find it in the documentation. Does anyone know?

I’m not sure what your question is. Are you trying to:

  • Get a list of all the Spark Motor Controllers you’ve created, while in VS Code, before deploying code to the robot?
  • Have the Robot write out a list of all the spark motor controllers you’ve created when it boots up?
  • Have the Robot write out a list of all spark motor controllers connected to it when it boots up?
1 Like

https://first.wpi.edu/FRC/roborio/release/docs/java/edu/wpi/first/wpilibj/Spark.html

https://docs.wpilib.org/en/latest/docs/software/actuators/using-speed-controllers.html#using-pwm-speed-controllers

In case you are talking about Spark MAXs, you can plug into one with the USB cable and observe all Spark MAXs on the network.
This link talks about updating firmware, but it gets you to the right screen.

Or is this a question about installing the Rev Robotics vendordeps into your VS Code project and build.gradle so you can see the classes and import them into your code?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.