ArduPilot Mega: 1000-2000 usecond range for Servo


running 4 servos ardupilot mega board, using code below, little jitter...can any1 see if doing mistake?...
i running ardupilot mega (atmega1280) on 16mhz...


tccr1a =((1<<wgm11)|(1<<com1b1)|(1<<com1c1));
tccr1b = (1<<wgm13)|(1<<wgm12)|(1<<cs11);
ocr1b = 3000; //pb6, out2
ocr1c = 3000; //pb7 out3
icr1 = 40000; //50hz freq...

tccr5a =((1<<wgm51)|(1<<com5b1)|(1<<com5c1));
tccr5b = (1<<wgm53)|(1<<wgm52)|(1<<cs51);
ocr5b = 3000; //pl4, out0
ocr5c = 3000; //pl5, out1
icr5 = 40000; //50hz freq

how "a little"?  what rest of program doing?


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > ArduPilot Mega: 1000-2000 usecond range for Servo


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums