Update
This commit is contained in:
parent
95269da03f
commit
e481c80098
@ -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 |
@ -799,7 +799,7 @@ void menuChangeEvent(MenuChangeEvent changed)
|
||||
int readVccPercent()
|
||||
{
|
||||
//unsigned int raw_bat = analogRead(A0);
|
||||
float real_bat = ((analogRead(A0) * (3.7 / 1024)) * 2);
|
||||
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));
|
||||
}
|
||||
@ -881,6 +881,7 @@ void loop()
|
||||
= (D2 * alt) - (D2 * Altitude) / (tim - tempo)²
|
||||
= D2 * (alt - Altitude) / (tim - tempo)²
|
||||
= ((tim - tempo) * (alt - Altitude)) / (tim - tempo)²
|
||||
|
||||
= (alt - Altitude) / (tim - tempo)
|
||||
*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user