Intemediate GatesThis is a featured page

All of the useful, not-to-easy and not-to-tough gates go here.

Remember to use this format:


Name:
Author:
Description: [optional]
Example Uses: [optional]

CODE:




Code explaination: (we want to know what it does [optional])






No user avatar
IEF015
Latest page update: made by IEF015 , Apr 17 2008, 6:36 PM EDT (about this update About This Update IEF015 Edited by IEF015

16 words deleted

view changes

- complete history)
Keyword tags: intermediate Medium normal
More Info: links to this page
Started By Thread Subject Replies Last Post
ZigZaggity Hover 0 Aug 14 2008, 7:19 PM EDT by ZigZaggity
Thread started: Aug 14 2008, 7:19 PM EDT  Watch
Name:Hover
Author:ZigZaggity
Description: Either hook 3+ of these paired with a thruster and ranger/gps each to hover at a set height, or use with a balancing platform to keep at a set height.
Example Uses:

CODE:

N@modhover
I@GZ TarZ Mul
O@Thrust
DiffZ=TarZ-GZ
Thrust=DiffZ+$DiffZ*Mul
Thrust=-Thrust

Code explaination:GZ is the height input, either from a GPS or ranger. TarZ is the Z height you want to hover at, and Mul is the multiplier affecting the delta.
1  out of 3 found this valuable. Do you?    
Keyword tags: intermediate Medium normal
ZigZaggity Self Balancing 0 Aug 14 2008, 7:16 PM EDT by ZigZaggity
Thread started: Aug 14 2008, 7:16 PM EDT  Watch
Name:Self Balance
Author:ZigZaggity
Description: Use with a gyro and appropriately placed thrusters and one constant value chip.
Example Uses: hovering things
CODE:

N@balance
I@Pitch Yaw Roll Mul
O@P Y R
P=Pitch+$Pitch*Mul
Y=angnorm($Yaw)
R=Roll+$Roll*Mul

Code explaination: Uses the value of the angle added to the delta of the angle to right itself. Yaw is optional - stops spinning. Use in conjunction with my Hover expression to make it hover also.
0  out of 1 found this valuable. Do you?    
Keyword tags: intermediate Medium normal
Jaybuz Adv.Input 1 Jun 12 2008, 6:16 PM EDT by Jaybuz
Thread started: Jun 12 2008, 6:06 PM EDT  Watch
Name: Adv.Input
Author: Jaybuz
Description: A value that can be changed using plus and minus buttons
Example Uses: Lots of things!

CODE:

N@AdvancedInput
I@Plus Minus Clear Add20 MaxValue
O@Screen
Plus -> Screen += 1;
Minus -> Screen -= 1;
Clear -> Screen = 0;
Screen == -1 -> Screen = 0;
MaxValue == 0 -> MaxValue = (100*100*100);
Screen > MaxValue -> Screen = MaxValue;
Add20 -> Screen += 20;

Just hook up plus sign button(s) to Plus and minus button(s) Minus.
The value won't go below 0 but you can change if you know how.
Optional: Hook MaxValue to a constant value. This will be the values limit, if you do not set this it will default at 1000,000 :P
Optional: Hook button(s) to Add20 to add 20 to the value, like Plus but adds 20. (I thought this is good for higher numbers)
Clear is to reset the value to 0.
2  out of 4 found this valuable. Do you?    
Keyword tags: intermediate Medium normal
Show Last Reply
Showing 3 of 5 threads for this page - view all

Related Content

  (what's this?Related ContentThanks to keyword tags, links to related pages and threads are added to the bottom of your pages. Up to 15 links are shown, determined by matching tags and by how recently the content was updated; keeping the most current at the top. Share your feedback on Wetpaint Central.)