/* Common virtual sensors and actuators for use with BASAL */
/* Copyright 1998, Johuco Ltd., All Rights Reserved */
/* Written by Jon Connell, 2/98, Version 1.3 beta   */

/* ====================================================================== */

/* ifndef needed to prevent loops in pseudo-library */

#ifndef _VIRTUAL_


/* ---------------------------------------------------------------------- */

/* virtual actuator control variables (write only) */

int drive_cmd;
int turn_cmd;


/* virtual sensor variables (read only) */

int wleft_max;
int wright_max;
int nleft_max;
int nright_max;
int top_avg;
int front_avg;
int pass_stretch;


/* ---------------------------------------------------------------------- */

/* public function prototypes */

void init_virtual (void);
int next_virtual (void);

void v_actuator_pol (void);
void v_sensor_pol (void);


/* ---------------------------------------------------------------------- */

/* This should really be a library. But since the freeware ICC11  */
/* compiler does not support this, the .c file is included here.  */

#define _VIRTUAL_
#include <virtual.c>

#endif


/* ==================================================================== */



