Notice: Please use two pins which use same TIMER to synchronize timer phase. Sample program: http://mbed.org/users/spiralray/code/Nucleo_motor_LockedAntiphase/
Dependents: Nucleo_motor_LockedAntiphase
motor_lockedantiphase.cpp
- Committer:
- spiralray
- Date:
- 2014-04-23
- Revision:
- 0:62943ca4f7a0
File content as of revision 0:62943ca4f7a0:
/* * motor_lockedantiphase.cpp * * Created on: 2014/04/23 * Author: spiralray */ #include "motor_lockedantiphase.h" Motor_LockedAntiphase::Motor_LockedAntiphase(PwmOut ma, PwmOut mb): motora(ma), motorb(mb){ motora.period_us(50); motorb.period_us(50); motora =0.5f; motorb =0.5f; } Motor_LockedAntiphase::~Motor_LockedAntiphase(){ }