![](/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
Motion/OfflineMotion.h
- Committer:
- syundo0730
- Date:
- 2013-09-06
- Revision:
- 22:bf5aa20b9df0
- Parent:
- 21:a54bcab078ed
File content as of revision 22:bf5aa20b9df0:
#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