mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
uncrustify libraries/AP_AnalogSource/examples/AnalogSource_Arduino/AnalogSource_Arduino.pde
This commit is contained in:
parent
89dad7de7b
commit
5e7867f972
@ -1,7 +1,7 @@
|
|||||||
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*-
|
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*-
|
||||||
/*
|
/*
|
||||||
Example of AnalogSource Arduino
|
* Example of AnalogSource Arduino
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <FastSerial.h>
|
#include <FastSerial.h>
|
||||||
#include <AP_Math.h>
|
#include <AP_Math.h>
|
||||||
@ -30,12 +30,12 @@ void setup()
|
|||||||
|
|
||||||
void loop()
|
void loop()
|
||||||
{
|
{
|
||||||
while (true) {
|
while (true) {
|
||||||
delay(1000);
|
delay(1000);
|
||||||
Serial.printf("Vcc: %u PIN0: %u PIN1: %u PIN1_avg: %u\n",
|
Serial.printf("Vcc: %u PIN0: %u PIN1: %u PIN1_avg: %u\n",
|
||||||
(unsigned)vcc_source.read_vcc(),
|
(unsigned)vcc_source.read_vcc(),
|
||||||
(unsigned)pin0.read_raw(),
|
(unsigned)pin0.read_raw(),
|
||||||
(unsigned)pin1.read_raw(),
|
(unsigned)pin1.read_raw(),
|
||||||
(unsigned)pin1.read_average());
|
(unsigned)pin1.read_average());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user