//===========================================================================================
//	For each device, there is a maximum DAC voltage and a minimum percent of that maximum.
//
//	For cameras, the maximum DAC voltage is the operating voltage of the camera and the
//	minimum_percent is 100 percent, since the camera is to be powered at its operating
//	voltage at all times.
//
//	For transporters, the maximum DAC voltage is ~110% rated motor voltage and the
//	minimum percent is 0 percent, since the motor must be allowed to be stopped.
//
//	For external lights, when present, the DAC voltage is the rated lamp voltage.
//	Whether external lights are not present or not, the minimum DAC voltage is ~72 volts,
//	since the DC-to-DC converter must be above a brown-out threshold for powering the camera's
//	internal lights (and camera lift when present). Four of the light heads are rated at
//	less than 72 volts; however, these light heads are used on straight-line cameras with
//	internal lights on camera power, no camera lift, and no DC-to-DC converter. Consequently,
//	their minimums are 0 percent, 0 volts. An exception is necessary since light voltage
//	polarity is used to select either viewing through the front camera or rear camera
//	(when present). To switch the light polarity relay, no voltage should be present on the
//	relay contacts; therefore, the functions turn_off() and turn_on() handle this special
//	case without regard to these table values. The function turn_off() zeroes light voltage
//	and turn_on() restores the former voltage.
//-------------------------------------------------------------------------------------------
//enum	VoltageDacDevices
//{	
//    UNINITIALIZED_DAC_DEVICE,
//    CAMERA_DAC,
//    LEFT_MOTOR_DAC,
//    RIGHT_MOTOR_DAC,
//    LIGHTS_DAC,
//};
//
//struct Device
//{	
//    unsigned char type;
//    unsigned char maximum_voltage[2]; Max volts sc, mc
//    unsigned char minimum_percent[2]; Min percent sc, mc
//    unsigned char forward_polarity;	
//};
//
//
//
// UNINITIALIZED_DAC_DEVICE
//
//
0   0   0   0   0   0
//
//
//
//
// CAMERA_DAC
//
//
0   0   0   0   0   0   // NO_CAMERA         // S/C: OFF           ; M/C: OFF
1   82  40  100 100 0   // OZ_II             // S/C: 82 V constant ; M/C: 40 V constant
2   82  40  100 100 0   // OZ_II_EC3051      // S/C: 82 V constant ; M/C: 40 V constant
3   82  40  100 100 0   // NITE_LITE         // S/C: 82 V constant ; M/C: 40 V constant
4   82  40  100 100 0   // PAN_TILT          // S/C: 82 V constant ; M/C: 40 V constant
5   82  40  100 100 0   // PANTHER           // S/C: 82 V constant ; M/C: 40 V constant
6   82  40  100 100 0   // NIGHT_OWL         // S/C: 82 V constant ; M/C: 40 V constant
7   0   18  0   100 0   // PS2               // S/C: OFF           ; M/C: 18 V constant
8   0   20  0   100 0   // PS3               // S/C: OFF           ; M/C: 20 V constant
9   82  40  100 100 0   // OZ_III_MZ300      // S/C: 82 V constant ; M/C: 40 V constant
10  82  50  100 100 0   // OZ_III_EC3044     // S/C: 82 V constant ; M/C: 50 V constant
11  82  50  100 100 0   // OZIII_S_MZ210     // S/C: 82 V constant ; M/C: 50 V constant
12  0   20  0   100 0   // SR3               // S/C: OFF           ; M/C: 20 V constant
13  82  40  100 100 0   // NITE_LITE_III     // S/C: 82 V constant ; M/C: 40 V constant
14  82  50  100 100 0   // OZ4_HD            // S/C: 82 V constant ; M/C: 50 V constant
15  0   0   0   0   0   // QUICK_ZOOM        // S/C: OFF           ; M/C: OFF
16  0   0   0   0   0   // LITE_STICK        // S/C: OFF           ; M/C: OFF
17  0   0   0   0   0   // AUX_VIDEO         // S/C: OFF           ; M/C: OFF
18  140 40  100 100 0   // LAMP_II_SONY      // S/C: 140 V constant; M/C: 40 V constant
19  140 40  100 100 0   // LAMP_II_EC3044    // S/C: 140 V constant; M/C: 40 V constant
20  140 40  100 100 0   // LAMP_II_MZ210     // S/C: 140 V constant; M/C: 40 V constant
21  0   35  0   100 0   // ILLUMINATOR       // S/C: OFF           ; M/C: 35 V constant
22  120 0   100 0   0   // INDUSTRY_STANDARD // S/C: 120 V constant; M/C: OFF
23  0   40  0   100 0   // DUC_CAMERA        // S/C: OFF           ; M/C: 40 V constant
24  0   0   0   0   0   // PS3_LAMP_I        // S/C: OFF           ; M/C: OFF
25  0   0   0   0   0   // SEEKER_SYSTEM     // S/C: OFF           ; M/C: OFF
26  82  40  100 100 0   // IMX_CAMERA        // S/C: 82 V constant ; M/C: 40 V constant
27  0   0   0   0   0   // MAINLINE_MPT      // S/C: OFF           ; M/C: OFF          ; powered by lateral PCU
28  0   40  0   100 0   // DUC_WITH_EXTERNAL // S/C: OFF           ; M/C: 40 V constant
29  0   0   0   0   0   // ANALOG_SONAR      // S/C: OFF           ; M/C: OFF
30  24  24  100 100 0   // CK314             // S/C: 24 V constant ; M/C: 24 V constant
31  24  24  100 100 0   // STRAIGHT_CAMERA   // S/C: 24 V constant ; M/C: 24 V constant
32  24  24  100 100 0   // ANGLED_CAMERA     // S/C: 24 V constant ; M/C: 24 V constant
33  0   55  0   100 0   // HD380_DUC         // S/C: OFF           ; M/C: 55 V constant
34  0   55  0   100 0   // HD390             // S/C: OFF           ; M/C: 55 V constant
35  0   55  0   100 0   // HD300_3           // S/C: OFF           ; M/C: 55 V constant
36  0   55  0   100 0   // HD370             // S/C: OFF           ; M/C: 55 V constant
37  0   55  0   100 0   // CZ340             // S/C: OFF           ; M/C: 55 V constant
//
//
//
//
// LEFT_MOTOR_DAC
//
//
0   0   0   0   0   0   // NO_TRANSPORTER          // S/C: OFF           ; M/C: OFF
1   140 140 0   0   0   // SHORTY                  // S/C: 0-140 V       ; M/C: 0-140 V; single motor
2   140 140 0   0   0   // ULTRASHORTY             // S/C: 0-140 V       ; M/C: 0-140 V; single motor
3   150 140 100 0   0   // STEERABLE_PIPE_RANGER   // S/C: 150 V constant; M/C: 0-140 V; left motor
4   140 140 0   0   0   // PIPE_RANGER             // S/C: 0-140 V       ; M/C: 0-140 V; single motor
5   150 140 100 0   0   // STEERABLE_MUD_MASTER    // S/C: 150 V constant; M/C: 0-140 V; left motor
6   140 140 0   0   0   // MUD_MASTER              // S/C: 0-140 V       ; M/C: 0-140 V; single motor
7   0   58  0   0   0   // KOALA                   // S/C: OFF           ; M/C: 0-58 V ; single motor
8   140 140 0   0   0   // CPR_WM350_HI_V          // S/C: 0-140 V       ; M/C: 0-140 V; left motor
9   60  60  0   0   0   // CPR_WM360_60V           // S/C: 0-60 V        ; M/C: 0-60 V ; left motor
10  140 140 0   0   0   // ULTRA_SHORTY_21         // S/C: 0-140 V       ; M/C: 0-140 V; single motor
11  140 140 0   0   0   // ULTRA_SHORTY_III        // S/C: 0-140 V       ; M/C: 0-140 V; single motor
12  140 140 0   0   0   // WTR                     // S/C: 0-140 V       ; M/C: 0-140 V; single motor
13  140 140 0   0   0   // LAMP_I_TRANSPORTER      // S/C: 0-140 V       ; M/C: 0-140 V; single motor
14  140 140 0   0   0   // LAMP_II_SMALL_WHEEL     // S/C: 0-140 V       ; M/C: 0-140 V; single motor
15  105 105 0   0   0   // LAMP_II_LARGE_WHEEL     // S/C: 0-105 V       ; M/C: 0-105 V; single motor
16  0   110 0   0   0   // BADGER_NS               // S/C: OFF           ; M/C: 0-110 V; single motor
17  0   0   0   0   0   // LOGIBALL_6              // S/C: OFF           ; M/C: OFF    ; no 2nd motor
18  0   0   0   0   0   // LOGIBALL_8_AND_LARGER   // S/C: OFF           ; M/C: OFF    ; no 2nd motor
19  38  38  0   0   0   // LATERAL_CLEANING_SYSTEM // S/C: 0-38 V        ; M/C: 0-38 V ; single motor
20  95  95  0   0   0   // NPR_TRACTOR             // S/C: 0-95 V        ; M/C: 0-95 V ; single motor
21  24  24  0   0   0   // LOGIBALL_6_LCS          // S/C: 0-24 V        ; M/C: 0-24 V ; single motor
22  90  90  0   0   0   // LOGIBALL_8_LCS          // S/C: 0-90 V        ; M/C: 0-90 V ; single motor
23  12  12  0   0   0   // CURRAHEE_STD_CUTTER     // S/C: 0-12V         ; M/C: 0-12V  ; up/down motor
24  12  12  0   0   0   // CURRAHEE_FF_CUTTER      // S/C: 0-12V         ; M/C: 0-12V  ; up/down motor
//
//
//
//
// RIGHT_MOTOR_DAC
//
//
0   0   0   0   0   0   // NO_TRANSPORTER          // S/C: OFF   ; M/C: OFF
1   0   0   0   0   0   // SHORTY                  // S/C: OFF   ; M/C: OFF    ; no 2nd motor
2   0   0   0   0   0   // ULTRASHORTY             // S/C: OFF   ; M/C: OFF    ; no 2nd motor
3   0   140 0   0   255 // STEERABLE_PIPE_RANGER   // S/C: OFF   ; M/C: 0-140 V; right motor
4   0   0   0   0   0   // PIPE_RANGER             // S/C: OFF   ; M/C: OFF    ; no 2nd motor
5   0   140 0   0   255 // STEERABLE_MUD_MASTER    // S/C: OFF   ; M/C: 0-140 V; right motor
6   0   0   0   0   0   // MUD_MASTER              // S/C: OFF   ; M/C: OFF    ; no 2nd motor
7   0   0   0   0   0   // KOALA                   // S/C: OFF   ; M/C: OFF    ; no 2nd motor
8   0   140 0   0   255 // CPR_WM350_HI_V          // S/C: OFF   ; M/C: 0-140 V; right motor
9   0   60  0   0   255 // CPR_WM360_60V           // S/C: OFF   ; M/C: 0-60 V ; right motor
10  0   0   0   0   0   // ULTRA_SHORTY_21         // S/C: OFF   ; M/C: OFF    ; no 2nd motor
11  0   0   0   0   0   // ULTRA_SHORTY_III        // S/C: OFF   ; M/C: OFF    ; no 2nd motor
12  0   0   0   0   0   // WTR                     // S/C: OFF   ; M/C: OFF    ; no 2nd motor
13  0   0   0   0   0   // LAMP_I_TRANSPORTER      // S/C: OFF   ; M/C: OFF    ; no 2nd motor
14  0   0   0   0   0   // LAMP_II_SMALL_WHEEL     // S/C: OFF   ; M/C: OFF    ; no 2nd motor
15  0   0   0   0   0   // LAMP_II_LARGE_WHEEL     // S/C: OFF   ; M/C: OFF    ; no 2nd motor
16  0   0   0   0   0   // BADGER_NS               // S/C: OFF   ; M/C: OFF    ; no 2nd motor
17  0   24  0   0   255 // LOGIBALL_6              // S/C: OFF   ; M/C: 0-24 V ; single motor
18  0   48  0   0   255 // LOGIBALL_8_AND_LARGER   // S/C: OFF   ; M/C: 0-48 V ; single motor
19  0   0   0   0   0   // LATERAL_CLEANING_SYSTEM // S/C: OFF   ; M/C: OFF    ; no 2nd motor
20  0   0   0   0   0   // NPR_TRACTOR             // S/C: OFF   ; M/C: OFF    ; no 2nd motor
21  0   0   0   0   0   // LOGIBALL_6_LCS          // S/C: OFF   ; M/C: OFF    ; no 2nd motor
22  0   0   0   0   0   // LOGIBALL_8_LCS          // S/C: OFF   ; M/C: OFF    ; no 2nd motor
23  18  18  0   0   0   // CURRAHEE_STD_CUTTER     // S/C: 0-18 V; M/C: 0-18 V ; cw/ccw motor
24  18  18  0   0   0   // CURRAHEE_FF_CUTTER      // S/C: 0-18 V; M/C: 0-18 V ; cw/ccw motor
//
//
//
//
// LIGHTS_DAC
//
//
0   0   0   0   0   0   // LIGHTS_NONE                     // S/C: OFF   ; M/C: OFF
1   0   82  0   100 0   // TRILIGHT                        // S/C: OFF   ; M/C: 82 V constant
2   0   82  0   100 0   // HPL_10                          // S/C: OFF   ; M/C: 82 V constant
3   0   82  0   100 0   // HPL_8                           // S/C: OFF   ; M/C: 82 V constant
4   0   24  0   0   0   // HPL_6_PARALLEL                  // S/C: OFF   ; M/C: 0-24 V
5   0   72  0   100 0   // HPL_6_SERIES                    // S/C: OFF   ; M/C: 72 V constant
6   0   48  0   0   0   // HPL_55                          // S/C: OFF   ; M/C: OFF
7   0   82  0   100 0   // SHORTY_EXTERNAL                 // S/C: OFF   ; M/C: 82 V constant
8   0   24  0   0   0   // PS2_EXTERNAL                    // S/C: OFF   ; M/C: 0-24 V
9   0   24  0   88  0   // PS2_INTERNAL_ONLY               // S/C: OFF   ; M/C: 21-24 V
10  0   26  0   70  0   // PS3_INTERNAL_ONLY               // S/C: OFF   ; M/C: 18-26 V
11  0   26  0   70  0   // SR3_INTERNAL_ONLY               // S/C: OFF   ; M/C: 18-26 V
12  0   82  0   100 0   // INTERNAL_LEDS                   // S/C: OFF   ; M/C: 82 V constant
13  0   82  0   100 0   // INTERNAL_INCANDESCENTS          // S/C: OFF   ; M/C: 82 V constant
14  0   82  0   100 0   // CPR_EXTERNAL_INCANDESCENTS      // S/C: OFF   ; M/C: 82 V constant
15  0   82  0   0   0   // ARIES_LEDS                      // S/C: OFF   ; M/C: 0-82 V
16  0   97  0   100 0   // DUC_INTERNAL_LEDS               // S/C: OFF   ; M/C: 97 V constant
17  0   120 0   100 0   // LAMP_II_INTERNAL                // S/C: OFF   ; M/C: 120 V constant
18  0   120 0   100 0   // INTERNAL_LEDS_PLATINUM          // S/C: OFF   ; M/C: 120 V constant
19  0   120 0   100 0   // INTERNAL_INCANDESCENTS_PLATINUM // S/C: OFF   ; M/C: 120 V constant
20  0   36  0   56  0   // PS3_INTERNAL_WITH_TRANSLATOR    // S/C: OFF   ; M/C: 20-36 V
21  0   36  0   56  0   // SR3_INTERNAL_WITH_TRANSLATOR    // S/C: OFF   ; M/C: 20-36 V
22  0   0   0   0   0   // LEDS_LAMP_I                     // S/C: OFF   ; M/C: OFF
23  0   110 0   100 0   // SEEKER_LIGHTS                   // S/C: OFF   ; M/C: 110 V constant
24  0   150 0   53  0   // IMX_INTERNAL                    // S/C: OFF   ; M/C: 79-150 V
25  0   87  0   100 0   // CATVS_LIGHTS                    // S/C: OFF   ; M/C: 87 V constant
26  0   55  0   100 0   // NOT_APPLICABLE_LIGHTS           // S/C: OFF   ; M/C: 55 V constant
27  0   82  0   100 0   // CPR_EXTERNAL_LEDS               // S/C: OFF   ; M/C: 82 V constant
28  48  48  0   0   0   // CURRAHEE_LIGHTS                 // S/C: 0-48 V; M/C: 0-48V         ; fwd/rev motor
29  0   80  0   100 0   // LM403_TEST                      // S/C: OFF   ; M/C: 80 V constant
30  0   97  0   100 0   // HD390_LIGHTS                    // S/C: OFF   ; M/C: 97 V constant
31  0   97  0   100 0   // SF379_LIGHTS                    // S/C: OFF   ; M/C: 97 V constant
32  0   97  0   100 0   // SF387_LIGHTS                    // S/C: OFF   ; M/C: 97 V constant
33  0   97  0   100 0   // SOLID_FX_JEEP_LIGHTS            // S/C: OFF   ; M/C: 97 V constant
//