Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet Vita    [LBPV] Help!
#1

Dividing a signal by three, rounding off and such...

Archive: 4 posts


How do I find out if a signal is divisible by three and then round it down to the nearest signal that is divisible by three?

I am using this to tell an emitter how fast to emit an object based on how fast the object the emitter is on is moving. And right now I'm having issues with the emitter creating gaps when the speed is not a multiple of three. So.. I dunno if that makes any sense.

Thanks for your help


2014-01-02 06:37:00

Author:
Bitter Sweet
Posts: 95


It's not very pretty, but you could use a positional Sequencer with 33 Batteries (assuming your signal only uses positive values), and have the Batteries gradually increase in strength by increments of 3%...

If you use a Sequencer of 25 "bands" length (100 small grid units), you can use Batteries of 3 small grid lengths to cover 3% of positional signal bandwith each.

As I said, it won't be pretty, but it should work in the situation you describe
2014-01-02 06:52:00

Author:
Slaeden-Bob
Posts: 605


3 Steps -

- Divide signal by 3. To do this simply use an AND gate to multiply your input by 1/3 (use a counter with max count 3, current count 1 to acquire 1/3 signal)

- Round off the result to the nearest 1%. The easiest way to do this would be using 2 or 3 positional sequencers similar to the way a logic probe works.

- Multiply the Rounded signal by 3. This can be done by using an OR gate to add the signal to itself 3 times.

This will give you your desired result. Slaeden-Bob's solution will work just as well as this one although, as he says, having a gigantic positional sequencer isn't pretty to work with.
2014-01-02 14:13:00

Author:
Seku
Posts: 65


Thanks2014-01-04 10:46:00

Author:
Bitter Sweet
Posts: 95


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.