forked from tjfenwick/DIY-Sim-Racing-Active-Pedal
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request tjfenwick#1 from MichaelJFr/main
Merge code versions into common implementation
- Loading branch information
Showing
2 changed files
with
986 additions
and
0 deletions.
There are no files selected for viewing
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
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; | ||
|
||
|
||
} ; |
Oops, something went wrong.