My modifications/additions to the code
Dependencies: ADXL345 ADXL345_I2C IMUfilter ITG3200 Servo fishgait mbed-rtos mbed pixy_cam
Fork of robotic_fish_ver_4_8 by
PwmIn Class Reference
PwmIn class to read PWM inputs. More...
#include <PwmIn.h>
Public Member Functions | |
PwmIn (PinName p, float dutyMin, float dutyMax) | |
Create a PwmIn. | |
float | period () |
Read the current period. | |
float | pulsewidth () |
Read the current pulsewidth. | |
float | dutycycle () |
Read the current dutycycle. |
Detailed Description
PwmIn class to read PWM inputs.
Uses InterruptIn to measure the changes on the input and record the time they occur
- Note:
- uses InterruptIn, so not available on p19/p20
Definition at line 14 of file PwmIn.h.
Constructor & Destructor Documentation
PwmIn | ( | PinName | p, |
float | dutyMin, | ||
float | dutyMax | ||
) |
Member Function Documentation
float dutycycle | ( | ) |
float period | ( | ) |
Generated on Sun Jul 17 2022 22:28:23 by 1.7.2