Intelligence program for the Tempest autonomous sailboat