Subject:
|
Re: (BrainDead)
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Thu, 16 Jan 1997 17:00:27 GMT
|
Original-From:
|
Prabal Dutta <[prabal@dmsc.com]nomorespam[]>
|
Reply-To:
|
prabal@dmsc.{avoidspam}com
|
Viewed:
|
2228 times
|
| |
 | |
Dear Jim,
In your IC distribution, there should a file called servo.lis. Make
sure you have it, and add the following line to lib_hb.lis:
servo.lis
The *.lis files are kind of like include files, and will cause IC to
load any files listed in them. The reason you can't decipher the
contents of servo.c is that the function calls refer to assembly
language routines which are listed in servo.asm. Once you do this, try
the following piece of code:
void main (void) {
servo_on();
while (1) {
servo_deg(180./255.*(float)knob());
}
}
You'll need to hook up the servo to digital port 9. When you vary the
frob knob, the servo should turn as well. If that works, it should be
smooth sailing from there.
- Prabal
James D. Tegarden wrote:
> But how the @#!* do we run a single servo program? The software that
> Gleason Research provided us with has a file called servo.c but its
> nothing our puney minds can make out at this point.
>
> Any help would be greatly appreciated. Thank you.
>
> Jim Tegarden
--
Prabal Dutta Tel: (614) 299-2566
Digital Micro Systems FAX: (614) 299-2939
PO Box 3579 e-mail: prabal@dmsc.com
Columbus OH 43210-0579 WWW: http://www.dmsc.com
|
|
Message is in Reply To:
 | | (BrainDead)
|
| I'm kind of stuck, and hopefully someone can tell me what I'm doing wrong. My group and I have been working with the HB for a couple of weeks now and have progressed to the point (in programming the HB) where we've written programs utilizing muliple (...) (28 years ago, 15-Jan-97, to lugnet.robotics.handyboard)
|
3 Messages in This Thread:   
  
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|