PX4 Firmware
PX4 Autopilot Software http://px4.io
RoboClaw.cpp File Reference

RoboClaw Motor Driver. More...

#include "RoboClaw.hpp"
#include <poll.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <fcntl.h>
#include <termios.h>
#include <systemlib/err.h>
#include <systemlib/mavlink_log.h>
#include <arch/board/board.h>
#include <uORB/Publication.hpp>
#include <uORB/topics/debug_key_value.h>
#include <drivers/drv_hrt.h>
Include dependency graph for RoboClaw.cpp:

Go to the source code of this file.

Macros

#define TIMEOUT_US   10500
 
#define TIMEOUT_RETRIES   1
 
#define STOP_RETRIES   10
 
#define ENCODER_MESSAGE_SIZE   10
 
#define ENCODER_SPEED_MESSAGE_SIZE   7
 

Detailed Description

Macro Definition Documentation

◆ ENCODER_MESSAGE_SIZE

#define ENCODER_MESSAGE_SIZE   10

Definition at line 73 of file RoboClaw.cpp.

Referenced by RoboClaw::readEncoder().

◆ ENCODER_SPEED_MESSAGE_SIZE

#define ENCODER_SPEED_MESSAGE_SIZE   7

Definition at line 76 of file RoboClaw.cpp.

Referenced by RoboClaw::readEncoder().

◆ STOP_RETRIES

#define STOP_RETRIES   10

Definition at line 70 of file RoboClaw.cpp.

Referenced by RoboClaw::taskMain().

◆ TIMEOUT_RETRIES

#define TIMEOUT_RETRIES   1

Definition at line 66 of file RoboClaw.cpp.

Referenced by RoboClaw::readEncoder().

◆ TIMEOUT_US

#define TIMEOUT_US   10500

Definition at line 63 of file RoboClaw.cpp.

Referenced by RoboClaw::_transaction(), RoboClaw::RoboClaw(), and RoboClaw::taskMain().