
com.neuronrobotics.sdk.commands.bcs.pid.ConfigurePDVelocityCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-bowler Show documentation
Show all versions of java-bowler Show documentation
A command line utility for accesing the bowler framework.
The newest version!
package com.neuronrobotics.sdk.commands.bcs.pid;
import com.neuronrobotics.sdk.common.BowlerAbstractCommand;
import com.neuronrobotics.sdk.common.BowlerMethod;
import com.neuronrobotics.sdk.pid.PDVelocityConfiguration;
// TODO: Auto-generated Javadoc
/**
* The Class ConfigurePDVelocityCommand.
*/
public class ConfigurePDVelocityCommand extends BowlerAbstractCommand {
/**
* Instantiates a new configure pd velocity command.
*
* @param group the group
*/
public ConfigurePDVelocityCommand(int group){
setOpCode("cpdv");
setMethod(BowlerMethod.GET);
getCallingDataStorage().add(group);
}
/**
* Instantiates a new configure pd velocity command.
*
* @param config the config
*/
public ConfigurePDVelocityCommand(PDVelocityConfiguration config){
setOpCode("cpdv");
setMethod(BowlerMethod.CRITICAL);
getCallingDataStorage().add(config.getGroup());
getCallingDataStorage().addAs32((int) (config.getKP()*100));
getCallingDataStorage().addAs32((int) (config.getKD()*100));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy