Code covered by the BSD License  

Highlights from
MATLAB Support Package for Finch Robot

image thumbnail

MATLAB Support Package for Finch Robot

by

 

20 Jan 2012 (Updated )

MATLAB connectivity code to a Finch Robot

AutonomousRobot1.m
%% Creating Autonomous Robot

% Create connection to hardware
x=Finch();

% Tell the Finch to move forward
x.setWheelVelocities(100,100);

% Drive for 2 seconds before looking for obstacle
x.sleep(2000);

% Wait until it sees an obstacle
while(~any(x.isObstacle));end;

% Stop moving forward
x.stopWheels

% Quit connection
x.quit();

Contact us