Package behaviors

Class GyroBeeping

java.lang.Object
behaviors.GyroBeeping
All Implemented Interfaces:
lejos.robotics.subsumption.Behavior

public class GyroBeeping extends Object implements lejos.robotics.subsumption.Behavior
Checks whether or not the robot is out of alignment, if it doesbeeps at the user and exits.
Since:
2023
  • Constructor Summary

    Constructors
    Constructor
    Description
    Empty constructor for GyroBeeping behavior.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Beeps at the user, displays robot is not aligned on the screen and then should exit the program.
    void
    Empty surpress for GyroBeeping.
    boolean
    Takes control if the condition of Marker.markerBeepGyro() is met for poor alignment.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GyroBeeping

      public GyroBeeping()
      Empty constructor for GyroBeeping behavior.
  • Method Details

    • action

      public void action()
      Beeps at the user, displays robot is not aligned on the screen and then should exit the program.
      Specified by:
      action in interface lejos.robotics.subsumption.Behavior
    • suppress

      public void suppress()
      Empty surpress for GyroBeeping.
      Specified by:
      suppress in interface lejos.robotics.subsumption.Behavior
    • takeControl

      public boolean takeControl()
      Takes control if the condition of Marker.markerBeepGyro() is met for poor alignment.
      Specified by:
      takeControl in interface lejos.robotics.subsumption.Behavior
      Returns:
      boolean