You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SmartDashboard.putNumber("Name" variable you want);
SmartDashboard.getNumber("Name" variable you want);
SmartDashboard.boolean("Name" variable you want);
Another template that would be good is the getter methods
public String getName()
{
return name;
}
All of these would be in their respective sub-sections in the training doc.
Small things like this are what helped me understand code better and would build a better foundation for rookies.
The text was updated successfully, but these errors were encountered:
I think an excellent way to teach rookies wplib or at least the basic of it is to have code templates for example
Motors
CANSparkMax motor name = MotorControllerFactory.createSparkMax(motor port, MotorConfig.NEO);
RelariveEncoders
RelativeEncoder motor1Encoder = motor1.getEncoder();
SmartDashboard
SmartDashboard.putNumber("Name" variable you want);
SmartDashboard.getNumber("Name" variable you want);
SmartDashboard.boolean("Name" variable you want);
Another template that would be good is the getter methods
public String getName()
{
return name;
}
All of these would be in their respective sub-sections in the training doc.
Small things like this are what helped me understand code better and would build a better foundation for rookies.
The text was updated successfully, but these errors were encountered: