Skip to content

Commit 892e6cc

Browse files
cps13claude
andcommitted
Fix solar-power-app: add helpers to path so geocoding works
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 33c622d commit 892e6cc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Examples/solar-power-app/SolarPanelApp.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
IsPanning logical = false
2020
PanStart = []
2121

22-
Latitude double = 42.3010
23-
Longitude double = -71.3744
22+
Latitude double = 42.3677
23+
Longitude double = -71.0711
2424
Panels = {} % ROI rectangle handles
2525
PanelTilts = [] % per-panel tilt angles (degrees)
2626
SunEdges = {} % line handles showing sun-facing edge
@@ -35,6 +35,7 @@
3535

3636
methods
3737
function app = SolarPanelApp()
38+
addpath(fullfile(fileparts(mfilename('fullpath')), 'helpers'));
3839
app.buildUI();
3940
app.loadMap();
4041
end
@@ -61,7 +62,7 @@ function buildUI(app)
6162
topBar.BackgroundColor = [0.14 0.14 0.16];
6263

6364
app.AddressField = uieditfield(topBar, 'text', ...
64-
'Value', '1 Lakeside Campus Drive, Natick, MA', ...
65+
'Value', 'Museum of Science, 1 Science Pk, Boston, MA 02114', ...
6566
'Placeholder', 'Enter address...');
6667
app.LoadButton = uibutton(topBar, 'Text', 'Load', ...
6768
'ButtonPushedFcn', @(~,~) app.safeCall(@app.loadAddress), ...

0 commit comments

Comments
 (0)