YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
piddlg.cpp File Reference
#include "piddlg.h"
#include "ui_piddlg.h"
#include <QDebug>
#include <QPushButton>
#include <yarp/os/Bottle.h>
#include <yarp/os/Value.h>
+ Include dependency graph for piddlg.cpp:

Go to the source code of this file.

Macros

#define TAB_POSITION   0
 
#define TAB_POSITION_DIR   1
 
#define TAB_VELOCITY   2
 
#define TAB_VELOCITY_DIR   3
 
#define TAB_MIXED   4
 
#define TAB_TORQUE   5
 
#define TAB_CURRENT   6
 
#define TAB_MOTORPARAMS   7
 
#define TAB_STIFF   8
 
#define TAB_PWM   9
 
#define TAB_VARIABLES   10
 
#define POSITION_KP   0
 
#define POSITION_KD   1
 
#define POSITION_KI   2
 
#define POSITION_SCALE   3
 
#define POSITION_MAXOUTPUT   4
 
#define POSITION_MAXINT   5
 
#define POSITION_OFFSET   6
 
#define POSITION_STICTIONUP   7
 
#define POSITION_STICTIONDW   8
 
#define POSITION_KFF   9
 
#define POSITION_DIR_KP   0
 
#define POSITION_DIR_KD   1
 
#define POSITION_DIR_KI   2
 
#define POSITION_DIR_SCALE   3
 
#define POSITION_DIR_MAXOUTPUT   4
 
#define POSITION_DIR_MAXINT   5
 
#define POSITION_DIR_OFFSET   6
 
#define POSITION_DIR_STICTIONUP   7
 
#define POSITION_DIR_STICTIONDW   8
 
#define POSITION_DIR_KFF   9
 
#define VELOCITY_KP   0
 
#define VELOCITY_KD   1
 
#define VELOCITY_KI   2
 
#define VELOCITY_SCALE   3
 
#define VELOCITY_MAXOUTPUT   4
 
#define VELOCITY_MAXINT   5
 
#define VELOCITY_OFFSET   6
 
#define VELOCITY_STICTIONUP   7
 
#define VELOCITY_STICTIONDW   8
 
#define VELOCITY_KFF   9
 
#define VELOCITY_DIR_KP   0
 
#define VELOCITY_DIR_KD   1
 
#define VELOCITY_DIR_KI   2
 
#define VELOCITY_DIR_SCALE   3
 
#define VELOCITY_DIR_MAXOUTPUT   4
 
#define VELOCITY_DIR_MAXINT   5
 
#define VELOCITY_DIR_OFFSET   6
 
#define VELOCITY_DIR_STICTIONUP   7
 
#define VELOCITY_DIR_STICTIONDW   8
 
#define VELOCITY_DIR_KFF   9
 
#define MIXED_KP   0
 
#define MIXED_KD   1
 
#define MIXED_KI   2
 
#define MIXED_SCALE   3
 
#define MIXED_MAXOUTPUT   4
 
#define MIXED_MAXINT   5
 
#define MIXED_OFFSET   6
 
#define MIXED_STICTIONUP   7
 
#define MIXED_STICTIONDW   8
 
#define MIXED_KFF   9
 
#define TORQUE_KP   0
 
#define TORQUE_KD   1
 
#define TORQUE_KI   2
 
#define TORQUE_SCALE   3
 
#define TORQUE_MAXOUTPUT   4
 
#define TORQUE_MAXINT   5
 
#define TORQUE_OFFSET   6
 
#define TORQUE_STITCTIONUP   7
 
#define TORQUE_STICTIONDW   8
 
#define TORQUE_KFF   9
 
#define MOTOR_BEMFGAIN   0
 
#define MOTOR_BEMFSCALE   1
 
#define MOTOR_KTAUGAIN   2
 
#define MOTOR_KTAUSCALE   3
 
#define MOTOR_VISCOUSPOS   4
 
#define MOTOR_VISCOUSNEG   5
 
#define MOTOR_COULOMBPOS   6
 
#define MOTOR_COULOMBNEG   7
 
#define MOTOR_VELOCITY_THRESHOLD   8
 
#define CURRENT_KP   0
 
#define CURRENT_KD   1
 
#define CURRENT_KI   2
 
#define CURRENT_SCALE   3
 
#define CURRENT_MAXOUTPUT   4
 
#define CURRENT_MAXINT   5
 
#define CURRENT_OFFSET   6
 
#define CURRENT_KFF   7
 

Functions

int getCurrentTabIndexByName (QTabWidget *tabWidget, const QString &name)
 
std::string prepareDescription (const PidWithExtraInfo &myPid)
 
PidControlTypeEnum choosePIDType (const PidControlTypeEnum &base, int index)
 

Macro Definition Documentation

◆ CURRENT_KD

#define CURRENT_KD   1

Definition at line 103 of file piddlg.cpp.

◆ CURRENT_KFF

#define CURRENT_KFF   7

Definition at line 109 of file piddlg.cpp.

◆ CURRENT_KI

#define CURRENT_KI   2

Definition at line 104 of file piddlg.cpp.

◆ CURRENT_KP

#define CURRENT_KP   0

Definition at line 102 of file piddlg.cpp.

◆ CURRENT_MAXINT

#define CURRENT_MAXINT   5

Definition at line 107 of file piddlg.cpp.

◆ CURRENT_MAXOUTPUT

#define CURRENT_MAXOUTPUT   4

Definition at line 106 of file piddlg.cpp.

◆ CURRENT_OFFSET

#define CURRENT_OFFSET   6

Definition at line 108 of file piddlg.cpp.

◆ CURRENT_SCALE

#define CURRENT_SCALE   3

Definition at line 105 of file piddlg.cpp.

◆ MIXED_KD

#define MIXED_KD   1

Definition at line 71 of file piddlg.cpp.

◆ MIXED_KFF

#define MIXED_KFF   9

Definition at line 79 of file piddlg.cpp.

◆ MIXED_KI

#define MIXED_KI   2

Definition at line 72 of file piddlg.cpp.

◆ MIXED_KP

#define MIXED_KP   0

Definition at line 70 of file piddlg.cpp.

◆ MIXED_MAXINT

#define MIXED_MAXINT   5

Definition at line 75 of file piddlg.cpp.

◆ MIXED_MAXOUTPUT

#define MIXED_MAXOUTPUT   4

Definition at line 74 of file piddlg.cpp.

◆ MIXED_OFFSET

#define MIXED_OFFSET   6

Definition at line 76 of file piddlg.cpp.

◆ MIXED_SCALE

#define MIXED_SCALE   3

Definition at line 73 of file piddlg.cpp.

◆ MIXED_STICTIONDW

#define MIXED_STICTIONDW   8

Definition at line 78 of file piddlg.cpp.

◆ MIXED_STICTIONUP

#define MIXED_STICTIONUP   7

Definition at line 77 of file piddlg.cpp.

◆ MOTOR_BEMFGAIN

#define MOTOR_BEMFGAIN   0

Definition at line 92 of file piddlg.cpp.

◆ MOTOR_BEMFSCALE

#define MOTOR_BEMFSCALE   1

Definition at line 93 of file piddlg.cpp.

◆ MOTOR_COULOMBNEG

#define MOTOR_COULOMBNEG   7

Definition at line 99 of file piddlg.cpp.

◆ MOTOR_COULOMBPOS

#define MOTOR_COULOMBPOS   6

Definition at line 98 of file piddlg.cpp.

◆ MOTOR_KTAUGAIN

#define MOTOR_KTAUGAIN   2

Definition at line 94 of file piddlg.cpp.

◆ MOTOR_KTAUSCALE

#define MOTOR_KTAUSCALE   3

Definition at line 95 of file piddlg.cpp.

◆ MOTOR_VELOCITY_THRESHOLD

#define MOTOR_VELOCITY_THRESHOLD   8

Definition at line 100 of file piddlg.cpp.

◆ MOTOR_VISCOUSNEG

#define MOTOR_VISCOUSNEG   5

Definition at line 97 of file piddlg.cpp.

◆ MOTOR_VISCOUSPOS

#define MOTOR_VISCOUSPOS   4

Definition at line 96 of file piddlg.cpp.

◆ POSITION_DIR_KD

#define POSITION_DIR_KD   1

Definition at line 38 of file piddlg.cpp.

◆ POSITION_DIR_KFF

#define POSITION_DIR_KFF   9

Definition at line 46 of file piddlg.cpp.

◆ POSITION_DIR_KI

#define POSITION_DIR_KI   2

Definition at line 39 of file piddlg.cpp.

◆ POSITION_DIR_KP

#define POSITION_DIR_KP   0

Definition at line 37 of file piddlg.cpp.

◆ POSITION_DIR_MAXINT

#define POSITION_DIR_MAXINT   5

Definition at line 42 of file piddlg.cpp.

◆ POSITION_DIR_MAXOUTPUT

#define POSITION_DIR_MAXOUTPUT   4

Definition at line 41 of file piddlg.cpp.

◆ POSITION_DIR_OFFSET

#define POSITION_DIR_OFFSET   6

Definition at line 43 of file piddlg.cpp.

◆ POSITION_DIR_SCALE

#define POSITION_DIR_SCALE   3

Definition at line 40 of file piddlg.cpp.

◆ POSITION_DIR_STICTIONDW

#define POSITION_DIR_STICTIONDW   8

Definition at line 45 of file piddlg.cpp.

◆ POSITION_DIR_STICTIONUP

#define POSITION_DIR_STICTIONUP   7

Definition at line 44 of file piddlg.cpp.

◆ POSITION_KD

#define POSITION_KD   1

Definition at line 27 of file piddlg.cpp.

◆ POSITION_KFF

#define POSITION_KFF   9

Definition at line 35 of file piddlg.cpp.

◆ POSITION_KI

#define POSITION_KI   2

Definition at line 28 of file piddlg.cpp.

◆ POSITION_KP

#define POSITION_KP   0

Definition at line 26 of file piddlg.cpp.

◆ POSITION_MAXINT

#define POSITION_MAXINT   5

Definition at line 31 of file piddlg.cpp.

◆ POSITION_MAXOUTPUT

#define POSITION_MAXOUTPUT   4

Definition at line 30 of file piddlg.cpp.

◆ POSITION_OFFSET

#define POSITION_OFFSET   6

Definition at line 32 of file piddlg.cpp.

◆ POSITION_SCALE

#define POSITION_SCALE   3

Definition at line 29 of file piddlg.cpp.

◆ POSITION_STICTIONDW

#define POSITION_STICTIONDW   8

Definition at line 34 of file piddlg.cpp.

◆ POSITION_STICTIONUP

#define POSITION_STICTIONUP   7

Definition at line 33 of file piddlg.cpp.

◆ TAB_CURRENT

#define TAB_CURRENT   6

Definition at line 20 of file piddlg.cpp.

◆ TAB_MIXED

#define TAB_MIXED   4

Definition at line 18 of file piddlg.cpp.

◆ TAB_MOTORPARAMS

#define TAB_MOTORPARAMS   7

Definition at line 21 of file piddlg.cpp.

◆ TAB_POSITION

#define TAB_POSITION   0

Definition at line 14 of file piddlg.cpp.

◆ TAB_POSITION_DIR

#define TAB_POSITION_DIR   1

Definition at line 15 of file piddlg.cpp.

◆ TAB_PWM

#define TAB_PWM   9

Definition at line 23 of file piddlg.cpp.

◆ TAB_STIFF

#define TAB_STIFF   8

Definition at line 22 of file piddlg.cpp.

◆ TAB_TORQUE

#define TAB_TORQUE   5

Definition at line 19 of file piddlg.cpp.

◆ TAB_VARIABLES

#define TAB_VARIABLES   10

Definition at line 24 of file piddlg.cpp.

◆ TAB_VELOCITY

#define TAB_VELOCITY   2

Definition at line 16 of file piddlg.cpp.

◆ TAB_VELOCITY_DIR

#define TAB_VELOCITY_DIR   3

Definition at line 17 of file piddlg.cpp.

◆ TORQUE_KD

#define TORQUE_KD   1

Definition at line 82 of file piddlg.cpp.

◆ TORQUE_KFF

#define TORQUE_KFF   9

Definition at line 90 of file piddlg.cpp.

◆ TORQUE_KI

#define TORQUE_KI   2

Definition at line 83 of file piddlg.cpp.

◆ TORQUE_KP

#define TORQUE_KP   0

Definition at line 81 of file piddlg.cpp.

◆ TORQUE_MAXINT

#define TORQUE_MAXINT   5

Definition at line 86 of file piddlg.cpp.

◆ TORQUE_MAXOUTPUT

#define TORQUE_MAXOUTPUT   4

Definition at line 85 of file piddlg.cpp.

◆ TORQUE_OFFSET

#define TORQUE_OFFSET   6

Definition at line 87 of file piddlg.cpp.

◆ TORQUE_SCALE

#define TORQUE_SCALE   3

Definition at line 84 of file piddlg.cpp.

◆ TORQUE_STICTIONDW

#define TORQUE_STICTIONDW   8

Definition at line 89 of file piddlg.cpp.

◆ TORQUE_STITCTIONUP

#define TORQUE_STITCTIONUP   7

Definition at line 88 of file piddlg.cpp.

◆ VELOCITY_DIR_KD

#define VELOCITY_DIR_KD   1

Definition at line 60 of file piddlg.cpp.

◆ VELOCITY_DIR_KFF

#define VELOCITY_DIR_KFF   9

Definition at line 68 of file piddlg.cpp.

◆ VELOCITY_DIR_KI

#define VELOCITY_DIR_KI   2

Definition at line 61 of file piddlg.cpp.

◆ VELOCITY_DIR_KP

#define VELOCITY_DIR_KP   0

Definition at line 59 of file piddlg.cpp.

◆ VELOCITY_DIR_MAXINT

#define VELOCITY_DIR_MAXINT   5

Definition at line 64 of file piddlg.cpp.

◆ VELOCITY_DIR_MAXOUTPUT

#define VELOCITY_DIR_MAXOUTPUT   4

Definition at line 63 of file piddlg.cpp.

◆ VELOCITY_DIR_OFFSET

#define VELOCITY_DIR_OFFSET   6

Definition at line 65 of file piddlg.cpp.

◆ VELOCITY_DIR_SCALE

#define VELOCITY_DIR_SCALE   3

Definition at line 62 of file piddlg.cpp.

◆ VELOCITY_DIR_STICTIONDW

#define VELOCITY_DIR_STICTIONDW   8

Definition at line 67 of file piddlg.cpp.

◆ VELOCITY_DIR_STICTIONUP

#define VELOCITY_DIR_STICTIONUP   7

Definition at line 66 of file piddlg.cpp.

◆ VELOCITY_KD

#define VELOCITY_KD   1

Definition at line 49 of file piddlg.cpp.

◆ VELOCITY_KFF

#define VELOCITY_KFF   9

Definition at line 57 of file piddlg.cpp.

◆ VELOCITY_KI

#define VELOCITY_KI   2

Definition at line 50 of file piddlg.cpp.

◆ VELOCITY_KP

#define VELOCITY_KP   0

Definition at line 48 of file piddlg.cpp.

◆ VELOCITY_MAXINT

#define VELOCITY_MAXINT   5

Definition at line 53 of file piddlg.cpp.

◆ VELOCITY_MAXOUTPUT

#define VELOCITY_MAXOUTPUT   4

Definition at line 52 of file piddlg.cpp.

◆ VELOCITY_OFFSET

#define VELOCITY_OFFSET   6

Definition at line 54 of file piddlg.cpp.

◆ VELOCITY_SCALE

#define VELOCITY_SCALE   3

Definition at line 51 of file piddlg.cpp.

◆ VELOCITY_STICTIONDW

#define VELOCITY_STICTIONDW   8

Definition at line 56 of file piddlg.cpp.

◆ VELOCITY_STICTIONUP

#define VELOCITY_STICTIONUP   7

Definition at line 55 of file piddlg.cpp.

Function Documentation

◆ choosePIDType()

PidControlTypeEnum choosePIDType ( const PidControlTypeEnum &  base,
int  index 
)

Definition at line 657 of file piddlg.cpp.

◆ getCurrentTabIndexByName()

int getCurrentTabIndexByName ( QTabWidget *  tabWidget,
const QString &  name 
)

Definition at line 111 of file piddlg.cpp.

◆ prepareDescription()

std::string prepareDescription ( const PidWithExtraInfo &  myPid)

Definition at line 214 of file piddlg.cpp.