Is it possible to cancel a wait(); command?

Titan One general support. Questions, firmware update, feature request.

Is it possible to cancel a wait(); command?

Postby davidlee » Fri Aug 10, 2018 8:22 am

What Exactly At A Futon & The best futon mattress reviews are neccessary when you want to buy one

Futon came from Japan. Back in Japan, a Futon meant a cotton mattress. Because there are space constraints problem over there, this mattress or futon obtained folded and kept away daytime. This didn't permit the futon which remained fresh daytime to occupy any distance and gave them space to do things. A straw mat floor also known below the futon as a mat is used by the Japanese. The new accommodated version has the mattress or futon being placed in addition to frames made of metal or wood and the furniture was created as chair, sofa or a bed that may be folded and unfolded.

Different Types Of Futon Frames

Futon Frames are manufactured from materials - Wood, metal and also a blend of those. Wood brings inviting feeling, and aesthetic look. Metal makes your room appear more trendy stylish that is classy. Wooden frames are comfy and sturdy while metal frames are good on pocket and more economical. The wooden frames are made from various types of wood - such as walnut, pine, ash, rubber, teak, and mahogany etc. - soft and hard woods.

The futon frames come in 2 separate Varieties - bi-fold and tri-fold. Bi-fold is more in demand compared to tri-fold one. This is only because frame needs to be folded. Frame , need to be folded. As a result of this, bi-fold frames provide more sitting area and are more comfortable. Tri-fold framework on the other hand, gives lesser space to sit down , but also occupies distance.

Following are New Futon Types Available in the Market -

1. Wall-Huggers Usually when you unfold a futon frame to convert to a bed, then you need to pull the framework wholly in the wall for growth to happen. This isn't needed. Regarding the question of how close should the wall hugger be to the wall, you have to check its tolerance amounts. There are many different tolerance levels. Should your futon be into the wall this tolerance level decides how and whether close. Zero tolerance means it can be placed by that you without any space between the wall and the frame. Level between 1 and 4 signifies there is that a considerable space necessary.

2. Platform Beds While we predict platform beds futons, these just are not convertible like most futons. There is A platform bed elevation created by use of timber to put mattress or nothing but wood slats. This basically gives you the height that is comfortable and necessary. Platform beds are perfect for those who enjoy a simple no frills look that is elegant. This type of bed doesn't require a box spring.

3. Click Clacks This one gives you three rankings - you may use exactly the same furniture piece as a couch, as a lounger and as a bed too. You do this with aid of a metallic hinge system. Each time you convert it it creates a click clack sound. This is the main reason this kind of futon is known as a Click Clack.

Futon Mattress Queen size - Simple Buying Guidelines

Your futon mattress is the most important Buy that you can make. While frames are also significant, you have to sleep on a mattress and hence this is the thing you might buy. While in futon sets, mattresses come along with frames, it's much better to get a mattress on your own of your choice and relaxation. There is a great deal of variety accessible futon mattresses - it is made of, different dimensions. Remember that you won't be purchasing a futon mattress for a long time, If buying your mattress. A mattress can remain for much more and decade with you. And hence greater than cost, you should start looking.

Image

Futons For Sale and Mattresses for Futon Beds
Futon beds can help you to save a lot of space in Your House and This is particularly true if it's a small location. You may discover cheap futons for sale for your guests to sit on but they can be conveniently turned into a bed if your guests opt to stay at night. There are a lot of different types of futon beds and in addition, there are some quite expensive ones which are regarded as top of the line beds, though you can find cheap futons to be utilized as a mattress that is normal. When you buy a futon you should pay close attention that it includes because it can mean the difference between a futon mattress and an awkward one. Within this article we will discuss what you need to search for when you are purchasing futon mattresses for frames.

You need to before you go out Searching for futons for sale Consider whether you would like to buy a 100% cotton mattress? Futon beds are expected to be able to be readily changed from a bed so if you are considering getting a mattress that's made of 100% cotton then you ought to think about this. A mattress that's made of 100% will be a lot heavier and then you need to find out roughly how frequently you will move it, since you'll need to lift your futon to be transformed by it. Having said that, you can find cotton futons at prices that are acceptable for sale. But if it is something which you will move daily you should think about a mattress that is lighter. Then if you're just purchasing it so that you are prepared just in case one of your visitors happens to stay then it probably won't be as important.

You Should Think about getting a futon mattress that you can easily Bring back to the store. Whenever you're purchasing mattresses for futon beds, then it is normal to bring the house to find that after a few days out it isn't best for you. Speak with the shop in the event that you're able to bring it back and that you purchase the mattress from to learn what their return policy is. From time to time, particularly in regards to special offers on futons for sale, they do not accept returns. Make sure they do if you decide the futon mattress isn't best for you, then it will save a lot of grief if the shop takes back it .

Futon beds if you follow and don't have to be uncomfortable the Tips in this article you will be one step nearer to locating the ideal mattress for your futon bed. In short, think about the futon mattress, and read the fine print on almost any futons available offers!

We all know that futon beds can save a Good Deal of room in a House and they may look good but you need to consider the best futon mattress when making your purchase. Also, always remember to read any terms and conditions which come with futons available because occasionally you could find they don't accept returns!
Last edited by davidlee on Tue Sep 04, 2018 6:04 am, edited 1 time in total.
User avatar
davidlee
Private
Private
 
Posts: 1
Joined: Fri Aug 10, 2018 8:20 am

Re: Is it possible to cancel a wait(); command?

Postby Scachi » Fri Aug 10, 2018 8:45 am

I don't own a T1 anymore, so I can't tell if this really works..
You may be able to use a variable for the time in the wait command and adjust that value / wait time from outside the combo.

Code: Select all
 
int that_time= 200;
 
combo a{
  wait(that_time);
  wait(that_time);
  // more combo stuff
 // more combo stuff
}


I don't know how "call" handles a combo that gets stopped with combo_stop(), if it returns so the previous combo or if it stops completely, so you can try something like that:
use combo_run(myMain) to start it and use "combo_stop(myWait);" from outside the combo to abort the wait.
I never tested something like that, so I can't tell if this will work or if it will stop the combo that did the "call" command too.

Code: Select all
 
combo myMain {
  call(MyWait); // executes "myWait" and continues after "myWait" has finished
  wait(10)
 // more combo stuff here
}
 
 
 
combo myWait {
   wait(500);
}
 
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 2244
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Is it possible to cancel a wait(); command?

Postby prototype » Fri Aug 10, 2018 9:58 am

Scachi wrote:I don't own a T1 anymore, so I can't tell if this really works..

But with the T1 gph you can use the code with the T2?
Console tuner since my 1st controller.
Believe or dare, It's Titanic! :smile0517:
User avatar
prototype
Brigadier General
Brigadier General
 
Posts: 2964
Joined: Sun Dec 16, 2012 1:43 pm

Re: Is it possible to cancel a wait(); command?

Postby Scachi » Fri Aug 10, 2018 10:54 am

prototype wrote:
Scachi wrote:I don't own a T1 anymore, so I can't tell if this really works..

But with the T1 gph you can use the code with the T2?


Yes, but that code is not guaranteed to be backward compatible as I still can use gpc2 stuff in there by accident, variable declaration the T1 doesn't know about and use a mixing order of functions and combos...
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 2244
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Is it possible to cancel a wait(); command?

Postby prototype » Fri Aug 10, 2018 11:16 am

Ok, you are right :)
Console tuner since my 1st controller.
Believe or dare, It's Titanic! :smile0517:
User avatar
prototype
Brigadier General
Brigadier General
 
Posts: 2964
Joined: Sun Dec 16, 2012 1:43 pm

Re: Is it possible to cancel a wait(); command?

Postby Sillyasskid » Fri Aug 10, 2018 11:49 am

This function will allow you to skip to any wait() in your combo, or even cancel the current wait that your in.

I can explain how this works later, as I am off to work now. :P

Usage goto_wait(<Combo Name>, <Wait Destination> );

The combo must already be running, and you cannot jump back to a previous wait. Only forward.



Code: Select all
#define goto_wait(combo_name, ...) (combo_name) ? _goto_wait(combo_name,__VA_ARGS__) : 0;
 
#define _goto_wait(combo_name, wait_dest) \
 (combo_run(combo_name), \
  combo_name[1] = combo_name[1] <  (uint8)wait_dest ? (uint8)wait_dest : combo_name[1] ,\
  combo_name[2] = combo_name[1] <= (uint8)wait_dest ? 0 : combo_name[2], \
  combo_name[3] = combo_name[1] <= (uint8)wait_dest ? 0 : combo_name[3])

 
main {
  if(event_active(BUTTON_16)) {
    combo_run(combo1);
  }
  if(event_active(BUTTON_15))
    goto_wait(combo1, 6);
}
combo combo1 {
    wait(1000);printf("1000");
  wait(0);
    wait(1000);printf("2000");
  wait(0);
    wait(1000);printf("3000");
  wait(0);
    wait(1000);printf("4000");
  wait(0);
    wait(1000);printf("5000");
  wait(0);
    wait(1000);printf("6000");
  wait(0);
    wait(1000);printf("7000");
  wait(0);
    wait(1000);printf("8000");
  wait(0);
    wait(1000);printf("9000");
}
User avatar
Sillyasskid
Captain
Captain
 
Posts: 577
Joined: Sat May 14, 2016 3:07 am

Re: Is it possible to cancel a wait(); command?

Postby J2Kbr » Fri Aug 10, 2018 11:56 am

combos states can be manually handled via script. The macro proposed by Sillyasskid is perfect for that.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 18116
Joined: Tue Mar 18, 2014 1:39 pm

Re: Is it possible to cancel a wait(); command?

Postby Sillyasskid » Fri Aug 10, 2018 12:25 pm

Oof just noted that I posted this in a t1 section.

The script I provided only works for the titan two.

But schachi apprach should work. call()'s are pretty much cancelable wait()'s if you really want them to be. :wink:
User avatar
Sillyasskid
Captain
Captain
 
Posts: 577
Joined: Sat May 14, 2016 3:07 am


Return to Titan One Device

Who is online

Users browsing this forum: Google [Bot] and 19 guests