code style

This commit is contained in:
rusefi 2018-11-18 22:38:31 -05:00
parent 11b5ce82d0
commit eba4d7009d
1 changed files with 8 additions and 4 deletions

View File

@ -19,15 +19,19 @@ efitimems_t currentTimeMillis(void) {
Logging logging;
static float zigZagOffset = 0;
static zigZagValue(int index) {
int i = index % 20;
if ( i <= 10)
return i * 10 + zigZagOffset;
return (20 - i) * 10 + zigZagOffset;
if ( i <= 10) {
return i * 10 + zigZagOffset;
} else {
return (20 - i) * 10 + zigZagOffset;
}
}
void testPidAutoZigZag() {
printf("*************************************************** testPidAutoZigZag\r\n");
mockTimeMs = 0;
PID_AutoTune at;