1,3 → 1,20 |
/****************************************************************************************************************** |
V0.82b-Arthur-P 2010-12-18 |
------------------------------------------------------------------------------------------------------------------ |
Version includes only support for external HEF4017 for FC1.x hardware, NOT for Twi2Ppm converters for ESCs. |
|
2010-12-18 Chanded the if(Platinenversion < 20) statement within this file to correctly identify external HEF4017. |
Arthur P. Modified to use several parameters for servo control: |
User_Parameter4: |
User_Parameter5: |
User_Parameter6: |
User_Parameter7: |
User_Parameter8: Use external HEF4017 if bit 8 is set (>127). The remaining 7 bits are used |
for the shutter cycle counter: the value is multiplied by 5 programmatically, |
resulting in steps of approx. 0.1sec. Minimum value to start using the |
interval timer is 10 (approx. 1 sec, or countervalue of 50). Note that this |
was originally done through user para 6. |
******************************************************************************************************************/ |
/*####################################################################################### |
Decodieren eines RC Summen Signals |
#######################################################################################*/ |
75,7 → 92,19 |
PPM_in[index] = tmp; |
} |
index++; |
if(PlatinenVersion < 20) |
/****************************************************************************************************************** |
Arthur P: Modified the code to check the value of parameter 8. If 128 or higher then a HEF4017 is |
expected and will be used. Else J7 and J9 are seen as separate normal outputs. |
if((PlatinenVersion < 20) |
20100802 Inserted changes into v.0.82b code. |
******************************************************************************************************************/ |
|
// if(PlatinenVersion < 20) |
|
if((PlatinenVersion < 20) && (Parameter_UserParam8 < 128 )) |
/****************************************************************************************************************** |
Arthur P: End of modification ot if statement. |
******************************************************************************************************************/ |
{ |
if(index == 5) J3High; else J3Low; // Servosignal an J3 anlegen |
if(index == 6) J4High; else J4Low; // Servosignal an J4 anlegen |
148,7 → 177,19 |
ppm_in[index] = tmp; |
} |
else ROT_ON; |
if(PlatinenVersion < 20) |
/****************************************************************************************************************** |
Arthur P: Modified the code to check the value of parameter 8. If 128 or higher then a HEF4017 is |
expected and will be used. Else J7 and J9 are seen as separate normal outputs. |
if((PlatinenVersion < 20) |
20100802 Inserted changes into v.0.82b code. |
******************************************************************************************************************/ |
|
// if(PlatinenVersion < 20) |
|
if((PlatinenVersion < 20) && (Parameter_UserParam8 < 128 )) |
/****************************************************************************************************************** |
Arthur P: End of modification ot if statement. |
******************************************************************************************************************/ |
{ |
if(index == 5) J3High; else J3Low; // Servosignal an J3 anlegen |
if(index == 6) J4High; else J4Low; // Servosignal an J4 anlegen |