// ---------------------------------------------------------
// Class: VehicleLover
// ---------------------------------------------------------
// Lover vehicles have the sensors wired through an
// inverter to the wheels on the same side.
// ---------------------------------------------------------

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

class VehicleLover extends Vehicle {
  
  // Constructor
  // -----------------------------
  VehicleLover(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,true));
    setVelocityR(sR.getSense(sfield,true));
  }
  
  void doTortLogic(SensoryField tfield, SensoryField sfield) {}

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