Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 39:3580a907ef93
- Parent:
- 38:67e4e1453a4b
- Child:
- 40:cd7e837b2b93
--- a/main.cpp Mon May 14 20:59:02 2018 +0000
+++ b/main.cpp Mon May 14 21:01:06 2018 +0000
@@ -247,7 +247,6 @@
if(state_change){
enter_torque_mode();
count = 0;
- controller.t_ff = 15.0f;
}
else{
/*
@@ -271,11 +270,12 @@
commutate(&controller, &observer, &gpio, controller.theta_elec); // Run current loop
controller.timeout += 1;
+ /*
count++;
if(count == 40000){
- controller.t_ff = -controller.t_ff;
count = 0;
}
+ */
}