Skip to content

Commit 98b917f

Browse files
committed
Delete Dterm setpoint and add Feedforward
1 parent 3af9362 commit 98b917f

File tree

15 files changed

+109
-59
lines changed

15 files changed

+109
-59
lines changed

src/SCRIPTS/BF/HORUS/horuspre.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
PageFiles =
22
{
3-
"pids.lua",
3+
"pids1.lua",
4+
"pids2.lua",
45
"rates1.lua",
56
"rates2.lua",
67
"filters.lua",

src/SCRIPTS/BF/HORUS/pids.lua renamed to src/SCRIPTS/BF/HORUS/pids1.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
return {
33
read = 112, -- MSP_PID
44
write = 202, -- MSP_SET_PID
5-
title = "PIDs",
5+
title = "PIDs (1/2)",
66
reboot = false,
77
eepromWrite = true,
88
minBytes = 8,
@@ -27,4 +27,4 @@ return {
2727
{ x = 340, y = 100, min = 0, max = 200, vals = { 3 }, to = MIDSIZE },
2828
{ x = 340, y = 150, min = 0, max = 200, vals = { 6 }, to = MIDSIZE },
2929
},
30-
}
30+
}

src/SCRIPTS/BF/HORUS/pids2.lua

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
return {
3+
read = 94, -- MSP_PID_ADVANCED
4+
write = 95, -- MSP_SET_PID_ADVANCED
5+
title = "PIDs (2/2)",
6+
reboot = false,
7+
eepromWrite = true,
8+
minBytes = 38,
9+
text = {
10+
{ t = "Feed", x = 135, y = 52 },
11+
{ t = "forward", x = 120, y = 70 },
12+
{ t = "Transition", x = 250, y = 150 },
13+
{ t = "ROLL", x = 28, y = 100 },
14+
{ t = "PITCH", x = 28, y = 150 },
15+
{ t = "YAW", x = 28, y = 200 },
16+
},
17+
fields = {
18+
-- ROLL FF
19+
{ x = 140, y = 100, min = 0, max = 200, vals = { 33, 34 }, to = MIDSIZE },
20+
-- PITCH FF
21+
{ x = 140, y = 150, min = 0, max = 200, vals = { 35, 36 }, to = MIDSIZE },
22+
-- YAW FF
23+
{ x = 140, y = 200, min = 0, max = 200, vals = { 37, 38 }, to = MIDSIZE },
24+
-- TRANSITION
25+
{ x = 350, y = 150, min = 0, max = 100, vals = { 9 }, to = MIDSIZE, scale = 100 },
26+
},
27+
}

src/SCRIPTS/BF/HORUS/rates2.lua

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,16 @@ return {
88
minBytes = 23,
99
outputBytes = 23,
1010
text = {
11-
{ t = "Anti-Gravity", x = 28, y = 62 },
12-
{ t = "Gain", x = 38, y = 100 },
13-
{ t = "Threshold", x = 38, y = 142 },
14-
{ t = "Dterm Setpoint", x = 232, y = 62 },
15-
{ t = "Weight", x = 242, y = 100 },
16-
{ t = "Transition", x = 242, y = 142 },
17-
{ t = "VBAT Compensation", x = 28, y = 200 }
11+
{ t = "Anti-Gravity Gain", x = 45, y = 68 },
12+
{ t = "Anti-Gravity Threshold", x = 45, y = 110 },
13+
{ t = "VBAT Compensation", x = 45, y = 155 }
1814
},
1915
fields = {
2016
-- GAIN
21-
{ x = 144, y = 100, min = 1000, max = 30000, vals = { 22, 23 }, to = MIDSIZE, scale = 1000, mult = 100 },
22-
-- THRESHOLD
23-
{ x = 144, y = 142, min = 20, max = 1000, vals = { 20, 21 }, to = MIDSIZE },
24-
-- WEIGHT
25-
{ x = 348, y = 100, min = 0, max = 254, vals = { 10 }, to = MIDSIZE, scale = 100 },
26-
-- TRANSITION
27-
{ x = 348, y = 142, min = 0, max = 100, vals = { 9 }, to = MIDSIZE, scale = 100 },
28-
-- VBAT COMPENSATION
29-
{ x = 236, y = 200, min = 0, max = 1, vals = { 8 }, to = MIDSIZE, table = { [0]="OFF", "ON" } },
17+
{ x = 300, y = 68, min = 1000, max = 30000, vals = { 22, 23 }, to = MIDSIZE, scale = 1000, mult = 100 },
18+
-- THRESHOLD
19+
{ x = 300, y = 110, min = 20, max = 1000, vals = { 20, 21 }, to = MIDSIZE },
20+
-- VBAT COMPENSATION
21+
{ x = 300, y = 155, min = 0, max = 1, vals = { 8 }, to = MIDSIZE, table = { [0]="OFF", "ON" } },
3022
}
3123
}

src/SCRIPTS/BF/X7/pids.lua renamed to src/SCRIPTS/BF/X7/pids1.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
return {
33
read = 112, -- MSP_PID
44
write = 202, -- MSP_SET_PID
5-
title = "PIDs",
5+
title = "PIDs (1/2)",
66
reboot = false,
77
eepromWrite = true,
88
minBytes = 8,

src/SCRIPTS/BF/X7/pids2.lua

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
return {
3+
read = 94, -- MSP_PID_ADVANCED
4+
write = 95, -- MSP_SET_PID_ADVANCED
5+
title = "PIDs (2/2)",
6+
reboot = false,
7+
eepromWrite = true,
8+
minBytes = 38,
9+
text = {
10+
{ t = "Feed", x = 45, y = 11, to=SMLSIZE },
11+
{ t = "forward", x = 37, y = 18, to=SMLSIZE },
12+
{ t = "Transn", x = 86, y = 31, to=SMLSIZE },
13+
{ t = "ROLL", x = 10, y = 26, to=SMLSIZE },
14+
{ t = "PITCH", x = 10, y = 36, to=SMLSIZE },
15+
{ t = "YAW", x = 10, y = 46, to=SMLSIZE },
16+
},
17+
fields = {
18+
-- ROLL FF
19+
{ x = 48, y = 26, min = 0, max = 200, vals = { 33, 34 }, to=SMLSIZE },
20+
-- PITCH FF
21+
{ x = 48, y = 36, min = 0, max = 200, vals = { 35, 36 }, to=SMLSIZE },
22+
-- YAW FF
23+
{ x = 48, y = 46, min = 0, max = 200, vals = { 37, 38 }, to=SMLSIZE },
24+
-- TRANSITION
25+
{ x = 94, y = 40, min = 0, max = 100, vals = { 9 }, to=SMLSIZE, scale = 100 },
26+
},
27+
}

src/SCRIPTS/BF/X7/rates1.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
return {
22
read = 111, -- MSP_RC_TUNING
33
write = 204, -- MSP_SET_RC_TUNING
4-
title = "Rates (1/4)",
4+
title = "Rates (1/3)",
55
reboot = false,
66
eepromWrite = true,
77
minBytes = 12,

src/SCRIPTS/BF/X7/rates2.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
return {
22
read = 111, -- MSP_RC_TUNING
33
write = 204, -- MSP_SET_RC_TUNING
4-
title = "Rates (2/4)",
4+
title = "Rates (2/3)",
55
reboot = false,
66
eepromWrite = true,
77
minBytes = 12,

src/SCRIPTS/BF/X7/rates3.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
return {
33
read = 94, -- MSP_PID_ADVANCED
44
write = 95, -- MSP_SET_PID_ADVANCED
5-
title = "Rates (3/4)",
5+
title = "Rates (3/3)",
66
reboot = false,
77
eepromWrite = true,
88
minBytes = 23,

src/SCRIPTS/BF/X7/rates4.lua

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)