@@ -16,29 +16,30 @@ local inc = { x = function(val) x = x + val return x end, y = function(val) y =
1616local labels = {}
1717local fields = {}
1818
19- labels [# labels + 1 ] = { t = " Simplified Pid" , x = x , y = inc .y (lineSpacing ) }
20- fields [# fields + 1 ] = { t = " Pid Tuning" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 0 , max = 2 , vals = { 1 }, table = { [0 ] = " OFF" , " RP" , " RPY" } }
21- fields [# fields + 1 ] = { t = " Master Mult" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 50 , max = 200 , vals = { 2 }, scale = 100 , mult = 5 }
22- fields [# fields + 1 ] = { t = " R/P Ratio" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 50 , max = 200 , vals = { 3 }, scale = 100 , mult = 5 }
23- fields [# fields + 1 ] = { t = " I Gain" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 50 , max = 200 , vals = { 4 }, scale = 100 , mult = 5 }
24- fields [# fields + 1 ] = { t = " P/D Ratio" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 50 , max = 200 , vals = { 5 }, scale = 100 , mult = 5 }
25- fields [# fields + 1 ] = { t = " PD Gain" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 50 , max = 200 , vals = { 6 }, scale = 100 , mult = 5 }
26- fields [# fields + 1 ] = { t = " Dmin Ratio" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 50 , max = 200 , vals = { 7 }, scale = 100 , mult = 5 }
27- fields [# fields + 1 ] = { t = " FF Gain" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 50 , max = 200 , vals = { 8 }, scale = 100 , mult = 5 }
19+ labels [# labels + 1 ] = { t = " Simplified PID" , x = x , y = inc .y (lineSpacing ) }
20+ fields [# fields + 1 ] = { t = " PID Tuning" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 0 , max = 2 , vals = { 1 }, table = { [0 ] = " OFF" , " RP" , " RPY" } }
21+ fields [# fields + 1 ] = { t = " Master Mult" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 0 , max = 200 , vals = { 2 }, scale = 100 , mult = 5 }
22+ fields [# fields + 1 ] = { t = " PI Gain" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 0 , max = 200 , vals = { 6 }, scale = 100 , mult = 5 }
23+ fields [# fields + 1 ] = { t = " D Gain" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 0 , max = 200 , vals = { 5 }, scale = 100 , mult = 5 }
24+ fields [# fields + 1 ] = { t = " FF Gain" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 0 , max = 200 , vals = { 8 }, scale = 100 , mult = 5 }
25+ fields [# fields + 1 ] = { t = " I Gain" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 0 , max = 200 , vals = { 4 }, scale = 100 , mult = 5 }
26+ fields [# fields + 1 ] = { t = " D Max Gain" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 0 , max = 200 , vals = { 7 }, scale = 100 , mult = 5 }
27+ fields [# fields + 1 ] = { t = " Pitch D Gain" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 0 , max = 200 , vals = { 3 }, scale = 100 , mult = 5 }
28+ fields [# fields + 1 ] = { t = " Pitch PIF Gain" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 0 , max = 200 , vals = { 9 }, scale = 100 , mult = 5 }
2829
2930labels [# labels + 1 ] = { t = " Simplified Filter" , x = x , y = inc .y (lineSpacing ) }
30- fields [# fields + 1 ] = { t = " Gyro Tuning" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 0 , max = 1 , vals = { 9 }, table = { [0 ] = " OFF" , " ON" } }
31- fields [# fields + 1 ] = { t = " Gyro Mult" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 50 , max = 200 , vals = { 10 }, scale = 100 , mult = 5 }
32- fields [# fields + 1 ] = { t = " D Tuning" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 0 , max = 1 , vals = { 11 }, table = { [0 ] = " OFF" , " ON" } }
33- fields [# fields + 1 ] = { t = " D Mult" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 50 , max = 200 , vals = { 12 }, scale = 100 , mult = 5 }
31+ fields [# fields + 1 ] = { t = " Gyro Tuning" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 0 , max = 1 , vals = { 12 }, table = { [0 ] = " OFF" , " ON" } }
32+ fields [# fields + 1 ] = { t = " Gyro Mult" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 0 , max = 200 , vals = { 13 }, scale = 100 , mult = 5 }
33+ fields [# fields + 1 ] = { t = " D Tuning" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 0 , max = 1 , vals = { 10 }, table = { [0 ] = " OFF" , " ON" } }
34+ fields [# fields + 1 ] = { t = " D Mult" , x = x + indent , y = inc .y (lineSpacing ), sp = x + sp , min = 0 , max = 200 , vals = { 11 }, scale = 100 , mult = 5 }
3435
3536return {
3637 read = 140 , -- MSP_SIMPLIFIED_TUNING
3738 write = 141 , -- MSP_SET_SIMPLIFIED_TUNING
3839 title = " Simplified Tuning" ,
3940 reboot = false ,
4041 eepromWrite = true ,
41- minBytes = 12 ,
42+ minBytes = 13 ,
4243 labels = labels ,
4344 fields = fields ,
4445}
0 commit comments