You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val maxPitchAngle by setting("Max Pitch Angle", 45.0, 0.0..90.0, 1.0, unit ="°", description ="Maximum pitch angle")
46
46
val disableOnFirework by setting("Disable On Firework", false, description ="Disables the module when a firework is used")
47
47
48
-
val targetAltitude by setting("Target Altitude", 120, 0..256, 10, unit =" blocks", description ="Adjusts pitch to control altitude")
49
-
{ controlValue ==Mode.Altitude }
48
+
val targetAltitude by setting("Target Altitude", 120, 0..256, 10, unit =" blocks", description ="Adjusts pitch to control altitude") { controlValue ==Mode.Altitude }
50
49
val altitudeControllerP by setting("Altitude Control P", 1.2, 0.0..2.0, 0.05).group(Group.AltitudeControl)
51
50
val altitudeControllerD by setting("Altitude Control D", 0.85, 0.0..1.0, 0.05).group(Group.AltitudeControl)
52
51
val altitudeControllerI by setting("Altitude Control I", 0.04, 0.0..1.0, 0.05).group(Group.AltitudeControl)
53
52
val altitudeControllerConst by setting("Altitude Control Const", 0.0, 0.0..10.0, 0.1).group(Group.AltitudeControl)
54
53
55
-
val targetSpeed by setting("Target Speed", 20.0, 0.1..50.0, 0.1, unit =" m/s", description ="Adjusts pitch to control speed")
56
-
{ controlValue ==Mode.Speed }
57
-
val horizontalSpeed by setting("Horizontal Speed", false, description ="Uses horizontal speed instead of total speed for speed control")
58
-
{ controlValue ==Mode.Speed }
54
+
val targetSpeed by setting("Target Speed", 20.0, 0.1..50.0, 0.1, unit =" m/s", description ="Adjusts pitch to control speed") { controlValue ==Mode.Speed }
55
+
val horizontalSpeed by setting("Horizontal Speed", false, description ="Uses horizontal speed instead of total speed for speed control") { controlValue ==Mode.Speed }
59
56
val speedControllerP by setting("Speed Control P", 6.75, 0.0..10.0, 0.05).group(Group.SpeedControl)
60
57
val speedControllerD by setting("Speed Control D", 4.5, 0.0..5.0, 0.05).group(Group.SpeedControl)
61
58
val speedControllerI by setting("Speed Control I", 0.3, 0.0..1.0, 0.05).group(Group.SpeedControl)
62
59
63
60
val useFireworkOnHeight by setting("Use Firework On Height", false, "Use fireworks when below a certain height")
64
-
val minHeight by setting("Min Height", 50, 0..256, 10, unit =" blocks", description ="Minimum height to use firework")
65
-
{ useFireworkOnHeight }
61
+
val minHeight by setting("Min Height", 50, 0..256, 10, unit =" blocks", description ="Minimum height to use firework") { useFireworkOnHeight }
66
62
67
63
val useFireworkOnSpeed by setting("Use Firework On Speed", false, "Use fireworks based on speed")
68
-
val minSpeed by setting("Min Speed", 20.0, 0.1..50.0, 0.1, unit =" m/s", description ="Minimum speed to use fireworks")
69
-
{ useFireworkOnSpeed }
64
+
val minSpeed by setting("Min Speed", 20.0, 0.1..50.0, 0.1, unit =" m/s", description ="Minimum speed to use fireworks") { useFireworkOnSpeed }
val pitch40AngleChangeRate by setting("Angle Change Rate", 0.5f, 0.1f..5f, 0.01f, description ="Rate at which to increase pitch while in the fly up curve")
val pitch40UseFireworkOnUpTrajectory by setting("Use Firework On Up Trajectory", false, "Use fireworks when converting speed to altitude in the Pitch 40 maneuver")
val logHeightGain by setting("Log Height Gain", false, "Logs the height gained each cycle to the chat") { usePitch40OnHeight }.group(Group.Pitch40Control)
72
+
val minHeightForPitch40 by setting("Min Height For Pitch 40", 120, 0..256, 10, unit =" blocks", description ="Minimum height to use Pitch 40") { usePitch40OnHeight }.group(Group.Pitch40Control)
73
+
val pitch40ExitHeight by setting("Exit height", 190, 0..256, 10, unit =" blocks", description ="Height to exit Pitch 40 mode") { usePitch40OnHeight }.group(Group.Pitch40Control)
74
+
val pitch40UpStartAngle by setting("Up Start Angle", -49f, -90f..0f, .5f, description ="Start angle when going back up. negative pitch = looking up") { usePitch40OnHeight }.group(Group.Pitch40Control)
75
+
val pitch40DownAngle by setting("Down Angle", 33f, 0f..90f, .5f, description ="Angle to dive down at to gain speed") { usePitch40OnHeight }.group(Group.Pitch40Control)
76
+
val pitch40AngleChangeRate by setting("Angle Change Rate", 0.5f, 0.1f..5f, 0.01f, description ="Rate at which to increase pitch while in the fly up curve") { usePitch40OnHeight }.group(Group.Pitch40Control)
77
+
val pitch40SpeedThreshold by setting("Speed Threshold", 41f, 10f..100f, .5f, description ="Speed at which to start pitching up") { usePitch40OnHeight }.group(Group.Pitch40Control)
78
+
val pitch40UseFireworkOnUpTrajectory by setting("Use Firework On Up Trajectory", false, "Use fireworks when converting speed to altitude in the Pitch 40 maneuver") { usePitch40OnHeight }.group(Group.Pitch40Control)
0 commit comments