mirror of https://github.com/ArduPilot/ardupilot
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()
|
||||
{
|
||||
hal.console->println("ArduPilot Mega PID library test");
|
||||
hal.console->printf("ArduPilot Mega PID library test\n");
|
||||
|
||||
hal.scheduler->delay(1000);
|
||||
//rc.trim();
|
||||
|
@ -43,8 +43,8 @@ void loop()
|
|||
long error = hal.rcin->read(0) - radio_trim;
|
||||
long control= pid.get_pid(error, 1);
|
||||
|
||||
hal.console->print("control: ");
|
||||
hal.console->println(control,BASE_DEC);
|
||||
hal.console->printf("control: ");
|
||||
hal.console->printf("%ld\n", control);
|
||||
}
|
||||
|
||||
AP_HAL_MAIN();
|
||||
|
|
Loading…
Reference in New Issue