Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hugo/feature/Use MotionKit in ReinforcerKit #1190

Merged
merged 3 commits into from
Dec 9, 2022

Conversation

HPezz
Copy link
Contributor

@HPezz HPezz commented Dec 7, 2022

Moving reinforcers now use MotionKit to execute a perfect 1080 rotation

  • Validated on Hugo's Robot
  • Validated on a sealed robot

@github-actions
Copy link

github-actions bot commented Dec 7, 2022

File comparision analysis report

🔖 Info

Target Flash Used (%) Flash Available (%) Static RAM (%)
bootloader 169972 (64%) 92172 (35%) 30928 (5%)
os 437592 (27%) 1127080 (72%) 81736 (15%)
Click to show memory sections
| -          |      Hex |     Bytes |  KiB |
|------------|---------:|----------:|-----:|
| Flash      | 0x200000 | 2 097 152 | 2048 |
| SRAM       |  0x80000 |   524 288 |  512 |
| Bootloader |  0x40000 |   262 144 |  256 |
| Header     |   0x1000 |     4 096 |    4 |
| OS         | 0x17E000 | 1 564 672 | 1528 |
| Tail       |   0x1000 |     4 096 |    4 |
| Scratch    |  0x40000 |   262 144 |  256 |

📝 Summary

Click to show summary
  • ✔️ - existing target
  • ✨ - new target
  • ⚰️ - deleted target
  • ✅ - files are the same
  • ❌ - files are different
Target Status .bin .map Total Flash (base/head) Total Flash Δ Static RAM (base/head) Static RAM Δ
LekaOS ✔️ 421048 (20%)
437592 (20%)
📈
16544 (3%)
80704 (15%)
81736 (15%)
📈
1032 (1%)
bootloader ✔️ 169972 (8%) ø 30928 (5%) ø
functional_ut_boost_ut ✔️ 394076 (18%) ø 20456 (3%) ø
functional_ut_core_imu ✔️ 377068 (17%) ø 20432 (3%) ø
functional_ut_deep_sleep_core_buffered_serial ✔️ 360236 (17%) ø 20440 (3%) ø
functional_ut_deep_sleep_core_motor ✔️ 364476 (17%) ø 20480 (3%) ø
functional_ut_deep_sleep_core_pwm ✔️ 366612 (17%) ø 20480 (3%) ø
functional_ut_deep_sleep_log_kit ✔️ 352504 (16%) ø 20408 (3%) ø
functional_ut_deep_sleep_mbed_hal ✔️ 354216 (16%) ø 20408 (3%) ø
functional_ut_file_manager ✔️ 374536 (17%) ø 20696 (3%) ø
functional_ut_imu_kit ✔️ 382560 (18%) ø 20424 (3%) ø
functional_ut_io_expander ✔️ 359232 (17%) ø 20424 (3%) ø
functional_ut_qdac ✔️ 360400 (17%) ø 20424 (3%) ø
spike_lk_accel_gyro ✔️ 71184 (3%) ø 11808 (2%) ø
spike_lk_audio ✔️ 125076 (5%) ø 14568 (2%) ø
spike_lk_behavior_kit ✔️ 190200 (9%) ø 48144 (9%) ø
spike_lk_ble ✔️ 229024 (10%) ø 28328 (5%) ø
spike_lk_bluetooth ✔️ 82948 (3%) ø 11544 (2%) ø
spike_lk_cg_animations ✔️ 145848 (6%) ø 46528 (8%) ø
spike_lk_color_kit ✔️ 65776 (3%) ø 13744 (2%) ø
spike_lk_command_kit ✔️ 193048 (9%)
209656 (9%)
📈
16608 (8%)
50968 (9%)
52016 (9%)
📈
1048 (2%)
spike_lk_config_kit ✔️ 126956 (6%) ø 14312 (2%) ø
spike_lk_coreled ✔️ 76164 (3%) ø 13688 (2%) ø
spike_lk_core_touch_sensor ✔️ 80228 (3%) ø 12256 (2%) ø
spike_lk_event_queue ✔️ 74800 (3%) ø 12072 (2%) ø
spike_lk_file_manager_kit ✔️ 139016 (6%) ø 14416 (2%) ø
spike_lk_file_reception ✔️ 327112 (15%) ø 27576 (5%) ø
spike_lk_flash_memory ✔️ 63880 (3%) ø 11448 (2%) ø
spike_lk_fs ✔️ 174808 (8%) ø 47904 (9%) ø
spike_lk_imu_kit ✔️ 87700 (4%) ø 12176 (2%) ø
spike_lk_lcd ✔️ 162428 (7%) ø 46632 (8%) ø
spike_lk_led_kit ✔️ 103992 (4%) ø 14608 (2%) ø
spike_lk_log_kit ✔️ 63288 (3%) ø 12256 (2%) ø
spike_lk_motion_kit ✔️ 101148 (4%) ø 14184 (2%) ø
spike_lk_motors ✔️ 62864 (2%) ø 11488 (2%) ø
spike_lk_qdac ✔️ 78628 (3%) ø 11816 (2%) ø
spike_lk_reinforcer ✔️ 103480 (4%)
207000 (9%)
📈
103520 (100%)
14608 (2%)
49200 (9%)
📈
34592 (236%)
spike_lk_rfid ✔️ 78956 (3%) ø 11504 (2%) ø
spike_lk_sensors_battery ✔️ 78196 (3%) ø 12568 (2%) ø
spike_lk_sensors_light ✔️ 60056 (2%) ø 11440 (2%) ø
spike_lk_sensors_microphone ✔️ 72496 (3%) ø 11504 (2%) ø
spike_lk_sensors_temperature_humidity ✔️ 67048 (3%) ø 11424 (2%) ø
spike_lk_sensors_touch ✔️ 68600 (3%) ø 11432 (2%) ø
spike_lk_serial_number ✔️ 114308 (5%) ø 14056 (2%) ø
spike_lk_ticker_timeout ✔️ 69052 (3%) ø 11632 (2%) ø
spike_lk_update_process_app_base ✔️ 143188 (6%) ø 15552 (2%) ø
spike_lk_update_process_app_update ✔️ 77632 (3%) ø 12352 (2%) ø
spike_lk_watchdog_isr ✔️ 80068 (3%) ø 13272 (2%) ø
spike_lk_wifi ✔️ 116392 (5%) ø 14808 (2%) ø
spike_mbed_blinky ✔️ 58032 (2%) ø 11400 (2%) ø
spike_mbed_watchdog_ticker_vs_thread ✔️ 63208 (3%) ø 12448 (2%) ø
spike_stl_cxxsupport ✔️ 58456 (2%) ø 11400 (2%) ø

🗺️ Map files diff output

Click to show diff list
LekaOS (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/LekaOS-map.txt	2022-12-09 15:17:02.768563002 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/LekaOS-map.txt	2022-12-09 15:17:03.128559110 +0000
@@ -1,49 +1,53 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       652(+652) |     18(+18) |     227(+227) |
+| [fill]                     |       692(+692) |     18(+18) |     215(+215) |
 | [lib]/ActivityKit.a        |   19586(+19586) |       0(+0) |         0(+0) |
 | [lib]/BLEKit.a             |     1436(+1436) |       0(+0) |         0(+0) |
 | [lib]/BatteryKit.a         |       324(+324) |       0(+0) |         0(+0) |
 | [lib]/BehaviorKit.a        |     1830(+1830) |       0(+0) |         0(+0) |
 | [lib]/ColorKit.a           |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a         |     1120(+1120) |       0(+0) |         0(+0) |
 | [lib]/CoreBattery.a        |       472(+472) |       0(+0) |         0(+0) |
 | [lib]/CoreBufferedSerial.a |         78(+78) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a     |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |       116(+116) |       0(+0) |         0(+0) |
 | [lib]/CoreFlashMemory.a    |       546(+546) |       0(+0) |         0(+0) |
+| [lib]/CoreI2C.a            |         36(+36) |       0(+0) |         0(+0) |
+| [lib]/CoreIMU.a            |     5018(+5018) |       0(+0) |         0(+0) |
 | [lib]/CoreMCU.a            |         16(+16) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a          |       176(+176) |       0(+0) |         0(+0) |
 | [lib]/CoreMutex.a          |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a            |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreQSPI.a           |       160(+160) |       0(+0) |         0(+0) |
 | [lib]/CoreRFIDReader.a     |       556(+556) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a            |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a       |       930(+930) |       0(+0) |         0(+0) |
 | [lib]/CoreTimeout.a        |       204(+204) |       0(+0) |         0(+0) |
 | [lib]/CoreVideo.a          |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/CriticalSection.a    |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a       |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a     |     1432(+1432) |       0(+0) |         0(+0) |
 | [lib]/FirmwareKit.a        |       822(+822) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |         94(+94) |       0(+0) |         0(+0) |
+| [lib]/IMUKit.a             |     1416(+1416) |       0(+0) |         0(+0) |
 | [lib]/LedKit.a             |   19410(+19410) |       0(+0) |       10(+10) |
+| [lib]/MotionKit.a          |       726(+726) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |     1054(+1054) |       0(+0) |         8(+8) |
-| [lib]/ReinforcerKit.a      |     1544(+1544) |       0(+0) |         0(+0) |
+| [lib]/ReinforcerKit.a      |     1636(+1636) |       0(+0) |         0(+0) |
 | [lib]/SerialNumberKit.a    |       596(+596) |       0(+0) |         0(+0) |
-| [lib]/Utils.a              |         34(+34) |       0(+0) |         0(+0) |
+| [lib]/Utils.a              |         82(+82) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a           |       910(+910) |       0(+0) |       36(+36) |
 | [lib]/bootutil.a           |     1362(+1362) |     12(+12) |     132(+132) |
 | [lib]/c.a                  |   49944(+49944) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a                |     7148(+7148) |       0(+0) |         0(+0) |
-| [lib]/m.a                  |       564(+564) |       0(+0) |         0(+0) |
-| [lib]/mbed-os-static.a     | 173368(+173368) |   773(+773) | 19647(+19647) |
+| [lib]/m.a                  |     2092(+2092) |       0(+0) |         0(+0) |
+| [lib]/mbed-os-static.a     | 179856(+179856) |   773(+773) | 19667(+19667) |
 | [lib]/misc                 |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |   10684(+10684) |     16(+16) |     204(+204) |
 | __/__                      |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj               |   71288(+71288) |   548(+548) | 25203(+25203) |
-| Subtotals                  | 378148(+378148) | 3944(+3944) | 76392(+76392) |
-Total Static RAM memory (data + bss): 80336(+80336) bytes
-Total Flash memory (text + data): 382092(+382092) bytes
+| main.cpp.obj               |   71832(+71832) |   548(+548) | 26227(+26227) |
+| Subtotals                  | 394084(+394084) | 3944(+3944) | 77424(+77424) |
+Total Static RAM memory (data + bss): 81368(+81368) bytes
+Total Flash memory (text + data): 398028(+398028) bytes
 
Flash used: 437592 (20%) / total: 2097152
SRAM used: 81736 (15%) / total: 524288
spike_lk_command_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_command_kit-map.txt	2022-12-09 15:17:13.024455756 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_command_kit-map.txt	2022-12-09 15:17:13.248453443 +0000
@@ -1,32 +1,36 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       260(+260) |     17(+17) |       36(+36) |
+| [fill]                  |       296(+296) |     17(+17) |       40(+40) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a      |     1152(+1152) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |         94(+94) |       0(+0) |         0(+0) |
+| [lib]/CoreI2C.a         |         36(+36) |       0(+0) |         0(+0) |
+| [lib]/CoreIMU.a         |     5018(+5018) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a       |       176(+176) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a         |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a         |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a    |       930(+930) |       0(+0) |         0(+0) |
 | [lib]/CoreVideo.a       |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a    |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a  |       932(+932) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
+| [lib]/IMUKit.a          |     1416(+1416) |       0(+0) |         0(+0) |
 | [lib]/LedKit.a          |   19264(+19264) |       0(+0) |       10(+10) |
-| [lib]/ReinforcerKit.a   |     1604(+1604) |       0(+0) |         0(+0) |
-| [lib]/Utils.a           |         34(+34) |       0(+0) |         0(+0) |
+| [lib]/MotionKit.a       |       726(+726) |       0(+0) |         0(+0) |
+| [lib]/ReinforcerKit.a   |     1686(+1686) |       0(+0) |         0(+0) |
+| [lib]/Utils.a           |         82(+82) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a        |       954(+954) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   42000(+42000) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7148(+7148) |       0(+0) |         0(+0) |
-| [lib]/m.a               |       204(+204) |       0(+0) |         0(+0) |
-| [lib]/mbed-os-static.a  |   64752(+64752) |   464(+464) | 10261(+10261) |
+| [lib]/m.a               |     1732(+1732) |       0(+0) |         0(+0) |
+| [lib]/mbed-os-static.a  |   71366(+71366) |   464(+464) | 10281(+10281) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10328(+10328) |     16(+16) |     204(+204) |
 | __/__                   |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj            |     6056(+6056) |   718(+718) |   5384(+5384) |
-| Subtotals               | 165572(+165572) | 3792(+3792) | 46856(+46856) |
-Total Static RAM memory (data + bss): 50648(+50648) bytes
-Total Flash memory (text + data): 169364(+169364) bytes
+| main.cpp.obj            |     6552(+6552) |   718(+718) |   6408(+6408) |
+| Subtotals               | 181572(+181572) | 3792(+3792) | 47904(+47904) |
+Total Static RAM memory (data + bss): 51696(+51696) bytes
+Total Flash memory (text + data): 185364(+185364) bytes
 
Flash used: 209656 (9%) / total: 2097152
SRAM used: 52016 (9%) / total: 524288
spike_lk_reinforcer (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_reinforcer-map.txt	2022-12-09 15:17:19.104409444 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_reinforcer-map.txt	2022-12-09 15:17:19.324407818 +0000
@@ -1,21 +1,34 @@
-| Module                 |         .text |       .data |          .bss |
-|------------------------|---------------|-------------|---------------|
-| [fill]                 |     190(+190) |       8(+8) |       22(+22) |
-| [lib]/ColorKit.a       |     864(+864) |       0(+0) |         0(+0) |
-| [lib]/CoreEventFlags.a |     138(+138) |       0(+0) |         0(+0) |
-| [lib]/CoreSPI.a        |       28(+28) |       0(+0) |         0(+0) |
-| [lib]/EventLoopKit.a   |     366(+366) |       0(+0) |         0(+0) |
-| [lib]/HelloWorld.a     |       94(+94) |       0(+0) |         0(+0) |
-| [lib]/LedKit.a         | 19264(+19264) |       0(+0) |       10(+10) |
-| [lib]/c.a              | 26088(+26088) | 2472(+2472) |       58(+58) |
-| [lib]/gcc.a            |   6924(+6924) |       0(+0) |         0(+0) |
-| [lib]/m.a              |     204(+204) |       0(+0) |         0(+0) |
-| [lib]/mbed-os-static.a | 29346(+29346) |   444(+444) |   9946(+9946) |
-| [lib]/misc             |     188(+188) |       4(+4) |       28(+28) |
-| [lib]/nosys.a          |       32(+32) |       0(+0) |         0(+0) |
-| [lib]/stdc++.a         |   5444(+5444) |       8(+8) |       44(+44) |
-| main.cpp.obj           |   3474(+3474) |   440(+440) |     828(+828) |
-| Subtotals              | 92644(+92644) | 3376(+3376) | 10936(+10936) |
-Total Static RAM memory (data + bss): 14312(+14312) bytes
-Total Flash memory (text + data): 96020(+96020) bytes
+| Module                 |           .text |       .data |          .bss |
+|------------------------|-----------------|-------------|---------------|
+| [fill]                 |       294(+294) |     15(+15) |       40(+40) |
+| [lib]/ColorKit.a       |       864(+864) |       0(+0) |         0(+0) |
+| [lib]/CoreEventFlags.a |         94(+94) |       0(+0) |         0(+0) |
+| [lib]/CoreI2C.a        |         36(+36) |       0(+0) |         0(+0) |
+| [lib]/CoreIMU.a        |     5018(+5018) |       0(+0) |         0(+0) |
+| [lib]/CoreMotor.a      |       176(+176) |       0(+0) |         0(+0) |
+| [lib]/CorePwm.a        |         60(+60) |       0(+0) |         0(+0) |
+| [lib]/CoreSPI.a        |         28(+28) |       0(+0) |         0(+0) |
+| [lib]/CoreSTM32Hal.a   |       930(+930) |       0(+0) |         0(+0) |
+| [lib]/CoreVideo.a      |     7954(+7954) |       1(+1) | 30800(+30800) |
+| [lib]/EventLoopKit.a   |       348(+348) |       0(+0) |         0(+0) |
+| [lib]/FileManagerKit.a |       932(+932) |       0(+0) |         0(+0) |
+| [lib]/HelloWorld.a     |         94(+94) |       0(+0) |         0(+0) |
+| [lib]/IMUKit.a         |     1416(+1416) |       0(+0) |         0(+0) |
+| [lib]/LedKit.a         |   19410(+19410) |       0(+0) |       10(+10) |
+| [lib]/MotionKit.a      |       726(+726) |       0(+0) |         0(+0) |
+| [lib]/ReinforcerKit.a  |     1658(+1658) |       0(+0) |         0(+0) |
+| [lib]/Utils.a          |         48(+48) |       0(+0) |         0(+0) |
+| [lib]/VideoKit.a       |       954(+954) |       0(+0) |       36(+36) |
+| [lib]/c.a              |   42000(+42000) | 2572(+2572) |       97(+97) |
+| [lib]/gcc.a            |     7148(+7148) |       0(+0) |         0(+0) |
+| [lib]/m.a              |     1732(+1732) |       0(+0) |         0(+0) |
+| [lib]/mbed-os-static.a |   71366(+71366) |   464(+464) | 10281(+10281) |
+| [lib]/misc             |       188(+188) |       4(+4) |       28(+28) |
+| [lib]/nosys.a          |         32(+32) |       0(+0) |         0(+0) |
+| [lib]/stdc++.a         |   10328(+10328) |     16(+16) |     204(+204) |
+| __/__                  |       108(+108) |       0(+0) |         0(+0) |
+| main.cpp.obj           |     5454(+5454) |   448(+448) |   3864(+3864) |
+| Subtotals              | 179396(+179396) | 3520(+3520) | 45360(+45360) |
+Total Static RAM memory (data + bss): 48880(+48880) bytes
+Total Flash memory (text + data): 182916(+182916) bytes
 
Flash used: 207000 (9%) / total: 2097152
SRAM used: 49200 (9%) / total: 524288

@github-actions
Copy link

github-actions bot commented Dec 7, 2022

File comparision analysis report

🔖 Info

Target Flash Used (%) Flash Available (%) Static RAM (%)
bootloader 182476 (69%) 79668 (30%) 41624 (7%)
os 488820 (31%) 1075852 (68%) 92952 (17%)
Click to show memory sections
| -          |      Hex |     Bytes |  KiB |
|------------|---------:|----------:|-----:|
| Flash      | 0x200000 | 2 097 152 | 2048 |
| SRAM       |  0x80000 |   524 288 |  512 |
| Bootloader |  0x40000 |   262 144 |  256 |
| Header     |   0x1000 |     4 096 |    4 |
| OS         | 0x17E000 | 1 564 672 | 1528 |
| Tail       |   0x1000 |     4 096 |    4 |
| Scratch    |  0x40000 |   262 144 |  256 |

📝 Summary

Click to show summary
  • ✔️ - existing target
  • ✨ - new target
  • ⚰️ - deleted target
  • ✅ - files are the same
  • ❌ - files are different
Target Status .bin .map Total Flash (base/head) Total Flash Δ Static RAM (base/head) Static RAM Δ
LekaOS ✔️ 472340 (22%)
488820 (23%)
📈
16480 (3%)
91920 (17%)
92952 (17%)
📈
1032 (1%)
bootloader ✔️ 182476 (8%) ø 41624 (7%) ø
functional_ut_boost_ut ✔️ 409212 (19%) ø 30608 (5%) ø
functional_ut_core_imu ✔️ 389196 (18%) ø 30584 (5%) ø
functional_ut_deep_sleep_core_buffered_serial ✔️ 368140 (17%) ø 30560 (5%) ø
functional_ut_deep_sleep_core_motor ✔️ 376076 (17%) ø 30632 (5%) ø
functional_ut_deep_sleep_core_pwm ✔️ 378292 (18%) ø 30632 (5%) ø
functional_ut_deep_sleep_log_kit ✔️ 365204 (17%) ø 30976 (5%) ø
functional_ut_deep_sleep_mbed_hal ✔️ 366648 (17%) ø 30560 (5%) ø
functional_ut_file_manager ✔️ 386420 (18%) ø 30856 (5%) ø
functional_ut_imu_kit ✔️ 391388 (18%) ø 30576 (5%) ø
functional_ut_io_expander ✔️ 370896 (17%) ø 30576 (5%) ø
functional_ut_qdac ✔️ 372064 (17%) ø 30576 (5%) ø
spike_lk_accel_gyro ✔️ 94048 (4%) ø 22568 (4%) ø
spike_lk_audio ✔️ 135196 (6%) ø 25144 (4%) ø
spike_lk_behavior_kit ✔️ 198764 (9%) ø 58720 (11%) ø
spike_lk_ble ✔️ 237260 (11%) ø 39272 (7%) ø
spike_lk_bluetooth ✔️ 92364 (4%) ø 22224 (4%) ø
spike_lk_cg_animations ✔️ 153608 (7%) ø 57224 (10%) ø
spike_lk_color_kit ✔️ 88480 (4%) ø 24376 (4%) ø
spike_lk_command_kit ✔️ 203372 (9%)
219972 (10%)
📈
16600 (8%)
62056 (11%)
63104 (12%)
📈
1048 (1%)
spike_lk_config_kit ✔️ 138932 (6%) ø 25136 (4%) ø
spike_lk_coreled ✔️ 88044 (4%) ø 24264 (4%) ø
spike_lk_core_touch_sensor ✔️ 92884 (4%) ø 22832 (4%) ø
spike_lk_event_queue ✔️ 84152 (4%) ø 22904 (4%) ø
spike_lk_file_manager_kit ✔️ 154048 (7%) ø 25496 (4%) ø
spike_lk_file_reception ✔️ 331308 (15%) ø 38232 (7%) ø
spike_lk_flash_memory ✔️ 86776 (4%) ø 22216 (4%) ø
spike_lk_fs ✔️ 174168 (8%) ø 47992 (9%) ø
spike_lk_imu_kit ✔️ 97920 (4%) ø 22896 (4%) ø
spike_lk_lcd ✔️ 172332 (8%) ø 57464 (10%) ø
spike_lk_led_kit ✔️ 115772 (5%) ø 25184 (4%) ø
spike_lk_log_kit ✔️ 84776 (4%) ø 23408 (4%) ø
spike_lk_motion_kit ✔️ 106120 (5%) ø 24736 (4%) ø
spike_lk_motors ✔️ 86336 (4%) ø 22248 (4%) ø
spike_lk_qdac ✔️ 91572 (4%) ø 22776 (4%) ø
spike_lk_reinforcer ✔️ 112316 (5%)
215620 (10%)
📈
103304 (91%)
25184 (4%)
59776 (11%)
📈
34592 (137%)
spike_lk_rfid ✔️ 84088 (4%) ø 22184 (4%) ø
spike_lk_sensors_battery ✔️ 87184 (4%) ø 23280 (4%) ø
spike_lk_sensors_light ✔️ 84072 (4%) ø 22216 (4%) ø
spike_lk_sensors_microphone ✔️ 84824 (4%) ø 22216 (4%) ø
spike_lk_sensors_temperature_humidity ✔️ 90400 (4%) ø 22192 (4%) ø
spike_lk_sensors_touch ✔️ 91672 (4%) ø 22456 (4%) ø
spike_lk_serial_number ✔️ 136316 (6%) ø 25056 (4%) ø
spike_lk_ticker_timeout ✔️ 82712 (3%) ø 22232 (4%) ø
spike_lk_update_process_app_base ✔️ 154980 (7%) ø 26256 (5%) ø
spike_lk_update_process_app_update ✔️ 100456 (4%) ø 23240 (4%) ø
spike_lk_watchdog_isr ✔️ 87392 (4%) ø 24120 (4%) ø
spike_lk_wifi ✔️ 130832 (6%) ø 25528 (4%) ø
spike_mbed_blinky ✔️ 57616 (2%) ø 11496 (2%) ø
spike_mbed_watchdog_ticker_vs_thread ✔️ 84176 (4%) ø 23080 (4%) ø
spike_stl_cxxsupport ✔️ 83488 (3%) ø 22304 (4%) ø

🗺️ Map files diff output

Click to show diff list
LekaOS (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/LekaOS-map.txt	2022-12-09 15:16:58.373769940 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/LekaOS-map.txt	2022-12-09 15:16:58.753775094 +0000
@@ -1,49 +1,53 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       638(+638) |     18(+18) |     248(+248) |
+| [fill]                     |       638(+638) |     18(+18) |     236(+236) |
 | [lib]/ActivityKit.a        |   19586(+19586) |       0(+0) |         0(+0) |
 | [lib]/BLEKit.a             |     1436(+1436) |       0(+0) |         0(+0) |
 | [lib]/BatteryKit.a         |       324(+324) |       0(+0) |         0(+0) |
 | [lib]/BehaviorKit.a        |     1830(+1830) |       0(+0) |         0(+0) |
 | [lib]/ColorKit.a           |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a         |     1120(+1120) |       0(+0) |         0(+0) |
 | [lib]/CoreBattery.a        |       472(+472) |       0(+0) |         0(+0) |
 | [lib]/CoreBufferedSerial.a |         78(+78) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a     |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |       116(+116) |       0(+0) |         0(+0) |
 | [lib]/CoreFlashMemory.a    |       546(+546) |       0(+0) |         0(+0) |
+| [lib]/CoreI2C.a            |         36(+36) |       0(+0) |         0(+0) |
+| [lib]/CoreIMU.a            |     5018(+5018) |       0(+0) |         0(+0) |
 | [lib]/CoreMCU.a            |         16(+16) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a          |       176(+176) |       0(+0) |         0(+0) |
 | [lib]/CoreMutex.a          |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a            |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreQSPI.a           |       160(+160) |       0(+0) |         0(+0) |
 | [lib]/CoreRFIDReader.a     |       556(+556) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a            |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a       |       930(+930) |       0(+0) |         0(+0) |
 | [lib]/CoreTimeout.a        |       204(+204) |       0(+0) |         0(+0) |
 | [lib]/CoreVideo.a          |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/CriticalSection.a    |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a       |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a     |     1432(+1432) |       0(+0) |         0(+0) |
 | [lib]/FirmwareKit.a        |       822(+822) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |         94(+94) |       0(+0) |         0(+0) |
+| [lib]/IMUKit.a             |     1416(+1416) |       0(+0) |         0(+0) |
 | [lib]/LedKit.a             |   19410(+19410) |       0(+0) |       10(+10) |
+| [lib]/MotionKit.a          |       726(+726) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |     1054(+1054) |       0(+0) |         8(+8) |
-| [lib]/ReinforcerKit.a      |     1544(+1544) |       0(+0) |         0(+0) |
+| [lib]/ReinforcerKit.a      |     1636(+1636) |       0(+0) |         0(+0) |
 | [lib]/SerialNumberKit.a    |       596(+596) |       0(+0) |         0(+0) |
-| [lib]/Utils.a              |         34(+34) |       0(+0) |         0(+0) |
+| [lib]/Utils.a              |         82(+82) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a           |       896(+896) |       0(+0) |       36(+36) |
 | [lib]/bootutil.a           |     1362(+1362) |     12(+12) |     132(+132) |
 | [lib]/c.a                  |   48840(+48840) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a                |     7148(+7148) |       0(+0) |         0(+0) |
-| [lib]/m.a                  |       564(+564) |       0(+0) |         0(+0) |
-| [lib]/mbed-os-static.a     | 174620(+174620) |   773(+773) | 19735(+19735) |
+| [lib]/m.a                  |     2092(+2092) |       0(+0) |         0(+0) |
+| [lib]/mbed-os-static.a     | 181108(+181108) |   773(+773) | 19755(+19755) |
 | [lib]/misc                 |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |   10732(+10732) |     16(+16) |     204(+204) |
 | __/__                      |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj               | 121936(+121936) |   548(+548) | 36310(+36310) |
-| Subtotals                  | 428964(+428964) | 3944(+3944) | 87608(+87608) |
-Total Static RAM memory (data + bss): 91552(+91552) bytes
-Total Flash memory (text + data): 432908(+432908) bytes
+| main.cpp.obj               | 122456(+122456) |   548(+548) | 37334(+37334) |
+| Subtotals                  | 444836(+444836) | 3944(+3944) | 88640(+88640) |
+Total Static RAM memory (data + bss): 92584(+92584) bytes
+Total Flash memory (text + data): 448780(+448780) bytes
 
Flash used: 488820 (23%) / total: 2097152
SRAM used: 92952 (17%) / total: 524288
spike_lk_command_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_command_kit-map.txt	2022-12-09 15:17:09.489921993 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_command_kit-map.txt	2022-12-09 15:17:09.725925228 +0000
@@ -1,32 +1,36 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       288(+288) |     17(+17) |       40(+40) |
+| [fill]                  |       312(+312) |     17(+17) |       44(+44) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a      |     1152(+1152) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |         94(+94) |       0(+0) |         0(+0) |
+| [lib]/CoreI2C.a         |         36(+36) |       0(+0) |         0(+0) |
+| [lib]/CoreIMU.a         |     5018(+5018) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a       |       176(+176) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a         |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a         |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a    |       930(+930) |       0(+0) |         0(+0) |
 | [lib]/CoreVideo.a       |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a    |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a  |       932(+932) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
+| [lib]/IMUKit.a          |     1416(+1416) |       0(+0) |         0(+0) |
 | [lib]/LedKit.a          |   19264(+19264) |       0(+0) |       10(+10) |
-| [lib]/ReinforcerKit.a   |     1604(+1604) |       0(+0) |         0(+0) |
-| [lib]/Utils.a           |         34(+34) |       0(+0) |         0(+0) |
+| [lib]/MotionKit.a       |       726(+726) |       0(+0) |         0(+0) |
+| [lib]/ReinforcerKit.a   |     1686(+1686) |       0(+0) |         0(+0) |
+| [lib]/Utils.a           |         82(+82) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a        |       940(+940) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   40920(+40920) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7148(+7148) |       0(+0) |         0(+0) |
-| [lib]/m.a               |       564(+564) |       0(+0) |         0(+0) |
-| [lib]/mbed-os-static.a  |   70124(+70124) |   464(+464) | 10393(+10393) |
+| [lib]/m.a               |     2092(+2092) |       0(+0) |         0(+0) |
+| [lib]/mbed-os-static.a  |   76738(+76738) |   464(+464) | 10413(+10413) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10748(+10748) |     16(+16) |     204(+204) |
 | __/__                   |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj            |     9498(+9498) |   718(+718) | 16336(+16336) |
-| Subtotals               | 174100(+174100) | 3792(+3792) | 57944(+57944) |
-Total Static RAM memory (data + bss): 61736(+61736) bytes
-Total Flash memory (text + data): 177892(+177892) bytes
+| main.cpp.obj            |   10006(+10006) |   718(+718) | 17360(+17360) |
+| Subtotals               | 190100(+190100) | 3792(+3792) | 58992(+58992) |
+Total Static RAM memory (data + bss): 62784(+62784) bytes
+Total Flash memory (text + data): 193892(+193892) bytes
 
Flash used: 219972 (10%) / total: 2097152
SRAM used: 63104 (12%) / total: 524288
spike_lk_reinforcer (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_reinforcer-map.txt	2022-12-09 15:17:16.146013236 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_reinforcer-map.txt	2022-12-09 15:17:16.382016471 +0000
@@ -1,22 +1,35 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       216(+216) |       8(+8) |       26(+26) |
+| [fill]                  |       292(+292) |     15(+15) |       44(+44) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
-| [lib]/CoreEventFlags.a  |       138(+138) |       0(+0) |         0(+0) |
+| [lib]/CoreEventFlags.a  |         94(+94) |       0(+0) |         0(+0) |
+| [lib]/CoreI2C.a         |         36(+36) |       0(+0) |         0(+0) |
+| [lib]/CoreIMU.a         |     5018(+5018) |       0(+0) |         0(+0) |
+| [lib]/CoreMotor.a       |       176(+176) |       0(+0) |         0(+0) |
+| [lib]/CorePwm.a         |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a         |         28(+28) |       0(+0) |         0(+0) |
+| [lib]/CoreSTM32Hal.a    |       930(+930) |       0(+0) |         0(+0) |
+| [lib]/CoreVideo.a       |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a    |       348(+348) |       0(+0) |         0(+0) |
+| [lib]/FileManagerKit.a  |       932(+932) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/LedKit.a          |   19264(+19264) |       0(+0) |       10(+10) |
-| [lib]/c.a               |   25008(+25008) | 2472(+2472) |       58(+58) |
+| [lib]/IMUKit.a          |     1416(+1416) |       0(+0) |         0(+0) |
+| [lib]/LedKit.a          |   19410(+19410) |       0(+0) |       10(+10) |
+| [lib]/MotionKit.a       |       726(+726) |       0(+0) |         0(+0) |
+| [lib]/ReinforcerKit.a   |     1658(+1658) |       0(+0) |         0(+0) |
+| [lib]/Utils.a           |         48(+48) |       0(+0) |         0(+0) |
+| [lib]/VideoKit.a        |       954(+954) |       0(+0) |       36(+36) |
+| [lib]/c.a               |   40920(+40920) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7148(+7148) |       0(+0) |         0(+0) |
-| [lib]/m.a               |       564(+564) |       0(+0) |         0(+0) |
-| [lib]/mbed-os-static.a  |   34718(+34718) |   444(+444) | 10078(+10078) |
+| [lib]/m.a               |     2092(+2092) |       0(+0) |         0(+0) |
+| [lib]/mbed-os-static.a  |   76738(+76738) |   464(+464) | 10413(+10413) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
-| [lib]/stdc++.a          |     5864(+5864) |       8(+8) |       44(+44) |
-| main.cpp.obj            |     5570(+5570) |   440(+440) | 11268(+11268) |
-| Subtotals               | 100052(+100052) | 3376(+3376) | 21512(+21512) |
-Total Static RAM memory (data + bss): 24888(+24888) bytes
-Total Flash memory (text + data): 103428(+103428) bytes
+| [lib]/stdc++.a          |   10748(+10748) |     16(+16) |     204(+204) |
+| __/__                   |       108(+108) |       0(+0) |         0(+0) |
+| main.cpp.obj            |     7560(+7560) |   448(+448) | 14304(+14304) |
+| Subtotals               | 186580(+186580) | 3520(+3520) | 55936(+55936) |
+Total Static RAM memory (data + bss): 59456(+59456) bytes
+Total Flash memory (text + data): 190100(+190100) bytes
 
Flash used: 215620 (10%) / total: 2097152
SRAM used: 59776 (11%) / total: 524288

@codecov
Copy link

codecov bot commented Dec 7, 2022

Codecov Report

Merging #1190 (a2219bb) into develop (1fc1896) will increase coverage by 0.09%.
The diff coverage is 100.00%.

❗ Current head a2219bb differs from pull request most recent head 94c3859. Consider uploading reports for the commit 94c3859 to get more accurate results

@@             Coverage Diff             @@
##           develop    #1190      +/-   ##
===========================================
+ Coverage    96.08%   96.17%   +0.09%     
===========================================
  Files          146      146              
  Lines         3546     3528      -18     
===========================================
- Hits          3407     3393      -14     
+ Misses         139      135       -4     
Impacted Files Coverage Δ
libs/MotionKit/include/MotionKit.h 100.00% <ø> (ø)
libs/MotionKit/source/MotionKit.cpp 100.00% <100.00%> (ø)
libs/ReinforcerKit/include/ReinforcerKit.h 100.00% <100.00%> (ø)
libs/ReinforcerKit/source/ReinforcerKit.cpp 100.00% <100.00%> (+4.22%) ⬆️
libs/BLEKit/include/BLEServiceFileExchange.h 100.00% <0.00%> (ø)
libs/RobotKit/include/RobotController.h 94.80% <0.00%> (+0.37%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@HPezz HPezz force-pushed the hugo/feature/Use-MotionKit-in-ReinforcerKit branch from d689996 to c554e6f Compare December 7, 2022 18:08
@HPezz HPezz changed the base branch from develop to hugo/feature/Add-MotionKit December 7, 2022 18:08
@HPezz HPezz force-pushed the hugo/feature/Use-MotionKit-in-ReinforcerKit branch from c554e6f to 2563355 Compare December 7, 2022 18:13
@HPezz HPezz self-assigned this Dec 8, 2022
@HPezz HPezz added this to the v1.3.0 milestone Dec 8, 2022
@HPezz HPezz force-pushed the hugo/feature/Use-MotionKit-in-ReinforcerKit branch from 2563355 to cbea707 Compare December 8, 2022 10:26
@HPezz HPezz force-pushed the hugo/feature/Add-MotionKit branch 4 times, most recently from 7f8a751 to 6dcfede Compare December 8, 2022 11:58
@HPezz HPezz force-pushed the hugo/feature/Use-MotionKit-in-ReinforcerKit branch from cbea707 to dbd4840 Compare December 8, 2022 12:07
@HPezz HPezz force-pushed the hugo/feature/Use-MotionKit-in-ReinforcerKit branch from dbd4840 to cdc4b6b Compare December 8, 2022 12:25
Base automatically changed from hugo/feature/Add-MotionKit to develop December 8, 2022 13:46
Copy link
Member

@ladislas ladislas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

I added a suggestion to use a callback on rotation complete to do something like stop the ledkit

it can be added in a follow-up PR and will make orchestration easier

libs/ReinforcerKit/source/ReinforcerKit.cpp Outdated Show resolved Hide resolved
libs/ReinforcerKit/include/ReinforcerKit.h Outdated Show resolved Hide resolved
libs/ReinforcerKit/source/ReinforcerKit.cpp Outdated Show resolved Hide resolved
spikes/lk_reinforcer/main.cpp Outdated Show resolved Hide resolved
@HPezz HPezz force-pushed the hugo/feature/Use-MotionKit-in-ReinforcerKit branch from cdc4b6b to 796e3ef Compare December 8, 2022 15:17
@HPezz HPezz changed the base branch from develop to hugo/feature/Shut-unexpected-MotionKit-calls December 8, 2022 15:21
@HPezz HPezz force-pushed the hugo/feature/Use-MotionKit-in-ReinforcerKit branch from 796e3ef to 2c4c9ac Compare December 9, 2022 10:10
Comment on lines 90 to 93
EXPECT_CALL(mock_ears, setColor).Times(AnyNumber());
EXPECT_CALL(mock_ears, show).Times(AnyNumber());
EXPECT_CALL(mock_belt, setColor).Times(AnyNumber());
EXPECT_CALL(mock_belt, show).Times(AnyNumber());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I didn't understand how LEDs are related to MotionKit, but it is not. You just fix the UNEXPECTED_CALL there.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HPezz can you put those in a function like we do in other tests:

	EXPECT_CALL(mock_ears, setColor).Times(AnyNumber());
	EXPECT_CALL(mock_ears, show).Times(AnyNumber());
	EXPECT_CALL(mock_belt, setColor).Times(AnyNumber());
	EXPECT_CALL(mock_belt, show).Times(AnyNumber());

static constexpr auto reinforcer_duration = 2700ms;
static constexpr auto reinforcer_duration = 5s;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did the duration double?

libs/ReinforcerKit/source/ReinforcerKit.cpp Outdated Show resolved Hide resolved
app/os/main.cpp Outdated Show resolved Hide resolved
app/os/main.cpp Show resolved Hide resolved
Copy link
Member

@ladislas ladislas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with some suggestions.

libs/ReinforcerKit/source/ReinforcerKit.cpp Outdated Show resolved Hide resolved
Comment on lines 86 to 87
auto ears = CoreLED<LedKit::kNumberOfLedsEars> {spi::ears};
auto belt = CoreLED<LedKit::kNumberOfLedsBelt> {spi::belt};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer you keep this part as it is.

the old form is used everywhere.

if we want to refactor this, let's do it in another PR (not sure it's important now though)

app/os/main.cpp Show resolved Hide resolved
libs/ReinforcerKit/source/ReinforcerKit.cpp Outdated Show resolved Hide resolved
Comment on lines 90 to 93
EXPECT_CALL(mock_ears, setColor).Times(AnyNumber());
EXPECT_CALL(mock_ears, show).Times(AnyNumber());
EXPECT_CALL(mock_belt, setColor).Times(AnyNumber());
EXPECT_CALL(mock_belt, show).Times(AnyNumber());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HPezz can you put those in a function like we do in other tests:

	EXPECT_CALL(mock_ears, setColor).Times(AnyNumber());
	EXPECT_CALL(mock_ears, show).Times(AnyNumber());
	EXPECT_CALL(mock_belt, setColor).Times(AnyNumber());
	EXPECT_CALL(mock_belt, show).Times(AnyNumber());

@HPezz HPezz force-pushed the hugo/feature/Shut-unexpected-MotionKit-calls branch from aeee3c5 to 94c5f4b Compare December 9, 2022 10:52
@HPezz HPezz force-pushed the hugo/feature/Use-MotionKit-in-ReinforcerKit branch from 2c4c9ac to 2b0da30 Compare December 9, 2022 11:42
@HPezz HPezz force-pushed the hugo/feature/Shut-unexpected-MotionKit-calls branch from 94c5f4b to 28387fe Compare December 9, 2022 12:50
@HPezz HPezz force-pushed the hugo/feature/Use-MotionKit-in-ReinforcerKit branch from 2b0da30 to 1478752 Compare December 9, 2022 12:52
@HPezz HPezz force-pushed the hugo/feature/Shut-unexpected-MotionKit-calls branch from 28387fe to 2e45165 Compare December 9, 2022 13:48
@HPezz HPezz force-pushed the hugo/feature/Use-MotionKit-in-ReinforcerKit branch from 1478752 to a2219bb Compare December 9, 2022 13:52
@ladislas ladislas force-pushed the hugo/feature/Shut-unexpected-MotionKit-calls branch from 2e45165 to 246d3ac Compare December 9, 2022 15:02
Base automatically changed from hugo/feature/Shut-unexpected-MotionKit-calls to develop December 9, 2022 15:02
@HPezz HPezz force-pushed the hugo/feature/Use-MotionKit-in-ReinforcerKit branch from a2219bb to 94c3859 Compare December 9, 2022 15:09
@ladislas ladislas merged commit 7de1587 into develop Dec 9, 2022
@ladislas ladislas deleted the hugo/feature/Use-MotionKit-in-ReinforcerKit branch December 9, 2022 15:19
@sonarcloud
Copy link

sonarcloud bot commented Dec 9, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reinforcer - Use accelerometer and/or gyroscope for a perfect 1080° rotation
3 participants