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.
sm_servo.h
- Committer:
- GaspardD
- Date:
- 2019-09-29
- Revision:
- 6:ab9f3695633f
- Parent:
- 4:efa207509f63
- Child:
- 8:f23601373e8b
File content as of revision 6:ab9f3695633f:
#ifndef H_SM_SERVO #define H_SM_SERVO #include "utils.h" #define SERVO_PERIOD_DURATION_MS 20 //20ms is default but 10ms seems ok #define SERVO_PULSE_MIDDLE_US 1550 #define SERVO_PULSE_MAX_US 2000 #define SERVO_PULSE_MIN_US 1050 /* Enums */ typedef enum{ SERVO_INIT, SERVO_COMMAND }E_STATE_SERVO; /* Variables */ /* Functions */ void init_sm_servo(); void update_sm_servo(); void output_sm_servo(); #endif