<< Previous | Next >> | |
|
int servo_graph( int which, word start, word nlines, word samples, word what, int low, int high );
Description
- Draw ASCII-art graph of servo response. This is primarily intended for debugging. It should be called after resetting the sample collection table using
servo_stats_reset()
, then executing a movement whose response is to be graphed.Parameters
- which
- Servo (0 or 1)
- start
- Starting sample number
- nlines
- Number of lines (sample bins) in graph - vertical axis
- samples
- Number of samples to cover (should be multiple of nlines)
- what
- Which statistic to print: 0 is for error; 1 for error integral; 2 for error rate (differential), 3 for PWM output setting. These may be customized to have different meanings
- low
- Low range of horizontal axis
- high
- High range of horizontal axis
Return Value
- 0: OK
-1: errorLibrary
- SERVO.LIB
See Also
- servo_alloc_table, servo_read_table, servo_stats_reset
Dynamic C Functions | << Previous | Next >> | rabbit.com |