
183
Function
Features
Weakness
Proportional
Control(P)
Amplifty or weaken the error
signal. Proportional
coefficient determines the
strength of control.
The larger the proportional
coefficient, the more responsive
the system becomes. But may
oscillate and destabilize the system
if the coefficient is too large.
Cannot eliminate the
steady-state error of
the system, lowering
the relative stability of
the system.
Integral
Control(I)
Affect controller output with
error accumulation, and
reduce deviation with
negative feedback of the
system.
It is related to the existence period
of the error signal. As long as there
is enough time, the integral control
can eliminate the steady-state
error.
Fail to overcome the
effects of interference
in a timely manner.
Differential
Control(D)
It can reflect change of speed
of the error signal, and have
immediate control when the
error just occurs.
Helps reduce adjustment time and
improve system quality.
Cannot eliminate the
steady-state error of
the system.
Find out more about PID in the RoboMaster app by searching for the "Seek & Destroy" project in the Road
to Mastery section.
Python API
:
Class: rm_ctrl.PIDCtrl()
●
Function:
■
set_ctrl_params(kp, ki, kd)
●
Parameters:
■
kp(float)
■
ki(float)
■
kd(float)
(1) Objective: Obtains the output value for a PID
(2) Type: Information block (variable-type)
(3) Example: Follow Vision Marker
Summary of Contents for RoboMaster EP
Page 1: ......
Page 2: ...1 ...
Page 10: ...9 Before running the enlarge camera frame program After enlarging the camera frame ...
Page 45: ...44 Python API Function chassis_ctrl is_impact Return value impact_status bool ...
Page 53: ...52 Follow arrow markers ...
Page 67: ...66 It can be observed from the FPV window that it takes about 2 1 seconds ...
Page 76: ...75 ...
Page 78: ...77 or ...
Page 105: ...104 Function media_ctrl get_sight_bead_position Return value sight_bead_position list ...
Page 116: ...115 ...
Page 131: ...130 ...
Page 149: ...148 You can check results using the FPV window ...
Page 159: ...158 ...
Page 165: ...164 1 Objective Creates and names a list 2 Type Settings block 3 Example Name a new list ...
Page 185: ...184 Python API Class rm_ctrl PIDCtrl Function get_output Return value output float ...