Skip to content

Commit

Permalink
Merge pull request tjfenwick#1 from MichaelJFr/main
Browse files Browse the repository at this point in the history
Merge code versions into common implementation
  • Loading branch information
ChrGri authored Jun 17, 2023
2 parents 139b22e + 23d9744 commit 7ef3b78
Show file tree
Hide file tree
Showing 2 changed files with 986 additions and 0 deletions.
45 changes: 45 additions & 0 deletions Arduino/MultiTarget/Main/DiyActivePedal_types.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
struct DAP_config_st {
// structure identification via payload
uint8_t payloadType;

// variable to check if structure at receiver matched version from transmitter
uint8_t version;

// To check if structure is valid
uint8_t checkSum;

// configure pedal start and endpoint
// In percent
uint8_t pedalStartPosition;
uint8_t pedalEndPosition;

// configure pedal forces
uint8_t maxForce;
uint8_t preloadForce;

// design force vs travel curve
// In percent
uint8_t relativeForce_p000;
uint8_t relativeForce_p020;
uint8_t relativeForce_p040;
uint8_t relativeForce_p060;
uint8_t relativeForce_p080;
uint8_t relativeForce_p100;

// parameter to configure damping
uint8_t dampingPress;
uint8_t dampingPull;

// configure ABS effect
uint8_t absFrequency; // In Hz
uint8_t absAmplitude; // In steps

// geometric properties of the pedal
// in mm
uint8_t lengthPedal_AC;
uint8_t horPos_AB;
uint8_t verPos_AB;
uint8_t lengthPedal_CB;


} ;
Loading

0 comments on commit 7ef3b78

Please sign in to comment.