0 Flight mode PWM ranges Posted by Ken Kroeker on August 9, 2012 at 1:13pm Can anyone tell me where the PWM ranges are defined for each flight mode? Is there a reason why the PWM range for Flight Mode 1 is so large? You need to be a member of diydrones to add comments! Join diydrones Email me when people reply – Follow
Replies
control_modes.pde:
static byte readSwitch(void){
int pulsewidth = g.rc_5.radio_in; // default for Arducopter
if (pulsewidth > 1230 && pulsewidth <= 1360) return 1;
if (pulsewidth > 1360 && pulsewidth <= 1490) return 2;
if (pulsewidth > 1490 && pulsewidth <= 1620) return 3;
if (pulsewidth > 1620 && pulsewidth <= 1749) return 4; // Software Manual
if (pulsewidth >= 1750) return 5; // Hardware Manual
return 0;
}
I don't think it really matters how large they are. Just that you adjust your radio to send the right pwms.
Jason