The below explaination was generated by google gemini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ESP32Encoder encoder1; | |
ESP32Encoder encoder2; | |
ESP32Encoder encoder3; | |
ESP32Encoder encoder4; | |
Ticker readEncoders; | |
Ticker slowReadEncoders; | |
enum class InputType{ | |
Encoder, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module quad(clk, A, B, Z, count, revolutions); | |
input clk, A, B,Z; | |
output [63:0] count; | |
output [8:0] revolutions; | |
localparam [11:0] ppr = 80; | |
reg [2:0] quadA_delayed, quadB_delayed; | |
always @(posedge clk) quadA_delayed <= {quadA_delayed[1:0], A}; | |
always @(posedge clk) quadB_delayed <= {quadB_delayed[1:0], B}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module quadencoderz | |
#( | |
parameter BITS = 32, | |
parameter QUAD_TYPE = 0, | |
parameter CLK_FREQ = 27_000_000, | |
parameter PPR = 400 | |
) | |
( | |
input clk, | |
input a, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "jessTangNano9K", | |
"description": "my udp lateh config", | |
"boardcfg": "TangNano9K", | |
"transport": "UDP", | |
"ip": "192.168.10.71", | |
"enable": { | |
"pin": "69" | |
}, | |
"plugins": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "rtapi.h" /* RTAPI realtime OS API */ | |
#include "rtapi_app.h" /* RTAPI realtime module decls */ | |
#include "rtapi_string.h" | |
#include "hal.h" /* HAL public API decls */ | |
/* module information */ | |
MODULE_AUTHOR("Jesse Schoch"); | |
MODULE_DESCRIPTION("Encoder Velocity for RIO encoder with z "); | |
MODULE_LICENSE("GPL"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "TangNano9K", | |
"description": "TangNano9K with 5Axis BOB over SPI", | |
"boardcfg": "TangNano9K", | |
"transport": "SPI", | |
"axis": 9, | |
"interface": [ | |
{ | |
"type": "w5500", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Example source code for an Arduino to show | |
* how to communicate with an Allegro ALS31300 | |
* | |
* Written by K. Robert Bate, Allegro MicroSystems, LLC. | |
* | |
* ALS31300Demo is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file contains pin mappings for the 2017 Creality CR-10S with a MKS Gen-L board. To use | |
# this config, the firmware should be compiled for the AVR atmega2560. | |
# See the example.cfg file for a description of available parameters. | |
[stepper_x] | |
step_pin: ar54 | |
dir_pin: ar55 | |
enable_pin: !ar38 | |
step_distance: .0125 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import adsk.core, adsk.fusion, adsk.cam, traceback, math | |
import sys, os | |
packagepath = os.path.join(os.path.dirname(sys.argv[0]), 'Lib/site-packages/') | |
if packagepath not in sys.path: | |
sys.path.append(packagepath) | |
#import numpy as np | |
#np = math | |
NewerOlder