Appendix a – Pioneer Module Mobile User Manual

Page 24

Advertising
background image

20

7.

Appendix A

Example C Program Demonstrates Gripper
and Speaker Functions

/* ################################################################

* gripper.c --- Saphira-based functions for controlling the gripper and speaker

*#################################################################

** Copyright 1997 by Kurt Konolige

**

** The author hereby grants to SRI permission to use this software.

** The author also grants to SRI permission to distribute this software

** to schools for non-commercial educational use only.

**

** The author hereby grants to other individuals or organizations

** permission to use this software for non-commercial

** educational use only. This software may not be distributed to others

** except by SRI, under the conditions above.

**

** Other than these cases, no part of this software may be used or

** distributed without written permission of the author.

**

** Neither the author nor SRI make any representations about the

** suitability of this software for any purpose. It is provided

** "as is" without express or implied warranty.

**

** Kurt Konolige

** Senior Computer Scientist

** SRI International

** 333 Ravenswood Avenue

** Menlo Park, CA 94025

** E-mail: [email protected]

**

**/

#include "saphira.h"

/*

* New comm function --- writes two bytes as argument

*/

(continued)

Advertising