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.
Dependencies: mbed
Fork of RT2_P3_students_G4 by
Diff: main.cpp
- Revision:
- 4:2cc56521aa16
- Parent:
- 3:d79c437626e7
- Child:
- 5:72982ede2ff6
--- a/main.cpp Mon Apr 09 09:26:58 2018 +0000
+++ b/main.cpp Tue Apr 10 11:44:36 2018 +0000
@@ -46,7 +46,7 @@
float w_soll = 10.0f; // desired velocity
float Ts = 0.002f; // sample time of main loops
int k = 0;
-LinearCharacteristics i2u(0.8f,-2.0f);
+
//------------------------------------------
// ... here define variables like gains etc.
//------------------------------------------
@@ -84,8 +84,7 @@
void updateControllers(void){
short counts = counter1; // get counts from Encoder
float vel = diff(counts); // motor velocity
- out.write(i2u(0.0f)/3.3f);
- // ... your code
+ // ... your code
if(++k >= 249){
k = 0;
pc.printf("Pulse: %d Velocity: %3.2f\r\n",counts,vel);
