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?
Tags:

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
Permalink Reply by Ken Kroeker on August 9, 2012 at 1:18pm Thanks for that. I can get 6 modes if I change the ranges a little. For some reason I can't get mixing to deliver the unique values in the range that mission planner wants.
Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.184 members
24 members
51 members
1288 members
78 members
© 2013 Created by Chris Anderson.
Powered by
