Stormworks: Build and Rescue

Stormworks: Build and Rescue

44 ratings
TT Gyro Version 2
2
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Air
Microcontrollers: Navigation, Microcontroller
Tags: v0.5.10
File Size
Posted
Updated
42.188 KB
29 Dec, 2018 @ 9:28am
2 Jan, 2019 @ 1:10pm
3 Change Notes ( view )

Subscribe to download
TT Gyro Version 2

Description
TT Gyro Version 2!

This is a microcontroller designed to replace the ingame Gyro. A demo of an application for this can be found in this little helicopter here:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1606928570

The reasion to make this is that there are a number of issues that can occur with the ingame gyro:

- Excessive Pitch or Roll input causing instability
- Unpredictable Throttle response in some scenarios
- Completely untunable
- Auto-Hover heavily dampens the pitch and roll, so it's impossible to go fast
- Loses altitude at high pitch/roll angles, even if the vehicle has enough power to prevent this
- Generally preferable to have the effects of the Gyro but can need to be turned off to perform bigger maneuvers

This solves those problems by being massively tunable. Every proportion, intergral and derivative in the chip can be adjusted. It is by default set up for a small helicopter. It acts essentially like autohover is always on, but without the limitations of autohover - you can go as far over as you set the Pitch / Roll limits to in the microcontrollers properties. Some users have stated this has given them high speed increases in some cases with increased altitude stability!

It has pitch roll yaw and updown controls as per the normal gyro, but has additional inputs that are required:

- Altitude Sensor
- Compass Sensor
- a LEFT facing tilt sensor
- a FORWARD facing tilt sensor
- a FORWARD facing speed sensor SET TO DIRECTION WITH SELECT TOOL.
- a LEFT facing speed sensor SET TO DIRECTION WITH SELECT TOOL.

The gyro's updown is based upon an integrating PID based on the change in altitude. so you will need to breifly hold up to get off the ground. There is a built in "Takeoff Boost" function that increases the integral ramp up until the altitude has increased. Mouseover the gyro to see the current "takeoff boost" status.

Common Issues and ways to solve them:

- If it is flipping over on one of the axes, try inverting the P and D values for that axis.
- If the controls are back to front, invert the Pitch / Roll limiter values.
- If it wobbles very fast, reduce the D value for that axis it is wobbling in.
- If it is too responsive, reduce P for that axis it is wobbling in.
- If it is lazily wobbling around, increased D for that axis.
- lazy wobbling while stationary may be due to the Position Hold Gain being too high. Reduce the value.
- If you're still having issues with stability, try replacing one part of your vehicles control from the ingame gyro to this gyro at a time to highlight the axis with the problem.
- Losing too much altitude with control input changes? Increase up/down I.

Currently this is not designed to be compatible with aircraft. It is intended to eventually have autopilot system & remote control integration using Composites. Will update as I get on with this.

Let me know if you have any issues or improvement suggestions.
62 Comments
killjoy 27 Aug, 2024 @ 4:23am 
This is defs broken now. it just tilts backwards hard.
latch4 14 Jul, 2024 @ 5:01am 
Its wobbling like crazy on all axis, how can i fix it?
[82AD] Fingus 30 Jun, 2024 @ 12:53am 
I think this module will by default have pitch inverted which will lead to back-flipping. I mean if you apply it to a propeller that hasn't been flipped. (correct me if I'm wrong)

But like it says in the common issues section of this guide just put a minus sign in front of the pitch P and D values. And if your w/s is inverted after that, put a minus in front of pitch limit.
FREJWe 16 Jun, 2024 @ 9:09am 
im having issues with it, my helicopter is doing backflips, what could i have done wrong?
chikun427 17 Apr, 2024 @ 10:07pm 
nvm i fixed it
chikun427 16 Apr, 2024 @ 12:51am 
my quadcopter is subtly swinging forwards and backwards like a pendulum and is slowly moving backwards
Creepily 12 Feb, 2024 @ 2:30am 
https://oscarliang.com/fpv-drone-tuning/#Step-3-Finding-PD-Balance

this helps with pid tuning heli/quadcopter (helped me a lot), leaving this here for whoever needs it
1ue999 31 Jan, 2024 @ 9:49pm 
then update it please?
TT  [author] 31 Jan, 2024 @ 3:24pm 
Very true, this is just a lot older than the physics sensor is!
1ue999 30 Jan, 2024 @ 9:41pm 
you can make the inputs all come from a physics sensor