Update
This commit is contained in:
parent
861bac42d4
commit
6f9f975ed7
@ -19,7 +19,7 @@ Voici à titre indicatif le matériel utilisé et leur prix d'achat sur eBay int
|
||||
- DC-DC Converter Step Up 1-5V 500mA | 1,15€
|
||||
- 3,7V 600mAh LiPo Battery | 3,25€
|
||||
- RTC Module for Arduino | 1,55€
|
||||
- 3x 10k Ohm resistor + 1x 100k Ohm resistor + 1x 110 Ohm resistor | 0,10€
|
||||
- 3x 10k Ohm resistor + 1x 100k Ohm resistor + 1x 120 Ohm resistor | 0,10€
|
||||
- Right Angle Mini Slide Switch | 0,10€
|
||||
- Cables | 3€
|
||||
- Plastic Electronics Project Box Enclosure DIY 27x60x100mm | 2,40€
|
||||
|
BIN
Variometer.png
BIN
Variometer.png
Binary file not shown.
Before Width: | Height: | Size: 657 KiB After Width: | Height: | Size: 657 KiB |
@ -792,6 +792,7 @@ void menuChangeEvent(MenuChangeEvent changed)
|
||||
|
||||
int readVccPercent()
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
uint16_t real_bat = (int)(4.89 * analogRead(A0));
|
||||
//Serial.println(analogRead(A0));
|
||||
//Serial.println(real_bat);
|
||||
@ -804,6 +805,12 @@ int readVccPercent()
|
||||
percent = 1;
|
||||
|
||||
return percent;
|
||||
=======
|
||||
//unsigned int raw_bat = analogRead(A0);
|
||||
float real_bat = 5 *analogRead(A0) / 1023;
|
||||
average_vcc = average_vcc * 0.94 + real_bat * 0.06;
|
||||
return round((average_vcc - 1.5) * 100 / (3.7 - 1.5));
|
||||
>>>>>>> e481c80098c42f6f2c0e72fbd658baa6ce9cdea5
|
||||
}
|
||||
|
||||
void resetAltitudeSensor()
|
||||
@ -876,6 +883,7 @@ void loop()
|
||||
//float D1 = D2 * D2;
|
||||
/*
|
||||
= (2 * N1 - N2) / D1
|
||||
<<<<<<< HEAD
|
||||
= 2 * (D2 * alt) - D2 * (alt + Altitude) / (tim - tempo)²
|
||||
= 2 * (D2 * alt) - (D2 * alt + D2 * Altitude) / (tim - tempo)²
|
||||
= (D2 * alt) + (D2 * alt) - (D2 * alt) - (D2 * Altitude) / (tim - tempo)²
|
||||
@ -884,6 +892,16 @@ void loop()
|
||||
= ((tim - tempo) * (alt - Altitude)) / (tim - tempo)²
|
||||
|
||||
= (alt - Altitude) / (tim - tempo)
|
||||
=======
|
||||
= 2 * (D2 * alt) - D2 * (alt + Altitude) / (tim - tempo)²
|
||||
= 2 * (D2 * alt) - (D2 * alt + D2 * Altitude) / (tim - tempo)²
|
||||
= (D2 * alt) + (D2 * alt) - (D2 * alt) - (D2 * Altitude) / (tim - tempo)²
|
||||
= (D2 * alt) - (D2 * Altitude) / (tim - tempo)²
|
||||
= D2 * (alt - Altitude) / (tim - tempo)²
|
||||
= ((tim - tempo) * (alt - Altitude)) / (tim - tempo)²
|
||||
|
||||
= (alt - Altitude) / (tim - tempo)
|
||||
>>>>>>> e481c80098c42f6f2c0e72fbd658baa6ce9cdea5
|
||||
*/
|
||||
|
||||
//vario = vario * 0.80 + (1000 * (2 * N1 - N2) / D1) * 0.2;
|
||||
|
Loading…
Reference in New Issue
Block a user