|
10 | 10 | -- |
11 | 11 | -- |
12 | 12 | dofile('include.lua') |
| 13 | +require('pathfinder.pathfinder') |
13 | 14 |
|
14 | 15 | local logger = Logger('main', Logger.level.debug) |
15 | 16 | local parameters = {} |
16 | 17 | -- working width of the equipment |
17 | | -local workingWidth = AdjustableParameter(4.9, 'width', 'W', 'w', 0.1, 0, 100) |
| 18 | +local workingWidth = AdjustableParameter(10, 'width', 'W', 'w', 0.1, 0, 100) |
18 | 19 | table.insert(parameters, workingWidth) |
19 | | -local turningRadius = AdjustableParameter(15, 'radius', 'T', 't', 0.1, 0, 20) |
| 20 | +local turningRadius = AdjustableParameter(7, 'radius', 'T', 't', 0.1, 0, 20) |
20 | 21 | table.insert(parameters, turningRadius) |
21 | 22 | local fieldMargin = AdjustableParameter(0, 'margin', 'N', 'n', 0.1, -5, 5) |
22 | 23 | table.insert(parameters, fieldMargin) |
23 | 24 | -- number of headland passes around the field boundary |
24 | | -local nHeadlandPasses = AdjustableParameter(4, 'headlands', 'P', 'p', 1, 0, 100) |
| 25 | +local nHeadlandPasses = AdjustableParameter(1, 'headlands', 'P', 'p', 1, 0, 100) |
25 | 26 | table.insert(parameters, nHeadlandPasses) |
26 | | -local nHeadlandsWithRoundCorners = AdjustableParameter(0, 'headlands with round corners', 'R', 'r', 1, 0, 100) |
| 27 | +local nHeadlandsWithRoundCorners = AdjustableParameter(2, 'headlands with round corners', 'R', 'r', 1, 0, 100) |
27 | 28 | table.insert(parameters, nHeadlandsWithRoundCorners) |
28 | 29 | local headlandClockwise = ToggleParameter('headlands clockwise', true, 'c') |
29 | 30 | table.insert(parameters, headlandClockwise) |
@@ -82,7 +83,7 @@ local reverseCourse = ToggleParameter('reverse', false, 'v', true) |
82 | 83 | table.insert(parameters, reverseCourse) |
83 | 84 | local smallOverlaps = ToggleParameter('small overlaps', false, 'm', true) |
84 | 85 | table.insert(parameters, smallOverlaps) |
85 | | -local nVehicles = AdjustableParameter(1, 'number of vehicles', 'Y', 'y', 1, 1, 5) |
| 86 | +local nVehicles = AdjustableParameter(2, 'number of vehicles', 'Y', 'y', 1, 1, 5) |
86 | 87 | table.insert(parameters, nVehicles) |
87 | 88 | local useSameTurnWidth = ToggleParameter('use same turn width', false, 'u') |
88 | 89 | table.insert(parameters, useSameTurnWidth) |
@@ -811,3 +812,4 @@ function love.mousemoved(x, y, dx, dy) |
811 | 812 | mouseTransform:setTransformation(x + 20, y + 20) |
812 | 813 | currentVertices = findCurrentVertices(x, y) |
813 | 814 | end |
| 815 | + |
0 commit comments