Skip to content

Commit

Permalink
Updated SimHub plugin: Clear serial monitor before send pedal config
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrGri committed Nov 16, 2023
1 parent c7d4502 commit e5fd30a
Show file tree
Hide file tree
Showing 22 changed files with 441 additions and 348 deletions.
4 changes: 2 additions & 2 deletions Arduino/Esp32/Main/isv57communication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void isv57communication::sendTunedServoParameters() {
retValue_b |= modbus.checkAndReplaceParameter(slaveId, pr_1_00+1, 300);

//modbus.holdingRegisterWrite(slaveId, pr_1_00+2, 300); // 1st time constant of velocity loop
retValue_b |= modbus.checkAndReplaceParameter(slaveId, pr_1_00+2, 500);
retValue_b |= modbus.checkAndReplaceParameter(slaveId, pr_1_00+2, 300);

//modbus.holdingRegisterWrite(slaveId, pr_1_00+3, 15); // 1st filter of velocity detection
retValue_b |= modbus.checkAndReplaceParameter(slaveId, pr_1_00+3, 15);
Expand All @@ -75,7 +75,7 @@ void isv57communication::sendTunedServoParameters() {
retValue_b |= modbus.checkAndReplaceParameter(slaveId, pr_1_00+4, 150);

//modbus.holdingRegisterWrite(slaveId, pr_1_00+10, 150); // velocity feed forward gain
retValue_b |= modbus.checkAndReplaceParameter(slaveId, pr_1_00+10, 0);
retValue_b |= modbus.checkAndReplaceParameter(slaveId, pr_1_00+10, 200);

//modbus.holdingRegisterWrite(slaveId, pr_1_00+11, 6000); // velocity feed forward filter
retValue_b |= modbus.checkAndReplaceParameter(slaveId, pr_1_00+11, 6000);
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified SimHubPlugin/.vs/User.PluginSdkDemo/v17/.suo
Binary file not shown.
1 change: 1 addition & 0 deletions SimHubPlugin/DataPluginDemo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ public void Init(PluginManager pluginManager)
// Declare an event
this.AddEvent("SpeedWarning");


// Declare an action which can be called
this.AddAction("IncrementSpeedWarning",(a, b) =>
{
Expand Down
321 changes: 172 additions & 149 deletions SimHubPlugin/SettingsControlDemo.xaml

Large diffs are not rendered by default.

141 changes: 86 additions & 55 deletions SimHubPlugin/SettingsControlDemo.xaml.cs

Large diffs are not rendered by default.

Binary file modified SimHubPlugin/bin/DiyActivePedal.dll
Binary file not shown.
Binary file modified SimHubPlugin/bin/DiyActivePedal.g.resources
Binary file not shown.
Binary file modified SimHubPlugin/bin/DiyActivePedal.pdb
Binary file not shown.
Binary file not shown.
Binary file modified SimHubPlugin/obj/Release/DiyActivePedal.dll
Binary file not shown.
Binary file modified SimHubPlugin/obj/Release/DiyActivePedal.g.resources
Binary file not shown.
Binary file modified SimHubPlugin/obj/Release/DiyActivePedal.pdb
Binary file not shown.
Binary file modified SimHubPlugin/obj/Release/SettingsControlDemo.baml
Binary file not shown.
161 changes: 90 additions & 71 deletions SimHubPlugin/obj/Release/SettingsControlDemo.g.cs

Large diffs are not rendered by default.

161 changes: 90 additions & 71 deletions SimHubPlugin/obj/Release/SettingsControlDemo.g.i.cs

Large diffs are not rendered by default.

Binary file not shown.

0 comments on commit e5fd30a

Please sign in to comment.