// ---------------------------------------------------------
// Class: VehicleCoward
// ---------------------------------------------------------
// Coward vehicles have the sensors wired directly to the
// wheels on the same side.
// ---------------------------------------------------------

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

class VehicleCoward extends Vehicle {

  // Constructor
  // -----------------------------
  VehicleCoward(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(sL.getSense(sfield,false));
    setVelocityR(sR.getSense(sfield,false));
  }

  void doTortLogic(SensoryField tfield, SensoryField sfield) {
  }


  float getSpeedRat(){

    return (float)1.0  ;
  }
}

