// ---------------------------------------------------------
// Class: VehicleExplorer
// ---------------------------------------------------------
// Explorer vehicles have the sensors wired through an
// inverter to the wheels on the opposite side.
// ---------------------------------------------------------

import processing.*;
import processing.core.*;

class VehicleExplorer extends Vehicle {
  
  // Constructor
  // -----------------------------
  VehicleExplorer(PApplet pa, float x, float y, float angle, float axle,  PImage theimage) {
    super(pa,x,y,angle,axle, theimage);
  }
  
  // Sensing logic, i.e. how the sensors are connected to the wheels
  // -----------------------------
  void doSenseLogic(SensoryField sfield, SensoryField ffield) {
    setVelocityL(sR.getSense(sfield,true));
    setVelocityR(sL.getSense(sfield,true));
  }
  
  void doTortLogic(SensoryField tfield, SensoryField sfield) {}


  float getSpeedRat(){
  
return (float)1.0  ;
}}
