Society of Robots - Robot Forum

Software => Software => Topic started by: Razor Concepts on December 29, 2008, 11:35:06 PM

Title: What is this kind of programming called?
Post by: Razor Concepts on December 29, 2008, 11:35:06 PM
Say you have a MCU that blinks a light. You press a button 7 times, the MCU stores "7" and blinks 7 times. This is a sort of programming, but what is it called? I'm pretty sure there is a name to it but I can't get it out of my head. External programming?
Title: Re: What is this kind of programming called?
Post by: pomprocker on December 30, 2008, 02:36:02 PM
that sounds like a recursive function?
Title: Re: What is this kind of programming called?
Post by: izua on December 30, 2008, 10:33:18 PM
I'd call it user unfriendly :D
Title: Re: What is this kind of programming called?
Post by: cosminprund on December 31, 2008, 04:25:02 AM
@pomprocker
Quote
that sounds like a recursive function?

That's not a recursive function, unless you work real hard to ignore the obvious implementation (simple loop) and go with an implementation that's likely limited by the MCU stack.

@izua
Quote
I'd call it user unfriendly

Agree!

@Razor Concepts
Why do you think it needs to have a name? If it matters my car alarm system supports a similar way of programming it. They call it "Valet Button Programming". I assume you're thinking of a name from the end-users perspective, not the name for the programming technique used to implement the behaviour.
Title: Re: What is this kind of programming called?
Post by: cosminprund on December 31, 2008, 04:56:22 AM
@Razor Concepts
If the 7 click - 7 blinks was just an example, you're probably looking for "finite state machine".