Skip to content

GoPiGo3 C++ API Fixes for https://github.com/DexterInd/GoPiGo3/issues/369, plus README and clean utility#371

Open
slowrunner wants to merge 4 commits into
DexterInd:mainfrom
slowrunner:main
Open

GoPiGo3 C++ API Fixes for https://github.com/DexterInd/GoPiGo3/issues/369, plus README and clean utility#371
slowrunner wants to merge 4 commits into
DexterInd:mainfrom
slowrunner:main

Conversation

@slowrunner
Copy link
Copy Markdown
Contributor

  1. Changed C++ GoPiGo3 API GoPiGo3.get_motor_encoder() division to properly return signed int32.

  2. Changed C++ GoPiGo3 class variable GoPiGo3.MOTOR_TICKS_PER_DEGREE from int to float
    (for 16 tick motors value is 5.3333 ticks per degree not integer 5)

  3. Changed in header file definitions to static to prevent duplication when building per documentation in the Examples:

 *  Example compile command:
 *    g++ -o info info.cpp ../GoPiGo3.cpp -I..
  1. Added README to help users know prereq (cmake) and how to build,
    Added clean.sh utility to remove cmake and make products

… int as signed int variable

(Causes encoder crossing 0 backward to become 8xxxxxxxxxxx instead of -1)
…ared as integer - needs to be float for 16 tick motors

(5.3333 ticks per degree)
…s duplicates

when user follows the compile instructions for an Example program
or a new program of the user's creation: (All should be "static")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant