mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
PID: Unify from print or println to printf.
This commit is contained in:
parent
4a60850558
commit
9de6318b77
@ -15,7 +15,7 @@ PID pid;
|
|||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
hal.console->println("ArduPilot Mega PID library test");
|
hal.console->printf("ArduPilot Mega PID library test\n");
|
||||||
|
|
||||||
hal.scheduler->delay(1000);
|
hal.scheduler->delay(1000);
|
||||||
//rc.trim();
|
//rc.trim();
|
||||||
@ -43,8 +43,8 @@ void loop()
|
|||||||
long error = hal.rcin->read(0) - radio_trim;
|
long error = hal.rcin->read(0) - radio_trim;
|
||||||
long control= pid.get_pid(error, 1);
|
long control= pid.get_pid(error, 1);
|
||||||
|
|
||||||
hal.console->print("control: ");
|
hal.console->printf("control: ");
|
||||||
hal.console->println(control,BASE_DEC);
|
hal.console->printf("%ld\n", control);
|
||||||
}
|
}
|
||||||
|
|
||||||
AP_HAL_MAIN();
|
AP_HAL_MAIN();
|
||||||
|
Loading…
Reference in New Issue
Block a user