Skip to main content

Robotiq::FaultStatus Class

The FAULT STATUS byte (byte 2 of the status block).

Splits into the gripper's own fault (gFLT, low nibble) and the optional Robotiq controller's fault (kFLT, high nibble).

Example
  Robotiq::FaultStatus fault = gripper.getStatus().faultStatus;
  {
  }

Included Headers

#include <fault_status.hpp>

Members

Public Operators
booloperator== (FaultStatus other) const
booloperator!= (FaultStatus other) const
Public Member Functions
GripperFaultgripperFault () const
ControllerFaultcontrollerFault () const
uint8_traw () const
Public Static Functions
static constexpr FaultStatusfromRaw (uint8_t bits)

Synthesize a byte the gripper would have sent. More...

Public Operators

operator!=()

bool Robotiq::FaultStatus::operator!=(FaultStatusother
)
inline
Returns

true if the fault bytes differ.

operator==()

bool Robotiq::FaultStatus::operator==(FaultStatusother
)
inline
Returns

true if both fault bytes are identical.

Public Member Functions

controllerFault()

ControllerFault Robotiq::FaultStatus::controllerFault ()
inline
Returns

kFLT — the optional Robotiq controller's fault code.

gripperFault()

GripperFault Robotiq::FaultStatus::gripperFault ()
inline
Returns

gFLT — the gripper's own fault code.

raw()

uint8_t Robotiq::FaultStatus::raw ()
inline
Returns

The raw FAULT STATUS byte.

Public Static Functions

fromRaw()

constexpr FaultStatus Robotiq::FaultStatus::fromRaw(uint8_tbits
)
inline constexpr static

Synthesize a byte the gripper would have sent.

For simulators and for exercising fault handling without hardware.

Parameters
bits

The raw FAULT STATUS byte.

Returns

A FaultStatus wrapping bits.


The documentation for this class was generated from the following file:

  • fault_status.hpp

Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.