Subject:
|
Re: Switching Direction
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Wed, 18 Jun 2003 19:18:14 GMT
|
Viewed:
|
775 times
|
| |
| |
> I tried to do this with a macro, but the compiler requires I use a constant and
> not a variable. But as the test is done within the program I have to use a
> variable.
>
> So basically I'm looking for a replacement for OnFwd();
I stumbled on this one a few days ago... and ended up with a
if(variable)/OnFwd/else/OnRev construction :c(
Philo
|
|
Message has 1 Reply: | | Re: Switching Direction
|
| (...) I tried it and it works for me :-) On an unrelated note am I right in thingking the only way to get the file "afxdtctl.h" would be to upgrade to Visual c++ Ver 6? Steve (21 years ago, 19-Jun-03, to lugnet.robotics)
|
Message is in Reply To:
| | Switching Direction
|
| I have a motor which drives a rack mechanism and I'm using a rotation sensor to index my position on the rack. When I program the motor (in NQC) to go forward I want the sensor to count up. If the sensor then actually goes down I want to test for (...) (21 years ago, 18-Jun-03, to lugnet.robotics)
|
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|