Main Page | Data Structures | File List | Data Fields | Globals

throttle.h File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

int write_throttle (int)

Variables

int current_throttle


Function Documentation

int write_throttle int   ) 
 

Definition at line 49 of file throttle.c.

References current_throttle.

Referenced by main().

00049                                          {
00050   if (percent_throttle>100) {
00051     percent_throttle=100;
00052   }
00053   else if (percent_throttle < 0) {
00054     percent_throttle=0;
00055   }
00056   DAC12_0DAT=(percent_throttle<<4)+820;  // 820 is the 12 bit offset for 1V. Max throttle gives 3V.  
00057   current_throttle=percent_throttle;
00058   return (0);
00059 }


Variable Documentation

int current_throttle
 

Definition at line 47 of file throttle.c.

Referenced by write_throttle().


Generated on Fri Nov 3 15:17:28 2006 for VCS Application by  doxygen 1.3.9.1