mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Vector library expansion (#12968)
This commit is contained in:
parent
fc4b7a0008
commit
f71170db1b
37 changed files with 630 additions and 587 deletions
|
@ -487,7 +487,7 @@ static void showSensorsPage(void)
|
|||
|
||||
#if defined(USE_ACC)
|
||||
if (sensors(SENSOR_ACC)) {
|
||||
tfp_sprintf(lineBuffer, format, "ACC", lrintf(acc.accADC[X]), lrintf(acc.accADC[Y]), lrintf(acc.accADC[Z]));
|
||||
tfp_sprintf(lineBuffer, format, "ACC", lrintf(acc.accADC.x), lrintf(acc.accADC.y), lrintf(acc.accADC.z));
|
||||
padLineBuffer();
|
||||
i2c_OLED_set_line(dev, rowIndex++);
|
||||
i2c_OLED_send_string(dev, lineBuffer);
|
||||
|
@ -503,7 +503,7 @@ static void showSensorsPage(void)
|
|||
|
||||
#ifdef USE_MAG
|
||||
if (sensors(SENSOR_MAG)) {
|
||||
tfp_sprintf(lineBuffer, format, "MAG", lrintf(mag.magADC[X]), lrintf(mag.magADC[Y]), lrintf(mag.magADC[Z]));
|
||||
tfp_sprintf(lineBuffer, format, "MAG", lrintf(mag.magADC.x), lrintf(mag.magADC.y), lrintf(mag.magADC.z));
|
||||
padLineBuffer();
|
||||
i2c_OLED_set_line(dev, rowIndex++);
|
||||
i2c_OLED_send_string(dev, lineBuffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue