beagleboard / beagleboard/librobotcontrol

Encoder 0 returny only -1, 0 or 1

Open
#177 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
212
Forks
167
PR merge metrics
No merged PRs in 30d

Description

Hello,
**Describe the bug**
Encoder E1 do not work propertly, return only values -1, 0 or 1. Tested using rc_test_encoders_eqep software. If I switch encoder output to the another encoder input in BBB (E2, E3 or E4) everything works ok.

**To Reproduce**
1. Install system using image bone-ubuntu-18.04.4-ros-iot-armhf-2020-03-16-6gb.img.xz from (https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Debian_Buster_IOT_Snapshot)
This image contains also ROS Melodic and preinstaled librobotcontrol package.
2. Connect motor encoder to E1 BBB encoder input.
3. Run rc_test_encoders_eqep
4. Move maunaly shaft of motor and see program results on screen for E1 encoder
5. Encoder E1 do not work propertly, return only values -1, 0 or 1 (depend on which direction of rotation of shaft motor)

**Expected behavior**
If I switch to the another encoder input (E2, E3 or E4) everything works ok so E1 should also work in the same way.
If I use another image for BBB (ex. AM3358 Debian 10.3 2020-04-06 4GB SD IoT - from official site) E1 works ok - so the problem is in software not hardware. The library Adafruit Beaglebone IO also work in the same way (E1 work incorrectly, rest encodes E2, E3, E4 work ok)

**Platform information**
Command lsb_release -a return:
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

rc_test_drivers
Kernel: 4.19.94-ti-rt-r37
BeagleBoard.org ROS Image 2020-03-16
Debian: buster/sid

PASSED: gpio 0
PASSED: gpio 1
PASSED: gpio 2
PASSED: gpio 3
PASSED: pwm0
PASSED: pwm1
PASSED: pwm2
PASSED: eqep0
PASSED: eqep1
PASSED: eqep2
PASSED: pru-rproc
PASSED: uart1
PASSED: uart2
PASSED: uart4
PASSED: uart5
PASSED: i2c1
PASSED: i2c2
PASSED: spi
PASSED: LED
PASSED: ADC iio

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.