Quantcast
Channel: MikroKopter - Forum
Viewing all articles
Browse latest Browse all 45378

Re: Disable BL-Ctrl test complete tone?

$
0
0
Anyone dares to confirm if I'm doing right playing with the string TONDAUER :?


(BL-Ctrl\tags\V0.42\main.c)

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+ High-Mosfets auf Schalten testen
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
...
#define TONDAUER 40000
#define SOUND_E 2
#define SOUND1_A 300
#define SOUND2_A 330
#define SOUND3_A 360

for(i=0; i< (TONDAUER / SOUND2_A) ; i++)
{
HIGH_A_EIN; // Test A
Delay(SOUND_E);
if(MessAD(0) > 50) { MosfetOkay |= 0x01; } else { MosfetOkay &= ~0x01;};
PORTB = 0;
Delay(SOUND1_A);
}
FETS_OFF;

Viewing all articles
Browse latest Browse all 45378