Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2642 → Rev 2643

/trunk/Spektrum.c
16,9 → 16,9
 
void s_update(unsigned char channel, signed int value) // Channel-Diff numbercrunching and finally assign new stickvalue to PPM_in
{
if(value > 127) value = 127; else if(value < -127) value = -127;
if(SenderOkay >= 180) PPM_diff[channel] = ((value - PPM_in[channel]) / 3) * 3;
else PPM_diff[channel] = 0;
if(value > 127) value = 127; else if(value < -127) value = -127;
PPM_in[channel] = value;
}
 
369,9 → 369,9
else if (index == 8) s_update(11,signal); // AUX3 (CH11)
 
#else
if(tmp > 127) tmp = 127; else if(tmp < -127) tmp = -127;
if(SenderOkay >= 180) PPM_diff[index] = ((tmp - PPM_in[index]) / 3) * 3;
else PPM_diff[index] = 0;
if(tmp > 127) tmp = 127; else if(tmp < -127) tmp = -127;
PPM_in[index] = tmp;
#endif
}
/trunk/libfc1284.a
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/main.h
2,7 → 2,7
#define _MAIN_H
 
//#define REDUNDANT_FC_SLAVE
#define REDUNDANT_FC_MASTER
//#define REDUNDANT_FC_MASTER
//#define NO_RECEIVER
 
//#define DEBUG // use to activate debug output to MK-Tool: use Debug(text);
/trunk/rc.c
119,9 → 119,9
tmp = (3 * (PPM_in[index]) + signal) / 4;
if(tmp > signal+1) tmp--; else
if(tmp < signal-1) tmp++;
if(tmp > 127) tmp = 127; else if(tmp < -127) tmp = -127;
if(SenderOkay >= 195) PPM_diff[index] = ((tmp - PPM_in[index]) / 3) * 3;
else PPM_diff[index] = 0;
if(tmp > 127) tmp = 127; else if(tmp < -127) tmp = -127;
PPM_in[index] = tmp;
if(SenderOkay < 50)
{
/trunk/sbus.c
184,9 → 184,9
tmp = (3 * (PPM_in[index]) + signal) / 4;
if(tmp > signal+1) tmp--; else
if(tmp < signal-1) tmp++;
if(tmp > 127) tmp = 127; else if(tmp < -127) tmp = -127;
if(SenderOkay >= 195) PPM_diff[index] = ((tmp - PPM_in[index]) / 3) * 3;
else PPM_diff[index] = 0;
if(tmp > 127) tmp = 127; else if(tmp < -127) tmp = -127;
PPM_in[index] = tmp;
signal = 0;
index++; // next channel
/trunk/version.txt
846,6 → 846,11
EE_Parameter.CamCtrlModeChannel = 0;
EE_Parameter.CamCtrlZoomChannel = 0;
 
2.15a
- Parachute-Input for FC3.0 -> fast swicth off on IO1 (License feature required)
 
2.15b
- Fixed: PPM_Diff[] could contain a value if the channels are > 128. That had effect to the Motor-Switch function.
toDo:
- CalAthmospheare nachführen