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: ADXL345 ADXL345_I2C IMUfilter ITG3200 mbed Servo
motor_controller.h
00001 #pragma once 00002 #include "mbed.h" 00003 00004 #define FREQ_MIN 0.5 //Hz 00005 #define FREQ_MAX 3 //Hz 00006 00007 float sigm(float input); 00008 00009 class PololuMController 00010 { 00011 private: 00012 PwmOut pwm; 00013 DigitalOut outA; 00014 DigitalOut outB; 00015 00016 00017 public: 00018 PololuMController(); 00019 PololuMController(PinName pwmport, PinName A, PinName B); 00020 void setpolarspeed(float speed); //-1 to 1 00021 };
Generated on Mon Jul 25 2022 21:18:46 by
1.7.2