From ff2ee8b860797136a4cd07a83d5e907256ea37ee Mon Sep 17 00:00:00 2001 From: joshua-8 Date: Sun, 2 Jun 2024 06:57:45 +0000 Subject: [PATCH] deploy: 23cef1622864e8e702abd88f5eae862d893afc08 --- byte-sized-encoder-decoder_8h_source.html | 10 +++++----- class_byte_sized_encoder_decoder-members.html | 4 ++-- class_byte_sized_encoder_decoder.html | 12 ++++++------ functions.html | 3 ++- functions_vars.html | 2 +- search/all_5.js | 3 ++- search/variables_2.js | 2 +- 7 files changed, 19 insertions(+), 17 deletions(-) diff --git a/byte-sized-encoder-decoder_8h_source.html b/byte-sized-encoder-decoder_8h_source.html index a3f5b8b..330db5a 100644 --- a/byte-sized-encoder-decoder_8h_source.html +++ b/byte-sized-encoder-decoder_8h_source.html @@ -98,7 +98,7 @@
41 int16_t encoderVelocity[8];
45 int16_t encoderSlowestInterval[8];
49 int16_t encoderEnoughCounts[8];
-
53 boolean isVelNew[8];
+
53 boolean isVelNewVal[8];
57 inline void write(uint8_t data)
58 {
@@ -161,8 +161,8 @@
130 if (n > 8 || n < 1) {
131 return false;
132 }
-
133 boolean temp = isVelNew[n - 1];
-
134 isVelNew[n - 1] = false;
+
133 boolean temp = isVelNewVal[n - 1];
+
134 isVelNewVal[n - 1] = false;
135 return temp;
136 }
@@ -209,7 +209,7 @@
184 if (hundredMicrosSinceLastRead > (int32_t)(encoderSlowestInterval[i] * 10) || abs(encoderCount[i] - lastEncoderCount[i]) > encoderEnoughCounts[i]) {
185 lastReadMicros[i] = mic;
186 encoderVelocity[i] = (int32_t)10000 * (encoderCount[i] - lastEncoderCount[i]) / hundredMicrosSinceLastRead;
-
187 isVelNew[i] = true;
+
187 isVelNewVal[i] = true;
188 }
189 }
190 }
@@ -293,6 +293,7 @@
void run()
reads the encoder positions from the board
Definition byte-sized-encoder-decoder.h:155
uint8_t whichEncodersMask
bit mask of which encoders to read from
Definition byte-sized-encoder-decoder.h:33
uint8_t address
I2C address of the Byte Sized Encoder Decoder board (as selected by the jumpers)
Definition byte-sized-encoder-decoder.h:13
+
boolean isVelNewVal[8]
array of 8 booleans representing whether the velocity was just calculated
Definition byte-sized-encoder-decoder.h:53
void setEncoderEnoughCounts(uint8_t n, int16_t counts)
set the value of encoderEnoughCounts
Definition byte-sized-encoder-decoder.h:108
int16_t getEncoderVelocity(uint8_t n, boolean read=false)
gets the velocity of an encoder
Definition byte-sized-encoder-decoder.h:231
int16_t encoderCount[8]
array of 8 numbers representing the number of steps each encoder has taken
Definition byte-sized-encoder-decoder.h:17
@@ -301,7 +302,6 @@
int16_t encoderSlowestInterval[8]
after this many milliseconds without an encoder tick velocity is set to zero.
Definition byte-sized-encoder-decoder.h:45
int16_t encoderOverflows[8]
array of 8 numbers representing the number of times each encoder's counter variable has overflowed
Definition byte-sized-encoder-decoder.h:21
void setWhichEncoders(uint8_t mask)
set which encoders you want to receive data from
Definition byte-sized-encoder-decoder.h:260
-
boolean isVelNew[8]
array of 8 booleans representing whether the velocity was just calculated
Definition byte-sized-encoder-decoder.h:53
boolean isVelNew(uint8_t n)
whether the velocity was just calculated
Definition byte-sized-encoder-decoder.h:128
void write(uint8_t data)
helper function to write a byte to the board
Definition byte-sized-encoder-decoder.h:57
void setEncoderSlowestInterval(uint8_t n, int16_t interval)
set the value of encoderSlowestInterval
Definition byte-sized-encoder-decoder.h:90
diff --git a/class_byte_sized_encoder_decoder-members.html b/class_byte_sized_encoder_decoder-members.html index 4f58299..5683dda 100644 --- a/class_byte_sized_encoder_decoder-members.html +++ b/class_byte_sized_encoder_decoder-members.html @@ -87,8 +87,8 @@ getEncoderPositionWithoutOverflows(uint8_t n, boolean read=false)ByteSizedEncoderDecoderinline getEncoderVelocity(uint8_t n, boolean read=false)ByteSizedEncoderDecoderinline isEncoderActive(uint8_t n)ByteSizedEncoderDecoderinline - isVelNewByteSizedEncoderDecoderprotected - isVelNew(uint8_t n)ByteSizedEncoderDecoderinline + isVelNew(uint8_t n)ByteSizedEncoderDecoderinline + isVelNewValByteSizedEncoderDecoderprotected lastEncoderCountByteSizedEncoderDecoderprotected lastReadMicrosByteSizedEncoderDecoderprotected resetEncoderPositions(boolean resetVariables=true)ByteSizedEncoderDecoderinline diff --git a/class_byte_sized_encoder_decoder.html b/class_byte_sized_encoder_decoder.html index 8917598..f2d9a2a 100644 --- a/class_byte_sized_encoder_decoder.html +++ b/class_byte_sized_encoder_decoder.html @@ -160,9 +160,9 @@ int16_t encoderEnoughCounts [8]  enough counts to calculate velocity from
  -boolean isVelNew [8] - array of 8 booleans representing whether the velocity was just calculated
-  +boolean isVelNewVal [8] + array of 8 booleans representing whether the velocity was just calculated

Detailed Description

class for communicating with the firmware on a Byte Sized Encoder Decoder board

@@ -856,8 +856,8 @@

-

◆ isVelNew

+ +

◆ isVelNewVal

@@ -866,7 +866,7 @@

- +
boolean ByteSizedEncoderDecoder::isVelNew[8]boolean ByteSizedEncoderDecoder::isVelNewVal[8]
diff --git a/functions.html b/functions.html index 4a73bd2..042a347 100644 --- a/functions.html +++ b/functions.html @@ -82,7 +82,8 @@
  • getEncoderPositionWithoutOverflows() : ByteSizedEncoderDecoder
  • getEncoderVelocity() : ByteSizedEncoderDecoder
  • isEncoderActive() : ByteSizedEncoderDecoder
  • -
  • isVelNew : ByteSizedEncoderDecoder
  • +
  • isVelNew() : ByteSizedEncoderDecoder
  • +
  • isVelNewVal : ByteSizedEncoderDecoder
  • lastEncoderCount : ByteSizedEncoderDecoder
  • lastReadMicros : ByteSizedEncoderDecoder
  • resetEncoderPositions() : ByteSizedEncoderDecoder
  • diff --git a/functions_vars.html b/functions_vars.html index 50a5147..880a030 100644 --- a/functions_vars.html +++ b/functions_vars.html @@ -76,7 +76,7 @@
  • encoderOverflows : ByteSizedEncoderDecoder
  • encoderSlowestInterval : ByteSizedEncoderDecoder
  • encoderVelocity : ByteSizedEncoderDecoder
  • -
  • isVelNew : ByteSizedEncoderDecoder
  • +
  • isVelNewVal : ByteSizedEncoderDecoder
  • lastEncoderCount : ByteSizedEncoderDecoder
  • lastReadMicros : ByteSizedEncoderDecoder
  • whichEncodersMask : ByteSizedEncoderDecoder
  • diff --git a/search/all_5.js b/search/all_5.js index 50241dd..80a9be8 100644 --- a/search/all_5.js +++ b/search/all_5.js @@ -1,5 +1,6 @@ var searchData= [ ['isencoderactive_0',['isEncoderActive',['../class_byte_sized_encoder_decoder.html#a63045fd8fa427538e7266c57fb8cd052',1,'ByteSizedEncoderDecoder']]], - ['isvelnew_1',['isvelnew',['../class_byte_sized_encoder_decoder.html#ac1c21614314bb48860f3e539ef0f02ea',1,'ByteSizedEncoderDecoder::isVelNew'],['../class_byte_sized_encoder_decoder.html#ad7801e217c3adac17bbccf3b6c474158',1,'ByteSizedEncoderDecoder::isVelNew(uint8_t n)']]] + ['isvelnew_1',['isVelNew',['../class_byte_sized_encoder_decoder.html#ad7801e217c3adac17bbccf3b6c474158',1,'ByteSizedEncoderDecoder']]], + ['isvelnewval_2',['isVelNewVal',['../class_byte_sized_encoder_decoder.html#a77a5fa293416f7743c151cb1a3ee4e4b',1,'ByteSizedEncoderDecoder']]] ]; diff --git a/search/variables_2.js b/search/variables_2.js index 6ca1c4f..98ac2f9 100644 --- a/search/variables_2.js +++ b/search/variables_2.js @@ -1,4 +1,4 @@ var searchData= [ - ['isvelnew_0',['isVelNew',['../class_byte_sized_encoder_decoder.html#ac1c21614314bb48860f3e539ef0f02ea',1,'ByteSizedEncoderDecoder']]] + ['isvelnewval_0',['isVelNewVal',['../class_byte_sized_encoder_decoder.html#a77a5fa293416f7743c151cb1a3ee4e4b',1,'ByteSizedEncoderDecoder']]] ];