Nice!Agrumi hat geschrieben:moin,Agrumi hat geschrieben:fehlt noch die unterspannungs LED, die kommt morgen dran.
so, LED ist angelötet, gleich mal nen LiPo leer fliegen.
Wie wird die Spannungsschwelle eingestellt?
Nice!Agrumi hat geschrieben:moin,Agrumi hat geschrieben:fehlt noch die unterspannungs LED, die kommt morgen dran.
so, LED ist angelötet, gleich mal nen LiPo leer fliegen.
-Didi- hat geschrieben:Nice!Agrumi hat geschrieben:moin,Agrumi hat geschrieben:fehlt noch die unterspannungs LED, die kommt morgen dran.
so, LED ist angelötet, gleich mal nen LiPo leer fliegen.
Wie wird die Spannungsschwelle eingestellt?
Code: Alles auswählen
/********************************************************************/
/**** battery voltage monitoring ****/
/********************************************************************/
/* for V BAT monitoring
after the resistor divisor we should get [0V;5V]->[0;1023] on analog V_BATPIN
with R1=33k and R2=51k
vbat = [0;1023]*16/VBATSCALE */
// must be associated with #define BUZZER !
//#define VBAT // uncomment this line to activate the vbat code
#define VBATSCALE 131 // change this value if readed Battery voltage is different than real voltage
#define VBATLEVEL1_3S 107 // 10,7V
#define VBATLEVEL2_3S 103 // 10,3V
#define VBATLEVEL3_3S 99 // 9.9V
#define NO_VBAT 16 // Avoid beeping without any battery
Code: Alles auswählen
/********************************************************************/
/**** battery voltage monitoring ****/
/********************************************************************/
/* for V BAT monitoring
after the resistor divisor we should get [0V;5V]->[0;1023] on analog V_BATPIN
with R1=33k and R2=51k
vbat = [0;1023]*16/VBATSCALE */
// must be associated with #define BUZZER !
#define VBAT // uncomment this line to activate the vbat code
#define VBATSCALE 131 // change this value if readed Battery voltage is different than real voltage
#define VBATLEVEL1_3S 107 // 10,7V
#define VBATLEVEL2_3S 103 // 10,3V
#define VBATLEVEL3_3S 99 // 9.9V
#define NO_VBAT 16 // Avoid beeping without any battery
Code: Alles auswählen
static void inline SerialOpen(uint8_t port, uint32_t baud) {
uint8_t h = ((F_CPU / 4 / baud -1) / 2) >> 8;
uint8_t l = ((F_CPU / 4 / baud -1) / 2);
switch (port) {
#if !defined(PROMICRO)
case 0: UCSR0A = (1<<U2X0); UBRR0H = h; UBRR0L = l; UCSR0B |= (1<<RXEN0)|(1<<TXEN0)|(1<<RXCIE0); break;
#else
#if (ARDUINO >= 100) && !defined(TEENSY20)
case 0: UDIEN &= ~(1<<SOFE); // disable the USB frame interrupt of arduino (it causes strong jitter and we dont need it)
#endif
#endif
#if defined(MEGA) || defined(PROMICRO)
case 1: UCSR1A = (1<<U2X1); UBRR1H = h; UBRR1L = l; UCSR1B |= (1<<RXEN1)|(1<<TXEN1)|(1<<RXCIE1); break;
#endif
#if defined(MEGA)
case 2: UCSR2A = (1<<U2X2); UBRR2H = h; UBRR2L = l; UCSR2B |= (1<<RXEN2)|(1<<TXEN2)|(1<<RXCIE2); break;
case 3: UCSR3A = (1<<U2X3); UBRR3H = h; UBRR3L = l; UCSR3B |= (1<<RXEN3)|(1<<TXEN3)|(1<<RXCIE3); break;
#endif
}
}
Code: Alles auswählen
case 0: UDIEN &= ~(1<<SOFE); // disable the USB frame interrupt of arduino (it causes strong jitter and we dont need it)
Code: Alles auswählen
case 0: UDIEN &= ~(1<<SOFE); break; // disable the USB frame interrupt of arduino (it causes strong jitter and we dont need it)
Beim Funnel einleiten hat er nur gerollt, beim schnellen Kurvenfliegen komplett gedreht!x4FF3 hat geschrieben:so ein ähnliches verhalten hab ich auch, nur das er sich bei mir nicht komplett dreht
Ich weiss zwar nicht, wie ein Video helfen könnte, aber kann ich sicher mal machen!x4FF3 hat geschrieben:könntest du von dem Ganzen mal ein Video machen? Ich weiß nicht ob ich in den nexten Tagen dazu komm