Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- refresh ();
- angle += (gyro_x - cal_x) * (millis () - timer) / 1000.0;
- Serial.println (angle);
- void update_int(double *u, double *y)
- {
- static double x[1] = {0};
- double x1[1];
- y[0] = x[0];
- x1[0] = x[0] + 0.01*u[0];
- x[0] = x1[0];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement