Manual

www.nexusrobot.com Robot Kits manual
41
This will lie within the range specified at PID::PIDSetup()
Parameters:
Float kc
Proportional term
Float taui
Integral term
Float taud
Derivative term
Unsigded int sampletime
The time the PID work last
Return: pidCtrl equal ture
See: pidCtrl equal ture
bool PIDDisable()
Disable the PID,release it
Return: PID::PIDSetup()
bool PIDReset()
Reset the state of PID
This will lie within the range specified at PID::Reset()
Return:
False if the PIDGetStatus() return false
Ture ortherwise
See: PID::Reset()
bool PIDRegulate(bool doRegulate=true)
Regulate the PID ,in order to adjust the speed of the Motor.
This will lie within the range specified at PID::Compute().
parameters
Bool doRegulate
A bool value
Return: False if the PIDGetStatus() return false,Ture ortherwise
See: PID::Reset()
unsigned int PIDSetSpeedRPMDesired(unsigned int speedRPM)