Skip to content

Commit

Permalink
fix examples including incorrect header
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Unger committed Oct 30, 2023
1 parent 5285c55 commit 233e815
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/dc-open-loop/dc-open-loop.ino
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <Arduino.h>

#include "SimpleFOC.h"
#include "SimpleFOCDCMotor.h"
#include "SimpleDCMotor.h"

// DCDriver object - this is the only thing needed for open-loop control.
// There are different types to choose from, please select the correct one
Expand Down
3 changes: 2 additions & 1 deletion examples/dc-torque-voltage/dc-torque-voltage.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <Arduino.h>

#include "SimpleFOC.h"
#include "SimpleFOCDCMotor.h"
#include "SimpleDCMotor.h"


// DCMotor object
Expand Down Expand Up @@ -46,6 +46,7 @@ void setup() {
// if you want, you can limit the voltage used by the driver.
// This value has to be same as or lower than the power supply voltage.
driver.voltage_limit = 10.0f;
// often, you will want to set a lower PWM frequency than the default
driver.pwm_frequency = 5000;
// init driver
driver.init();
Expand Down

0 comments on commit 233e815

Please sign in to comment.