rearrange fields and export the read-only variable `sum`
[liba.git] / java / test / _pid.java
blobfd04f5eefb7a7de5375491d400f68655889e8c95
1 import liba.pid;
3 class _pid {
4 public static void main(String[] args) {
5 pid obj = new pid();
6 obj.kpid(10, 0.1, 1);
7 System.out.print(obj.zero().pos(1, 0) + " ");
8 System.out.print(obj.zero().inc(1, 0) + " ");
9 System.out.println(obj.zero().run(1, 0));
10 obj.kp(obj.kp());
11 obj.ki(obj.ki());
12 obj.kd(obj.kd());
13 obj.summax(obj.summax());
14 obj.summin(obj.summin());
15 obj.sum();
16 obj.outmax(obj.outmax());
17 obj.outmin(obj.outmin());
18 obj.out();
19 obj.fdb();
20 obj.err();