bio robot

Dependencies:   MPU6050-DMP QEI_hw mbed-rpc mbed

Fork of MPU6050_Example by Shundo Kishi

Controls/Dynamics.h

Committer:
amandaghassaei
Date:
2015-12-10
Revision:
15:d88f10b3b5f8
Parent:
13:64d337c5114e
Child:
16:5b19be27f08a

File content as of revision 15:d88f10b3b5f8:

#ifndef Dynamics_h
#define Dynamics_h


#include "Kinematics.h"
#include "Gains.h"
#include "Target.h"


float calcTau(volatile float z[4], float p[10], Gains *gains, Target *target, Serial *pc);
float thetaDesiredForSwingUp(float rangeMin, float rangeMax, volatile float z[4]);
float obstacleAvoidance(volatile float z[4], float p[10], float theta);
int fix(float val);//round toward zero


#endif