User Tools

Site Tools


control_system

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
control_system [2019/12/01 07:48] – [Outputs] grafcontrol_system [2019/12/01 07:49] – [Headline] graf
Line 8: Line 8:
 Lets start with the blue box at the bottom center of the diagram. This box represent the motors including the gears and the encoders. The encoders are defined as ''Peripheral Input''. This ''Peripheral Inputs'' are described in the HAL configuration file, see [[hal|]]. To initialize the encoder inputs, you have to call the constructor of the ''Peripheral Input'' and add the respective ''signalId'' from the HAL configuration file as parameter, e.g. Lets start with the blue box at the bottom center of the diagram. This box represent the motors including the gears and the encoders. The encoders are defined as ''Peripheral Input''. This ''Peripheral Inputs'' are described in the HAL configuration file, see [[hal|]]. To initialize the encoder inputs, you have to call the constructor of the ''Peripheral Input'' and add the respective ''signalId'' from the HAL configuration file as parameter, e.g.
 <code c> <code c>
-eeros::control::PeripheralInput<double> encoder1("enc1");+eeros::control::PeripheralInput<double> enc1("enc1");
 </code> </code>
 If the HAL is configured correctly, we get the current position in radian of each encoder. Next, the ''Mux'' collects the three encoder values and puts them into an ''AxisVector''. ''AxisVector'' is defined as  If the HAL is configured correctly, we get the current position in radian of each encoder. Next, the ''Mux'' collects the three encoder values and puts them into an ''AxisVector''. ''AxisVector'' is defined as 
Line 26: Line 26:
   * The ''Mouse Input'' gets the movement of the mouse. We use this block to manually control the Delta robot. The output of the ''Mouse Input'' is an vector with 4 entries. We must reduce it to 3 containing x, y, z.   * The ''Mouse Input'' gets the movement of the mouse. We use this block to manually control the Delta robot. The output of the ''Mouse Input'' is an vector with 4 entries. We must reduce it to 3 containing x, y, z.
  
-==== Headline ====+==== Controller ====
  
 The "Motor Model" gets the actual speed and the calculated torque as input, and outputs the desired voltage for each motor.\\  The "Motor Model" gets the actual speed and the calculated torque as input, and outputs the desired voltage for each motor.\\ 
control_system.txt · Last modified: 2023/05/11 17:13 by ursgraf