Controlor for Humanoid. Walking trajectory generator, sensor reflection etc.
Dependencies: Adafruit-PWM-Servo-Driver MPU6050 RS300 mbed
Diff: Motion/OfflineMotion.cpp
- Revision:
- 21:a54bcab078ed
- Parent:
- 20:abb7852df747
--- a/Motion/OfflineMotion.cpp Mon Aug 19 08:10:58 2013 +0000 +++ b/Motion/OfflineMotion.cpp Wed Sep 04 03:59:40 2013 +0000 @@ -3,7 +3,7 @@ //extern Ticker tick; extern DigitalOut led1; -OfflineMotion::OfflineMotion(uint16_t** data, unsigned short int size_idx, unsigned char size_num, PWM* _pwm, bool* _playing) +OfflineMotion::OfflineMotion(uint16_t** data, unsigned short int size_idx, unsigned char size_num, Adafruit_PWMServoDriver* _pwm, bool* _playing) { pwm = _pwm; @@ -103,7 +103,7 @@ m_dd_buf[i] = 0.0; __disable_irq(); - pwm->SetDuty(i, (uint32_t)m_buf[i]); + pwm->setDuty(i, (uint32_t)m_buf[i]); __enable_irq(); } m_brake_flg = 0.0; @@ -119,7 +119,7 @@ m_buf[i] += m_d_buf[i]; __disable_irq(); - pwm->SetDuty(i, (uint32_t)m_buf[i]); + pwm->setDuty(i, (uint32_t)m_buf[i]); __enable_irq(); } } \ No newline at end of file