Subject:
|
Re: PWM and executing 2 function at the same time
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Tue, 23 Mar 1999 16:09:26 GMT
|
Original-From:
|
Duncan Orthner <ORTHNER@IDIRECTstopspam.COM>
|
Viewed:
|
937 times
|
| |
| |
At 11:28 PM 3/23/99 +0800, you wrote:
> thanz Duncan for your advice. but for question 1, what i mean was to count
> the number of pulses generated without any external device. what i am asking
> is to count the number of pulses internally.
Umm, not sure which 'pulses' you're refering to. How are you generating the
pulses and what are they for? Do you mean the PWM going to the motor
drivers? The HB can generate lots of different pulses 8^]
and for question 2, i mean is
> there any command to executed 2 functions at the same time.(eg: testmotors()
> and testdigitals())
try:
start_process(testmotors());
start_process(testdigitals());
this starts each function as a seperate process...
When running more than one process, you should know that some actions (like
printing to the LCD and IR communication) take significantly more processor
cycles which can *really* slow things down if you're not careful.
Hope this helps, Duncan
|
|
Message is in Reply To:
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|