function [CrsnLat, CrsnLon, CrsnDates] = GetCarsonLocation()
    % Initialize output variables
    % Grab Carson lat/lon from ODSS. Pulls in last 5 points. Function only
    % outputs last point. Ben Werb 5/28/24
    CrsnLat = NaN;
    CrsnLon = NaN;
    CrsnDates = {};

    try
        % Define the URL
        url = 'https://odss.mbari.org/odss/tracks?platformID=54065b5560d0e168c88d4085&returnSRS=4326&lastNumberOfFixes=5&returnFormat=html';
        % Read the HTML content from the website
        html = webread(url);
        % Use the htmlTree class to parse the HTML content
        tree = htmlTree(html);
        % Extract the table rows
        rows = findElement(tree, 'tr');
        % Initialize cell arrays to store the extracted data
        dates = {};
        lats = {};
        lons = {};
        % Loop through the rows to extract the date, lat, and lon
        for i = 2:length(rows)  % Start from 2 to skip the header row
            % Extract cells from the row
            cells = findElement(rows(i), 'td');
            % Extract date, lat, and lon
            date = extractHTMLText(cells(1));
            lon = extractHTMLText(cells(2));
            lat = extractHTMLText(cells(3));
            % Store the extracted data in cell arrays
            dates{end+1} = date;
            lats{end+1} = lat;
            lons{end+1} = lon;
        end
        % Assign output values
        CrsnDates = dates;
        CrsnLat = str2double(lats{1});
        CrsnLon = str2double(lons{1});
    catch
        % If an error occurs, display a message
        disp('Error: Unable to retrieve data from the website.');
    end
end
