![](/media/cache/profiles/e5815151957be36ad2085b7a1a02c5cc.jpg.50x50_q85.jpg)
Controlor for Humanoid. Walking trajectory generator, sensor reflection etc.
Dependencies: Adafruit-PWM-Servo-Driver MPU6050 RS300 mbed
Diff: Motion/OfflineMotion.h
- Revision:
- 23:0927e605af4b
- Parent:
- 22:bf5aa20b9df0
--- a/Motion/OfflineMotion.h Fri Sep 06 08:36:21 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ -#ifndef OFFLINEMOTION_H_2012_09_21_ -#define OFFLINEMOTION_H_2012_09_21_ - -#include "LPC17xx.h" -#include "mbed.h" -//#include "PWM.h" -#include "Adafruit_PWMServoDriver.h" -//#include "Motion.h" - -class OfflineMotion //: public Motion -{ - public: - OfflineMotion(uint16_t** data, unsigned short int size_idx, unsigned char size_num, Adafruit_PWMServoDriver* _pwm, bool* _playing); - ~OfflineMotion(); - public: - void step(); - private: - void update(); - void set_inter(); - void init_inter(); - void step_inter(); - - private: - //PWM* pwm; - Adafruit_PWMServoDriver* pwm; - uint16_t** m_data; - unsigned short int m_IDX_MAX; - unsigned char m_NUM_MAX; - unsigned char m_data_num[500]; //inter - unsigned char m_mode; - bool* playing; - - private: - unsigned short int m_idx; - unsigned char m_play; - private: - double m_buf[25]; //buf - double m_d_buf[25]; //dbuf - double m_dd_buf[25]; //ddbuf - double m_brake_flg; - unsigned char m_brake_pnt; -}; - -#endif \ No newline at end of file