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/Update MotionKit to Fusion #1292

Closed
wants to merge 9 commits into from

Conversation

HPezz
Copy link
Contributor

@HPezz HPezz commented Feb 17, 2023

MotionKit refactor following the previous IMUKit refactor with the Fusion algorithm and an asynchronous behavior.

  • Rotation validated on robot
  • Stabilization validated on robot

@HPezz HPezz self-assigned this Feb 17, 2023
@HPezz HPezz added the 01 - type: task Something to do label Feb 17, 2023
@HPezz HPezz added this to the v1.4.0 milestone Feb 17, 2023
@github-actions
Copy link

github-actions bot commented Feb 17, 2023

🔖 Version comparison

Version Same as filename Same as os_version
os 1.3.0+1677867376 ✔️ ✔️
firmware
(bootloader + os)
1.3.0+1677867376 ✔️ ✔️

@github-actions
Copy link

github-actions bot commented Feb 17, 2023

File comparision analysis report

🔖 Info

Target Flash Used (base/head) Fash Used Δ Flash Available (base/head) Static RAM (base/head) Static RAM Δ
bootloader 183692 (70%) ø 78452 (29%)
78452 (29%)
41664 (7%) ø
os 507436 (32%)
507740 (32%)
📈
+304 (+0%)
1057236 (67%)
1056932 (67%)
95104 (18%)
94896 (18%)
📉
-208 (0%)
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 ✔️ 507436 (24%)
507740 (24%)
📈
+304 (+0%)
95104 (18%)
94896 (18%)
📉
-208 (0%)
bootloader ✔️ 183692 (8%) ø 41664 (7%) ø
functional_ut_boost_ut ✔️ 409276 (19%) ø 30608 (5%) ø
functional_ut_core_imu ✔️ 385140 (18%) ø 31120 (5%) ø
functional_ut_deep_sleep_core_buffered_serial ✔️ 368332 (17%) ø 30560 (5%) ø
functional_ut_deep_sleep_core_motor ✔️ 376140 (17%) ø 30632 (5%) ø
functional_ut_deep_sleep_core_pwm ✔️ 378356 (18%) ø 30632 (5%) ø
functional_ut_deep_sleep_log_kit ✔️ 365268 (17%) ø 30976 (5%) ø
functional_ut_deep_sleep_mbed_hal ✔️ 366712 (17%) ø 30560 (5%) ø
functional_ut_file_manager ✔️ 388092 (18%) ø 30856 (5%) ø
functional_ut_firmware_kit ✔️ 379116 (18%) ø 30848 (5%) ø
functional_ut_imu_kit ✔️ 388896 (18%)
389120 (18%)
📈
+224 (+0%)
31296 (5%) ø
functional_ut_io_expander ✔️ 371176 (17%) ø 30576 (5%) ø
functional_ut_qdac ✔️ 372344 (17%) ø 30576 (5%) ø
spike_lk_audio ✔️ 137724 (6%) ø 25168 (4%) ø
spike_lk_behavior_kit ✔️ 198500 (9%) ø 58672 (11%) ø
spike_lk_ble ✔️ 237980 (11%) ø 39416 (7%) ø
spike_lk_bluetooth ✔️ 92364 (4%) ø 22224 (4%) ø
spike_lk_cg_animations ✔️ 153672 (7%) ø 57224 (10%) ø
spike_lk_color_kit ✔️ 88544 (4%) ø 24376 (4%) ø
spike_lk_command_kit ✔️ 229972 (10%)
230196 (10%)
📈
+224 (+0%)
63960 (12%)
63760 (12%)
📉
-200 (0%)
spike_lk_config_kit ✔️ 139780 (6%) ø 25184 (4%) ø
spike_lk_coreled ✔️ 88108 (4%) ø 24264 (4%) ø
spike_lk_core_touch_sensor ✔️ 93164 (4%) ø 22824 (4%) ø
spike_lk_event_queue ✔️ 84152 (4%) ø 22904 (4%) ø
spike_lk_file_manager_kit ✔️ 154560 (7%) ø 25520 (4%) ø
spike_lk_file_reception ✔️ 339964 (16%) ø 38448 (7%) ø
spike_lk_flash_memory ✔️ 86776 (4%) ø 22216 (4%) ø
spike_lk_fs ✔️ 178228 (8%) ø 57536 (10%) ø
spike_lk_imu_kit ✔️ 107280 (5%)
107512 (5%)
📈
+232 (+0%)
23728 (4%)
23744 (4%)
📈
+16 (+0%)
spike_lk_lcd ✔️ 173500 (8%) ø 57520 (10%) ø
spike_lk_led_kit ✔️ 115204 (5%) ø 25104 (4%) ø
spike_lk_log_kit ✔️ 84776 (4%) ø 23408 (4%) ø
spike_lk_motion_kit ✔️ 117008 (5%)
116504 (5%)
📉
-504 (0%)
25952 (4%)
25744 (4%)
📉
-208 (0%)
spike_lk_motors ✔️ 86336 (4%) ø 22248 (4%) ø
spike_lk_qdac ✔️ 91796 (4%) ø 22768 (4%) ø
spike_lk_reinforcer ✔️ 225428 (10%)
225732 (10%)
📈
+304 (+0%)
60640 (11%)
60432 (11%)
📉
-208 (0%)
spike_lk_rfid ✔️ 84216 (4%) ø 22184 (4%) ø
spike_lk_sensors_battery ✔️ 87376 (4%) ø 23312 (4%) ø
spike_lk_sensors_imu_lsm6dsox ✔️ 98624 (4%) ø 23536 (4%) ø
spike_lk_sensors_imu_lsm6dsox_fusion_calibration ✔️ 105064 (5%) ø 23104 (4%) ø
spike_lk_sensors_light ✔️ 84072 (4%) ø 22216 (4%) ø
spike_lk_sensors_microphone ✔️ 84824 (4%) ø 22216 (4%) ø
spike_lk_sensors_temperature_humidity ✔️ 90616 (4%) ø 22192 (4%) ø
spike_lk_serial_number ✔️ 145028 (6%) ø 25256 (4%) ø
spike_lk_ticker_timeout ✔️ 82712 (3%) ø 22232 (4%) ø
spike_lk_touch_sensor_kit ✔️ 96668 (4%) ø 23392 (4%) ø
spike_lk_update_process_app_base ✔️ 157932 (7%) ø 26288 (5%) ø
spike_lk_update_process_app_update ✔️ 100456 (4%) ø 23240 (4%) ø
spike_lk_watchdog_isr ✔️ 87520 (4%) ø 24136 (4%) ø
spike_lk_wifi ✔️ 130984 (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	2023-02-24 14:25:24.278276927 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/LekaOS-map.txt	2023-02-24 14:25:24.654283351 +0000
@@ -1,55 +1,55 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       624(+624) |     10(+10) |     271(+271) |
+| [fill]                     |       650(+650) |     10(+10) |     271(+271) |
 | [lib]/ActivityKit.a        |   10590(+10590) |       0(+0) |         0(+0) |
 | [lib]/BLEKit.a             |     1476(+1476) |       0(+0) |         0(+0) |
 | [lib]/BatteryKit.a         |       324(+324) |       0(+0) |         0(+0) |
 | [lib]/BehaviorKit.a        |     1652(+1652) |   460(+460) |         0(+0) |
 | [lib]/ColorKit.a           |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a         |     1120(+1120) |       0(+0) |         0(+0) |
 | [lib]/CoreBattery.a        |       544(+544) |       0(+0) |         0(+0) |
 | [lib]/CoreBufferedSerial.a |       196(+196) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a     |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |         44(+44) |       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            |     6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a    |       118(+118) |       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     |       580(+580) |       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     |     2294(+2294) |       0(+0) |         0(+0) |
 | [lib]/FirmwareKit.a        |       944(+944) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a             |     2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a             |       768(+768) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a             |       876(+876) |       0(+0) |     164(+164) |
 | [lib]/LedKit.a             |   19050(+19050) |       0(+0) |       20(+20) |
-| [lib]/MotionKit.a          |       838(+838) |       0(+0) |         0(+0) |
+| [lib]/MotionKit.a          |       936(+936) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |     1054(+1054) |       0(+0) |         8(+8) |
 | [lib]/ReinforcerKit.a      |     1242(+1242) |   460(+460) |         0(+0) |
 | [lib]/SerialNumberKit.a    |       584(+584) |       0(+0) |         0(+0) |
 | [lib]/Utils.a              |         34(+34) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a           |       686(+686) |       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                |     7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a                  |     5368(+5368) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a     | 181458(+181458) |   773(+773) | 19755(+19755) |
 | [lib]/misc                 |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |   12012(+12012) |     16(+16) |     204(+204) |
 | __/__                      |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj               | 138742(+138742) |   108(+108) | 38837(+38837) |
-| Subtotals                  | 460976(+460976) | 4416(+4416) | 90352(+90352) |
-Total Static RAM memory (data + bss): 94768(+94768) bytes
-Total Flash memory (text + data): 465392(+465392) bytes
+| main.cpp.obj               | 138766(+138766) |   108(+108) | 38629(+38629) |
+| Subtotals                  | 461232(+461232) | 4416(+4416) | 90144(+90144) |
+Total Static RAM memory (data + bss): 94560(+94560) bytes
+Total Flash memory (text + data): 465648(+465648) bytes
 
Flash used: 507740 (24%) / total: 2097152
SRAM used: 94896 (18%) / total: 524288
functional_ut_imu_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/functional_ut_imu_kit-map.txt	2023-02-24 14:25:30.930390579 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/functional_ut_imu_kit-map.txt	2023-02-24 14:25:31.218395500 +0000
@@ -1,23 +1,23 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       208(+208) |     16(+16) |       49(+49) |
+| [fill]                  |       206(+206) |     16(+16) |       49(+49) |
 | [lib]/CoreEventQueue.a  |         44(+44) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |         88(+88) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |     6880(+6880) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a |       222(+222) |       0(+0) |         0(+0) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a          |     2036(+2036) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a          |       742(+742) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a          |       920(+920) |       0(+0) |     164(+164) |
 | [lib]/c.a               |   72544(+72544) | 2574(+2574) |       97(+97) |
 | [lib]/gcc.a             |     7956(+7956) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     5176(+5176) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   63024(+63024) |   460(+460) | 10875(+10875) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          | 174492(+174492) |   145(+145) |   5720(+5720) |
 | __/__                   |     3988(+3988) |       1(+1) | 10841(+10841) |
-| suite_imu_kit.cpp.obj   |     3292(+3292) |       0(+0) |         2(+2) |
-| Subtotals               | 340920(+340920) | 3200(+3200) | 27776(+27776) |
+| suite_imu_kit.cpp.obj   |     3308(+3308) |       0(+0) |         2(+2) |
+| Subtotals               | 341112(+341112) | 3200(+3200) | 27776(+27776) |
 Total Static RAM memory (data + bss): 30976(+30976) bytes
-Total Flash memory (text + data): 344120(+344120) bytes
+Total Flash memory (text + data): 344312(+344312) bytes
 
Flash used: 389120 (18%) / total: 2097152
SRAM used: 31296 (5%) / total: 524288
spike_lk_command_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_command_kit-map.txt	2023-02-24 14:25:35.322466258 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_command_kit-map.txt	2023-02-24 14:25:35.562470400 +0000
@@ -1,40 +1,40 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       328(+328) |       5(+5) |       44(+44) |
+| [fill]                  |       286(+286) |       5(+5) |       52(+52) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a      |     1152(+1152) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a  |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |     6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a |       136(+136) |       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]/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  |     1736(+1736) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a          |     2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a          |       768(+768) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a          |       876(+876) |       0(+0) |     164(+164) |
 | [lib]/LedKit.a          |   19050(+19050) |       0(+0) |       20(+20) |
-| [lib]/MotionKit.a       |       838(+838) |       0(+0) |         0(+0) |
+| [lib]/MotionKit.a       |       936(+936) |       0(+0) |         0(+0) |
 | [lib]/ReinforcerKit.a   |     1726(+1726) |   460(+460) |         0(+0) |
 | [lib]/Utils.a           |         34(+34) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a        |       870(+870) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   40920(+40920) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     5368(+5368) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   78492(+78492) |   464(+464) | 10951(+10951) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10716(+10716) |     16(+16) |     204(+204) |
 | __/__                   |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj            |     8758(+8758) |   278(+278) | 17488(+17488) |
-| Subtotals               | 198688(+198688) | 3800(+3800) | 59832(+59832) |
-Total Static RAM memory (data + bss): 63632(+63632) bytes
-Total Flash memory (text + data): 202488(+202488) bytes
+| main.cpp.obj            |     8786(+8786) |   278(+278) | 17280(+17280) |
+| Subtotals               | 198880(+198880) | 3800(+3800) | 59632(+59632) |
+Total Static RAM memory (data + bss): 63432(+63432) bytes
+Total Flash memory (text + data): 202680(+202680) bytes
 
Flash used: 230196 (10%) / total: 2097152
SRAM used: 63760 (12%) / total: 524288
spike_lk_imu_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_imu_kit-map.txt	2023-02-24 14:25:39.082531153 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_imu_kit-map.txt	2023-02-24 14:25:39.250534052 +0000
@@ -1,23 +1,23 @@
 | Module                  |         .text |       .data |          .bss |
 |-------------------------|---------------|-------------|---------------|
-| [fill]                  |     172(+172) |       8(+8) |       42(+42) |
+| [fill]                  |     190(+190) |       8(+8) |       38(+38) |
 | [lib]/CoreEventQueue.a  |       94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |       36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |   6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a |     222(+222) |       0(+0) |         0(+0) |
 | [lib]/CriticalSection.a |         8(+8) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a          |   2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |       94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a          |     766(+766) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a          |     876(+876) |       0(+0) |     164(+164) |
 | [lib]/c.a               | 24948(+24948) | 2472(+2472) |       58(+58) |
 | [lib]/gcc.a             |   7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a               |   5164(+5164) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  | 39896(+39896) |   444(+444) |   8784(+8784) |
 | [lib]/misc              |     188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |       32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   5424(+5424) |       8(+8) |       44(+44) |
-| main.cpp.obj            |   2662(+2662) |       0(+0) | 11376(+11376) |
-| Subtotals               | 96240(+96240) | 2936(+2936) | 20496(+20496) |
-Total Static RAM memory (data + bss): 23432(+23432) bytes
-Total Flash memory (text + data): 99176(+99176) bytes
+| main.cpp.obj            |   2726(+2726) |       0(+0) | 11396(+11396) |
+| Subtotals               | 96432(+96432) | 2936(+2936) | 20512(+20512) |
+Total Static RAM memory (data + bss): 23448(+23448) bytes
+Total Flash memory (text + data): 99368(+99368) bytes
 
Flash used: 107512 (5%) / total: 2097152
SRAM used: 23744 (4%) / total: 524288
spike_lk_motion_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_motion_kit-map.txt	2023-02-24 14:25:40.706559020 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_motion_kit-map.txt	2023-02-24 14:25:40.882562031 +0000
@@ -1,32 +1,30 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
 | [fill]                     |       188(+188) |       8(+8) |       34(+34) |
 | [lib]/CoreBufferedSerial.a |       196(+196) |       0(+0) |         0(+0) |
-| [lib]/CoreEventFlags.a     |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |         44(+44) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a            |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a            |     6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a    |       222(+222) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a          |       176(+176) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a            |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreRFIDReader.a     |       616(+616) |       0(+0) |         0(+0) |
 | [lib]/CoreTimeout.a        |       204(+204) |       0(+0) |         0(+0) |
 | [lib]/CriticalSection.a    |           8(+8) |       0(+0) |         0(+0) |
-| [lib]/EventLoopKit.a       |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a             |     2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a             |       768(+768) |       0(+0) |     164(+164) |
-| [lib]/MotionKit.a          |       884(+884) |       0(+0) |         0(+0) |
+| [lib]/IMUKit.a             |       876(+876) |       0(+0) |     164(+164) |
+| [lib]/MotionKit.a          |     1060(+1060) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |     1046(+1046) |       0(+0) |         8(+8) |
 | [lib]/c.a                  |   25048(+25048) | 2472(+2472) |       58(+58) |
 | [lib]/gcc.a                |     7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a                  |     5164(+5164) |       0(+0) |         0(+0) |
-| [lib]/mbed-os-static.a     |   42828(+42828) |   444(+444) |   8860(+8860) |
+| [lib]/mbed-os-static.a     |   42638(+42638) |   444(+444) |   8860(+8860) |
 | [lib]/misc                 |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |     5424(+5424) |       8(+8) |       44(+44) |
-| main.cpp.obj               |     4250(+4250) |       0(+0) | 13524(+13524) |
-| Subtotals                  | 104496(+104496) | 2936(+2936) | 22720(+22720) |
-Total Static RAM memory (data + bss): 25656(+25656) bytes
-Total Flash memory (text + data): 107432(+107432) bytes
+| main.cpp.obj               |     4194(+4194) |       0(+0) | 13316(+13316) |
+| Subtotals                  | 104048(+104048) | 2936(+2936) | 22512(+22512) |
+Total Static RAM memory (data + bss): 25448(+25448) bytes
+Total Flash memory (text + data): 106984(+106984) bytes
 
Flash used: 116504 (5%) / total: 2097152
SRAM used: 25744 (4%) / total: 524288
spike_lk_reinforcer (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_reinforcer-map.txt	2023-02-24 14:25:41.894579342 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_reinforcer-map.txt	2023-02-24 14:25:42.122583242 +0000
@@ -1,38 +1,38 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       272(+272) |       3(+3) |       52(+52) |
+| [fill]                  |       294(+294) |       3(+3) |       52(+52) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a  |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |     6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a |       136(+136) |       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]/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  |     1736(+1736) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a          |     2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a          |       768(+768) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a          |       876(+876) |       0(+0) |     164(+164) |
 | [lib]/LedKit.a          |   19050(+19050) |       0(+0) |       20(+20) |
-| [lib]/MotionKit.a       |       838(+838) |       0(+0) |         0(+0) |
+| [lib]/MotionKit.a       |       936(+936) |       0(+0) |         0(+0) |
 | [lib]/ReinforcerKit.a   |     1696(+1696) |   460(+460) |         0(+0) |
 | [lib]/VideoKit.a        |       884(+884) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   40920(+40920) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     5368(+5368) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   78492(+78492) |   464(+464) | 10951(+10951) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10716(+10716) |     16(+16) |     204(+204) |
 | __/__                   |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj            |     6304(+6304) |       8(+8) | 14432(+14432) |
-| Subtotals               | 194976(+194976) | 3528(+3528) | 56784(+56784) |
-Total Static RAM memory (data + bss): 60312(+60312) bytes
-Total Flash memory (text + data): 198504(+198504) bytes
+| main.cpp.obj            |     6332(+6332) |       8(+8) | 14224(+14224) |
+| Subtotals               | 195232(+195232) | 3528(+3528) | 56576(+56576) |
+Total Static RAM memory (data + bss): 60104(+60104) bytes
+Total Flash memory (text + data): 198760(+198760) bytes
 
Flash used: 225732 (10%) / total: 2097152
SRAM used: 60432 (11%) / total: 524288

@github-actions
Copy link

github-actions bot commented Feb 17, 2023

File comparision analysis report

🔖 Info

Target Flash Used (base/head) Fash Used Δ Flash Available (base/head) Static RAM (base/head) Static RAM Δ
bootloader 170888 (65%) ø 91256 (34%)
91256 (34%)
30960 (5%) ø
os 445880 (28%)
446184 (28%)
📈
+304 (+0%)
1118792 (71%)
1118488 (71%)
83880 (15%)
83672 (15%)
📉
-208 (0%)
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 ✔️ 445880 (21%)
446184 (21%)
📈
+304 (+0%)
83880 (15%)
83672 (15%)
📉
-208 (0%)
bootloader ✔️ 170888 (8%) ø 30960 (5%) ø
functional_ut_boost_ut ✔️ 394140 (18%) ø 20456 (3%) ø
functional_ut_core_imu ✔️ 377656 (18%) ø 20968 (3%) ø
functional_ut_deep_sleep_core_buffered_serial ✔️ 360600 (17%) ø 20440 (3%) ø
functional_ut_deep_sleep_core_motor ✔️ 364540 (17%) ø 20480 (3%) ø
functional_ut_deep_sleep_core_pwm ✔️ 366676 (17%) ø 20480 (3%) ø
functional_ut_deep_sleep_log_kit ✔️ 352568 (16%) ø 20408 (3%) ø
functional_ut_deep_sleep_mbed_hal ✔️ 354344 (16%) ø 20408 (3%) ø
functional_ut_file_manager ✔️ 376272 (17%) ø 20696 (3%) ø
functional_ut_firmware_kit ✔️ 367084 (17%) ø 20688 (3%) ø
functional_ut_imu_kit ✔️ 381348 (18%)
381588 (18%)
📈
+240 (+0%)
21144 (4%) ø
functional_ut_io_expander ✔️ 359576 (17%) ø 20424 (3%) ø
functional_ut_qdac ✔️ 360744 (17%) ø 20424 (3%) ø
spike_lk_audio ✔️ 127092 (6%) ø 14592 (2%) ø
spike_lk_behavior_kit ✔️ 189440 (9%) ø 48096 (9%) ø
spike_lk_ble ✔️ 229600 (10%) ø 28472 (5%) ø
spike_lk_bluetooth ✔️ 82948 (3%) ø 11544 (2%) ø
spike_lk_cg_animations ✔️ 145976 (6%) ø 46528 (8%) ø
spike_lk_color_kit ✔️ 65840 (3%) ø 13744 (2%) ø
spike_lk_command_kit ✔️ 220552 (10%)
220840 (10%)
📈
+288 (+0%)
52872 (10%)
52672 (10%)
📉
-200 (0%)
spike_lk_config_kit ✔️ 127324 (6%) ø 14360 (2%) ø
spike_lk_coreled ✔️ 76292 (3%) ø 13688 (2%) ø
spike_lk_core_touch_sensor ✔️ 80508 (3%) ø 12248 (2%) ø
spike_lk_event_queue ✔️ 74800 (3%) ø 12072 (2%) ø
spike_lk_file_manager_kit ✔️ 139528 (6%) ø 14440 (2%) ø
spike_lk_file_reception ✔️ 336000 (16%) ø 27792 (5%) ø
spike_lk_flash_memory ✔️ 63880 (3%) ø 11448 (2%) ø
spike_lk_fs ✔️ 175668 (8%) ø 47928 (9%) ø
spike_lk_imu_kit ✔️ 98700 (4%)
98868 (4%)
📈
+168 (+0%)
13016 (2%)
13032 (2%)
📈
+16 (+0%)
spike_lk_lcd ✔️ 163352 (7%) ø 46680 (8%) ø
spike_lk_led_kit ✔️ 103424 (4%) ø 14528 (2%) ø
spike_lk_log_kit ✔️ 63288 (3%) ø 12256 (2%) ø
spike_lk_motion_kit ✔️ 111972 (5%)
111532 (5%)
📉
-440 (0%)
15408 (2%)
15200 (2%)
📉
-208 (-1%)
spike_lk_motors ✔️ 62864 (2%) ø 11488 (2%) ø
spike_lk_qdac ✔️ 78852 (3%) ø 11808 (2%) ø
spike_lk_reinforcer ✔️ 217768 (10%)
218072 (10%)
📈
+304 (+0%)
50064 (9%)
49856 (9%)
📉
-208 (0%)
spike_lk_rfid ✔️ 79084 (3%) ø 11504 (2%) ø
spike_lk_sensors_battery ✔️ 78388 (3%) ø 12600 (2%) ø
spike_lk_sensors_imu_lsm6dsox ✔️ 89468 (4%) ø 12824 (2%) ø
spike_lk_sensors_imu_lsm6dsox_fusion_calibration ✔️ 97916 (4%) ø 12952 (2%) ø
spike_lk_sensors_light ✔️ 60056 (2%) ø 11440 (2%) ø
spike_lk_sensors_microphone ✔️ 72496 (3%) ø 11504 (2%) ø
spike_lk_sensors_temperature_humidity ✔️ 67272 (3%) ø 11424 (2%) ø
spike_lk_serial_number ✔️ 133084 (6%) ø 14304 (2%) ø
spike_lk_ticker_timeout ✔️ 69052 (3%) ø 11632 (2%) ø
spike_lk_touch_sensor_kit ✔️ 87896 (4%) ø 12824 (2%) ø
spike_lk_update_process_app_base ✔️ 145620 (6%) ø 15576 (2%) ø
spike_lk_update_process_app_update ✔️ 77632 (3%) ø 12352 (2%) ø
spike_lk_watchdog_isr ✔️ 80196 (3%) ø 13288 (2%) ø
spike_lk_wifi ✔️ 116544 (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	2023-02-24 14:25:01.796109000 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/LekaOS-map.txt	2023-02-24 14:25:02.184115892 +0000
@@ -1,55 +1,55 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       658(+658) |     10(+10) |     250(+250) |
+| [fill]                     |       680(+680) |     10(+10) |     250(+250) |
 | [lib]/ActivityKit.a        |   10590(+10590) |       0(+0) |         0(+0) |
 | [lib]/BLEKit.a             |     1476(+1476) |       0(+0) |         0(+0) |
 | [lib]/BatteryKit.a         |       324(+324) |       0(+0) |         0(+0) |
 | [lib]/BehaviorKit.a        |     1652(+1652) |   460(+460) |         0(+0) |
 | [lib]/ColorKit.a           |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a         |     1120(+1120) |       0(+0) |         0(+0) |
 | [lib]/CoreBattery.a        |       544(+544) |       0(+0) |         0(+0) |
 | [lib]/CoreBufferedSerial.a |       196(+196) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a     |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |         44(+44) |       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            |     6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a    |       118(+118) |       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     |       580(+580) |       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     |     1786(+1786) |       0(+0) |         0(+0) |
 | [lib]/FirmwareKit.a        |       944(+944) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a             |     2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a             |       768(+768) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a             |       876(+876) |       0(+0) |     164(+164) |
 | [lib]/LedKit.a             |   19050(+19050) |       0(+0) |       20(+20) |
-| [lib]/MotionKit.a          |       838(+838) |       0(+0) |         0(+0) |
+| [lib]/MotionKit.a          |       936(+936) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |     1054(+1054) |       0(+0) |         8(+8) |
 | [lib]/ReinforcerKit.a      |     1242(+1242) |   460(+460) |         0(+0) |
 | [lib]/SerialNumberKit.a    |       584(+584) |       0(+0) |         0(+0) |
 | [lib]/Utils.a              |         34(+34) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a           |       700(+700) |       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                |     7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a                  |     5368(+5368) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a     | 180206(+180206) |   773(+773) | 19667(+19667) |
 | [lib]/misc                 |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |   11964(+11964) |     16(+16) |     204(+204) |
 | __/__                      |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj               |   78470(+78470) |   108(+108) | 27730(+27730) |
-| Subtotals                  | 400048(+400048) | 4416(+4416) | 79136(+79136) |
-Total Static RAM memory (data + bss): 83552(+83552) bytes
-Total Flash memory (text + data): 404464(+404464) bytes
+| main.cpp.obj               |   78498(+78498) |   108(+108) | 27522(+27522) |
+| Subtotals                  | 400304(+400304) | 4416(+4416) | 78928(+78928) |
+Total Static RAM memory (data + bss): 83344(+83344) bytes
+Total Flash memory (text + data): 404720(+404720) bytes
 
Flash used: 446184 (21%) / total: 2097152
SRAM used: 83672 (15%) / total: 524288
functional_ut_imu_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/functional_ut_imu_kit-map.txt	2023-02-24 14:25:08.452162373 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/functional_ut_imu_kit-map.txt	2023-02-24 14:25:08.744167588 +0000
@@ -1,22 +1,22 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       200(+200) |     16(+16) |       45(+45) |
+| [fill]                  |       198(+198) |     16(+16) |       45(+45) |
 | [lib]/CoreEventQueue.a  |         76(+76) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |         88(+88) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |     6880(+6880) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a |       222(+222) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a          |     2036(+2036) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a          |       742(+742) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a          |       920(+920) |       0(+0) |     164(+164) |
 | [lib]/c.a               |   73772(+73772) | 2574(+2574) |       97(+97) |
 | [lib]/gcc.a             |     7956(+7956) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     4804(+4804) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   59044(+59044) |   460(+460) | 10751(+10751) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          | 173924(+173924) |   145(+145) |   5720(+5720) |
 | __/__                   |     1938(+1938) |       1(+1) |     817(+817) |
-| suite_imu_kit.cpp.obj   |     2802(+2802) |       0(+0) |         2(+2) |
-| Subtotals               | 334704(+334704) | 3200(+3200) | 17624(+17624) |
+| suite_imu_kit.cpp.obj   |     2818(+2818) |       0(+0) |         2(+2) |
+| Subtotals               | 334896(+334896) | 3200(+3200) | 17624(+17624) |
 Total Static RAM memory (data + bss): 20824(+20824) bytes
-Total Flash memory (text + data): 337904(+337904) bytes
+Total Flash memory (text + data): 338096(+338096) bytes
 
Flash used: 381588 (18%) / total: 2097152
SRAM used: 21144 (4%) / total: 524288
spike_lk_command_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_command_kit-map.txt	2023-02-24 14:25:12.808237604 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_command_kit-map.txt	2023-02-24 14:25:13.044241540 +0000
@@ -1,40 +1,40 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       272(+272) |       5(+5) |       40(+40) |
+| [fill]                  |       286(+286) |       5(+5) |       48(+48) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a      |     1152(+1152) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a  |       126(+126) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |     6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a |       136(+136) |       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]/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  |     1228(+1228) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a          |     2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a          |       768(+768) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a          |       876(+876) |       0(+0) |     164(+164) |
 | [lib]/LedKit.a          |   19050(+19050) |       0(+0) |       20(+20) |
-| [lib]/MotionKit.a       |       838(+838) |       0(+0) |         0(+0) |
+| [lib]/MotionKit.a       |       936(+936) |       0(+0) |         0(+0) |
 | [lib]/ReinforcerKit.a   |     1726(+1726) |   460(+460) |         0(+0) |
 | [lib]/Utils.a           |         34(+34) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a        |       884(+884) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   42000(+42000) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     5008(+5008) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   74512(+74512) |   464(+464) | 10827(+10827) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10296(+10296) |     16(+16) |     204(+204) |
 | __/__                   |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj            |     5324(+5324) |   278(+278) |   6536(+6536) |
-| Subtotals               | 191056(+191056) | 3800(+3800) | 48752(+48752) |
-Total Static RAM memory (data + bss): 52552(+52552) bytes
-Total Flash memory (text + data): 194856(+194856) bytes
+| main.cpp.obj            |     5360(+5360) |   278(+278) |   6328(+6328) |
+| Subtotals               | 191312(+191312) | 3800(+3800) | 48552(+48552) |
+Total Static RAM memory (data + bss): 52352(+52352) bytes
+Total Flash memory (text + data): 195112(+195112) bytes
 
Flash used: 220840 (10%) / total: 2097152
SRAM used: 52672 (10%) / total: 524288
spike_lk_imu_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_imu_kit-map.txt	2023-02-24 14:25:16.496299115 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_imu_kit-map.txt	2023-02-24 14:25:16.668301984 +0000
@@ -1,22 +1,22 @@
 | Module                  |         .text |       .data |        .bss |
 |-------------------------|---------------|-------------|-------------|
-| [fill]                  |     186(+186) |       8(+8) |     38(+38) |
+| [fill]                  |     140(+140) |       8(+8) |     34(+34) |
 | [lib]/CoreEventQueue.a  |     126(+126) |       0(+0) |       0(+0) |
 | [lib]/CoreI2C.a         |       36(+36) |       0(+0) |       0(+0) |
 | [lib]/CoreIMU.a         |   6810(+6810) |       0(+0) |       0(+0) |
 | [lib]/CoreInterruptIn.a |     222(+222) |       0(+0) |       0(+0) |
 | [lib]/Fusion.a          |   2036(+2036) |       0(+0) |       0(+0) |
 | [lib]/HelloWorld.a      |       94(+94) |       0(+0) |       0(+0) |
-| [lib]/IMUKit.a          |     766(+766) |       0(+0) |   164(+164) |
+| [lib]/IMUKit.a          |     876(+876) |       0(+0) |   164(+164) |
 | [lib]/c.a               | 26028(+26028) | 2472(+2472) |     58(+58) |
 | [lib]/gcc.a             |   7624(+7624) |       0(+0) |       0(+0) |
 | [lib]/m.a               |   4804(+4804) |       0(+0) |       0(+0) |
 | [lib]/mbed-os-static.a  | 35916(+35916) |   444(+444) | 8660(+8660) |
 | [lib]/misc              |     188(+188) |       4(+4) |     28(+28) |
 | [lib]/nosys.a           |       32(+32) |       0(+0) |       0(+0) |
 | [lib]/stdc++.a          |   4116(+4116) |       8(+8) |     28(+28) |
-| main.cpp.obj            |     520(+520) |       0(+0) |   808(+808) |
-| Subtotals               | 89504(+89504) | 2936(+2936) | 9784(+9784) |
-Total Static RAM memory (data + bss): 12720(+12720) bytes
-Total Flash memory (text + data): 92440(+92440) bytes
+| main.cpp.obj            |     584(+584) |       0(+0) |   828(+828) |
+| Subtotals               | 89632(+89632) | 2936(+2936) | 9800(+9800) |
+Total Static RAM memory (data + bss): 12736(+12736) bytes
+Total Flash memory (text + data): 92568(+92568) bytes
 
Flash used: 98868 (4%) / total: 2097152
SRAM used: 13032 (2%) / total: 524288
spike_lk_motion_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_motion_kit-map.txt	2023-02-24 14:25:18.084325602 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_motion_kit-map.txt	2023-02-24 14:25:18.260328537 +0000
@@ -1,31 +1,29 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       158(+158) |       8(+8) |       34(+34) |
+| [fill]                     |       210(+210) |       8(+8) |       34(+34) |
 | [lib]/CoreBufferedSerial.a |       196(+196) |       0(+0) |         0(+0) |
-| [lib]/CoreEventFlags.a     |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |         76(+76) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a            |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a            |     6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a    |       222(+222) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a          |       176(+176) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a            |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreRFIDReader.a     |       616(+616) |       0(+0) |         0(+0) |
 | [lib]/CoreTimeout.a        |       204(+204) |       0(+0) |         0(+0) |
-| [lib]/EventLoopKit.a       |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a             |     2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a             |       768(+768) |       0(+0) |     164(+164) |
-| [lib]/MotionKit.a          |       884(+884) |       0(+0) |         0(+0) |
+| [lib]/IMUKit.a             |       876(+876) |       0(+0) |     164(+164) |
+| [lib]/MotionKit.a          |     1060(+1060) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |     1046(+1046) |       0(+0) |         8(+8) |
 | [lib]/c.a                  |   26128(+26128) | 2472(+2472) |       58(+58) |
 | [lib]/gcc.a                |     7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a                  |     4804(+4804) |       0(+0) |         0(+0) |
-| [lib]/mbed-os-static.a     |   42372(+42372) |   444(+444) |   8772(+8772) |
+| [lib]/mbed-os-static.a     |   42182(+42182) |   444(+444) |   8772(+8772) |
 | [lib]/misc                 |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |     4116(+4116) |       8(+8) |       28(+28) |
-| main.cpp.obj               |     1956(+1956) |       0(+0) |   3084(+3084) |
-| Subtotals                  | 101152(+101152) | 2936(+2936) | 12176(+12176) |
-Total Static RAM memory (data + bss): 15112(+15112) bytes
-Total Flash memory (text + data): 104088(+104088) bytes
+| main.cpp.obj               |     1912(+1912) |       0(+0) |   2876(+2876) |
+| Subtotals                  | 100768(+100768) | 2936(+2936) | 11968(+11968) |
+Total Static RAM memory (data + bss): 14904(+14904) bytes
+Total Flash memory (text + data): 103704(+103704) bytes
 
Flash used: 111532 (5%) / total: 2097152
SRAM used: 15200 (2%) / total: 524288
spike_lk_reinforcer (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_reinforcer-map.txt	2023-02-24 14:25:19.252343887 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_reinforcer-map.txt	2023-02-24 14:25:19.484347300 +0000
@@ -1,37 +1,37 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       274(+274) |       3(+3) |       48(+48) |
+| [fill]                  |       296(+296) |       3(+3) |       48(+48) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a  |       126(+126) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |     6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a |       136(+136) |       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]/CoreTimeout.a     |       204(+204) |       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  |     1228(+1228) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a          |     2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a          |       768(+768) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a          |       876(+876) |       0(+0) |     164(+164) |
 | [lib]/LedKit.a          |   19050(+19050) |       0(+0) |       20(+20) |
-| [lib]/MotionKit.a       |       838(+838) |       0(+0) |         0(+0) |
+| [lib]/MotionKit.a       |       936(+936) |       0(+0) |         0(+0) |
 | [lib]/ReinforcerKit.a   |     1696(+1696) |   460(+460) |         0(+0) |
 | [lib]/VideoKit.a        |       884(+884) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   42000(+42000) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     5008(+5008) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   74512(+74512) |   464(+464) | 10827(+10827) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10296(+10296) |     16(+16) |     204(+204) |
 | __/__                   |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj            |     4242(+4242) |       8(+8) |   3992(+3992) |
-| Subtotals               | 188752(+188752) | 3528(+3528) | 46216(+46216) |
-Total Static RAM memory (data + bss): 49744(+49744) bytes
-Total Flash memory (text + data): 192280(+192280) bytes
+| main.cpp.obj            |     4270(+4270) |       8(+8) |   3784(+3784) |
+| Subtotals               | 189008(+189008) | 3528(+3528) | 46008(+46008) |
+Total Static RAM memory (data + bss): 49536(+49536) bytes
+Total Flash memory (text + data): 192536(+192536) bytes
 
Flash used: 218072 (10%) / total: 2097152
SRAM used: 49856 (9%) / total: 524288

@codecov
Copy link

codecov bot commented Feb 17, 2023

Codecov Report

Merging #1292 (8bb3ba3) into develop (c00770c) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop    #1292      +/-   ##
===========================================
+ Coverage    98.73%   98.75%   +0.01%     
===========================================
  Files          145      147       +2     
  Lines         3729     3765      +36     
===========================================
+ Hits          3682     3718      +36     
  Misses          47       47              
Impacted Files Coverage Δ
libs/IMUKit/include/IMUKit.hpp 100.00% <ø> (ø)
libs/IMUKit/source/IMUKit.cpp 100.00% <100.00%> (ø)
libs/MotionKit/include/MotionKit.hpp 100.00% <100.00%> (ø)
libs/MotionKit/include/RotationControl.hpp 100.00% <100.00%> (ø)
libs/MotionKit/include/StabilizationControl.hpp 100.00% <100.00%> (ø)
libs/MotionKit/source/MotionKit.cpp 100.00% <100.00%> (ø)
libs/MotionKit/source/RotationControl.cpp 100.00% <100.00%> (ø)
libs/MotionKit/source/StabilizationControl.cpp 100.00% <100.00%> (ø)

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

@HPezz HPezz force-pushed the hugo/feature/Update-MotionKit-to-Fusion branch 3 times, most recently from e94e355 to b789b93 Compare February 20, 2023 12:04
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.

first review, thanks for the refactor. 👍

I still have a lot of questions and I'm not sure the system is error proof.

MotionKit tests must not rely on LSM6DSOX but must use an IMUKit mock

libs/IMUKit/include/IMUKit.hpp Outdated Show resolved Hide resolved
libs/IMUKit/source/IMUKit.cpp Outdated Show resolved Hide resolved
libs/MotionKit/include/MotionKit.hpp Outdated Show resolved Hide resolved
libs/MotionKit/include/PID.hpp Outdated Show resolved Hide resolved
libs/MotionKit/source/MotionKit.cpp Outdated Show resolved Hide resolved
libs/IMUKit/source/IMUKit.cpp Outdated Show resolved Hide resolved
libs/IMUKit/tests/IMUKit_test.cpp Outdated Show resolved Hide resolved
libs/IMUKit/tests/IMUKit_test.cpp Outdated Show resolved Hide resolved
libs/MotionKit/source/MotionKit.cpp Outdated Show resolved Hide resolved
libs/MotionKit/source/MotionKit.cpp Outdated 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.

Much better, thanks!
Added a few suggestions.

We'll discuss tests tomorrow :)

libs/MotionKit/source/MotionKit.cpp Outdated Show resolved Hide resolved
libs/MotionKit/source/MotionKit.cpp Outdated Show resolved Hide resolved
libs/MotionKit/source/MotionKit.cpp Show resolved Hide resolved
libs/MotionKit/source/MotionKit.cpp Outdated Show resolved Hide resolved
libs/MotionKit/source/MotionKit.cpp Outdated Show resolved Hide resolved
libs/MotionKit/source/MotionKit.cpp Outdated Show resolved Hide resolved
@HPezz HPezz force-pushed the hugo/feature/Update-MotionKit-to-Fusion branch 4 times, most recently from 643434f to 4d298f3 Compare February 24, 2023 14:08
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.

Great changes, code is much clearer 👍

I've made a few suggestions + I still have some questions

libs/MotionKit/include/MotionKit.hpp Outdated Show resolved Hide resolved
libs/MotionKit/include/MotionKit.hpp Outdated Show resolved Hide resolved
libs/MotionKit/include/MotionKit.hpp Outdated Show resolved Hide resolved
libs/MotionKit/include/MotionKit.hpp Outdated Show resolved Hide resolved
libs/MotionKit/include/PID.hpp Outdated Show resolved Hide resolved
libs/IMUKit/include/IMUKit.hpp Outdated Show resolved Hide resolved
Comment on lines 39 to 43
float _error_position_total = 0.F;
float _error_position_last = 0.F;
float _proportional = 0.F;
float _integral = 0.F;
float _derivative = 0.F;
Copy link
Member

Choose a reason for hiding this comment

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

could be made a struct as they are all related, at least the last 3

libs/MotionKit/source/MotionKit.cpp Outdated Show resolved Hide resolved
libs/MotionKit/source/MotionKit.cpp Outdated Show resolved Hide resolved
tests/unit/mocks/mocks/leka/IMUKit.h Outdated Show resolved Hide resolved
@HPezz HPezz force-pushed the hugo/feature/Update-MotionKit-to-Fusion branch from 64e7a48 to 970fdb2 Compare March 1, 2023 10:13
@HPezz HPezz force-pushed the hugo/feature/Update-MotionKit-to-Fusion branch from 970fdb2 to d6e7b3a Compare March 1, 2023 10:37
@github-actions
Copy link

github-actions bot commented Mar 1, 2023

📈 Changes Impact Analysis Report

📌 Info

  • toolchain: GNU Arm Embedded Toolchain 10.3-2021.10 - 10.3.1 20210824
  • enable_log_debug: OFF
base head
branch develop hugo/feature/Update-MotionKit-to-Fusion
sha c00770c 8bb3ba3
mbed mbed-os@master+fixes+gcc-11-support mbed-os@master+fixes+gcc-11-support
-std -std=c++20 -std=c++20

🤖 Firmware impact analysis

Target Flash Used (base/head) Flash Used Δ Flash Available (base/head) Static RAM (base/head) Static RAM Δ
bootloader 170888 (65%) ø 91256 (34%)
91256 (34%)
30960 (5%) ø
os 445880 (28%)
446120 (28%)
📈
+240 (+0%)
1118792 (71%)
1118552 (71%)
83880 (15%)
83672 (15%)
📉
-208 (0%)
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 |

🔬 Detailed impact analysis

Click to show detailed analysis for all targets
  • ✔️ - 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 ✔️ 445880 (21%)
446120 (21%)
📈
+240 (+0%)
83880 (15%)
83672 (15%)
📉
-208 (0%)
bootloader ✔️ 170888 (8%) ø 30960 (5%) ø
functional_ut_boost_ut ✔️ 394140 (18%) ø 20456 (3%) ø
functional_ut_core_imu ✔️ 377656 (18%) ø 20968 (3%) ø
functional_ut_deep_sleep_core_buffered_serial ✔️ 360600 (17%) ø 20440 (3%) ø
functional_ut_deep_sleep_core_motor ✔️ 364540 (17%) ø 20480 (3%) ø
functional_ut_deep_sleep_core_pwm ✔️ 366676 (17%) ø 20480 (3%) ø
functional_ut_deep_sleep_log_kit ✔️ 352568 (16%) ø 20408 (3%) ø
functional_ut_deep_sleep_mbed_hal ✔️ 354344 (16%) ø 20408 (3%) ø
functional_ut_file_manager ✔️ 376272 (17%) ø 20696 (3%) ø
functional_ut_firmware_kit ✔️ 367084 (17%) ø 20688 (3%) ø
functional_ut_imu_kit ✔️ 381348 (18%)
381572 (18%)
📈
+224 (+0%)
21144 (4%) ø
functional_ut_io_expander ✔️ 359576 (17%) ø 20424 (3%) ø
functional_ut_qdac ✔️ 360744 (17%) ø 20424 (3%) ø
spike_lk_audio ✔️ 127092 (6%) ø 14592 (2%) ø
spike_lk_behavior_kit ✔️ 189440 (9%) ø 48096 (9%) ø
spike_lk_ble ✔️ 229600 (10%) ø 28472 (5%) ø
spike_lk_bluetooth ✔️ 82948 (3%) ø 11544 (2%) ø
spike_lk_cg_animations ✔️ 145976 (6%) ø 46528 (8%) ø
spike_lk_color_kit ✔️ 65840 (3%) ø 13744 (2%) ø
spike_lk_command_kit ✔️ 220552 (10%)
220776 (10%)
📈
+224 (+0%)
52872 (10%)
52672 (10%)
📉
-200 (0%)
spike_lk_config_kit ✔️ 127324 (6%) ø 14360 (2%) ø
spike_lk_coreled ✔️ 76292 (3%) ø 13688 (2%) ø
spike_lk_core_touch_sensor ✔️ 80508 (3%) ø 12248 (2%) ø
spike_lk_event_queue ✔️ 74800 (3%) ø 12072 (2%) ø
spike_lk_file_manager_kit ✔️ 139528 (6%) ø 14440 (2%) ø
spike_lk_file_reception ✔️ 336000 (16%) ø 27792 (5%) ø
spike_lk_flash_memory ✔️ 63880 (3%) ø 11448 (2%) ø
spike_lk_fs ✔️ 175668 (8%) ø 47928 (9%) ø
spike_lk_imu_kit ✔️ 98700 (4%)
98860 (4%)
📈
+160 (+0%)
13016 (2%)
13032 (2%)
📈
+16 (+0%)
spike_lk_lcd ✔️ 163352 (7%) ø 46680 (8%) ø
spike_lk_led_kit ✔️ 103424 (4%) ø 14528 (2%) ø
spike_lk_log_kit ✔️ 63288 (3%) ø 12256 (2%) ø
spike_lk_motion_kit ✔️ 111972 (5%)
111716 (5%)
📉
-256 (0%)
15408 (2%)
15200 (2%)
📉
-208 (-1%)
spike_lk_motors ✔️ 62864 (2%) ø 11488 (2%) ø
spike_lk_qdac ✔️ 78852 (3%) ø 11808 (2%) ø
spike_lk_reinforcer ✔️ 217768 (10%)
218008 (10%)
📈
+240 (+0%)
50064 (9%)
49856 (9%)
📉
-208 (0%)
spike_lk_rfid ✔️ 79084 (3%) ø 11504 (2%) ø
spike_lk_sensors_battery ✔️ 78388 (3%) ø 12600 (2%) ø
spike_lk_sensors_imu_lsm6dsox ✔️ 89468 (4%) ø 12824 (2%) ø
spike_lk_sensors_imu_lsm6dsox_fusion_calibration ✔️ 97916 (4%) ø 12952 (2%) ø
spike_lk_sensors_light ✔️ 60056 (2%) ø 11440 (2%) ø
spike_lk_sensors_microphone ✔️ 72496 (3%) ø 11504 (2%) ø
spike_lk_sensors_temperature_humidity ✔️ 67272 (3%) ø 11424 (2%) ø
spike_lk_serial_number ✔️ 133084 (6%) ø 14304 (2%) ø
spike_lk_ticker_timeout ✔️ 69052 (3%) ø 11632 (2%) ø
spike_lk_touch_sensor_kit ✔️ 87896 (4%) ø 12824 (2%) ø
spike_lk_update_process_app_base ✔️ 145620 (6%) ø 15576 (2%) ø
spike_lk_update_process_app_update ✔️ 77632 (3%) ø 12352 (2%) ø
spike_lk_watchdog_isr ✔️ 80196 (3%) ø 13288 (2%) ø
spike_lk_wifi ✔️ 116544 (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

LekaOS (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/LekaOS-map.txt	2023-03-03 18:24:34.805738690 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/LekaOS-map.txt	2023-03-03 18:24:35.289758512 +0000
@@ -1,55 +1,55 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       658(+658) |     10(+10) |     250(+250) |
+| [fill]                     |       694(+694) |     10(+10) |     250(+250) |
 | [lib]/ActivityKit.a        |   10590(+10590) |       0(+0) |         0(+0) |
 | [lib]/BLEKit.a             |     1476(+1476) |       0(+0) |         0(+0) |
 | [lib]/BatteryKit.a         |       324(+324) |       0(+0) |         0(+0) |
 | [lib]/BehaviorKit.a        |     1652(+1652) |   460(+460) |         0(+0) |
 | [lib]/ColorKit.a           |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a         |     1120(+1120) |       0(+0) |         0(+0) |
 | [lib]/CoreBattery.a        |       544(+544) |       0(+0) |         0(+0) |
 | [lib]/CoreBufferedSerial.a |       196(+196) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a     |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |         44(+44) |       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            |     6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a    |       118(+118) |       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     |       580(+580) |       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     |     1786(+1786) |       0(+0) |         0(+0) |
 | [lib]/FirmwareKit.a        |       944(+944) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a             |     2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a             |       768(+768) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a             |       876(+876) |       0(+0) |     164(+164) |
 | [lib]/LedKit.a             |   19050(+19050) |       0(+0) |       20(+20) |
-| [lib]/MotionKit.a          |       838(+838) |       0(+0) |         0(+0) |
+| [lib]/MotionKit.a          |       878(+878) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |     1054(+1054) |       0(+0) |         8(+8) |
-| [lib]/ReinforcerKit.a      |     1242(+1242) |   460(+460) |         0(+0) |
+| [lib]/ReinforcerKit.a      |     1250(+1250) |   460(+460) |         0(+0) |
 | [lib]/SerialNumberKit.a    |       584(+584) |       0(+0) |         0(+0) |
 | [lib]/Utils.a              |         34(+34) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a           |       700(+700) |       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                |     7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a                  |     5368(+5368) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a     | 180206(+180206) |   773(+773) | 19667(+19667) |
 | [lib]/misc                 |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |   11964(+11964) |     16(+16) |     204(+204) |
 | __/__                      |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj               |   78470(+78470) |   108(+108) | 27730(+27730) |
-| Subtotals                  | 400048(+400048) | 4416(+4416) | 79136(+79136) |
-Total Static RAM memory (data + bss): 83552(+83552) bytes
-Total Flash memory (text + data): 404464(+404464) bytes
+| main.cpp.obj               |   78470(+78470) |   108(+108) | 27522(+27522) |
+| Subtotals                  | 400240(+400240) | 4416(+4416) | 78928(+78928) |
+Total Static RAM memory (data + bss): 83344(+83344) bytes
+Total Flash memory (text + data): 404656(+404656) bytes
 
Flash used: 446120&nbsp;(21%) / total: 2097152
SRAM used: 83672&nbsp;(15%) / total: 524288
functional_ut_imu_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/functional_ut_imu_kit-map.txt	2023-03-03 18:24:42.746062329 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/functional_ut_imu_kit-map.txt	2023-03-03 18:24:43.086073761 +0000
@@ -1,22 +1,22 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       200(+200) |     16(+16) |       45(+45) |
+| [fill]                  |       198(+198) |     16(+16) |       45(+45) |
 | [lib]/CoreEventQueue.a  |         76(+76) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |         88(+88) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |     6880(+6880) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a |       222(+222) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a          |     2036(+2036) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a          |       742(+742) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a          |       920(+920) |       0(+0) |     164(+164) |
 | [lib]/c.a               |   73772(+73772) | 2574(+2574) |       97(+97) |
 | [lib]/gcc.a             |     7956(+7956) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     4804(+4804) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   59044(+59044) |   460(+460) | 10751(+10751) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          | 173924(+173924) |   145(+145) |   5720(+5720) |
 | __/__                   |     1938(+1938) |       1(+1) |     817(+817) |
-| suite_imu_kit.cpp.obj   |     2802(+2802) |       0(+0) |         2(+2) |
-| Subtotals               | 334704(+334704) | 3200(+3200) | 17624(+17624) |
+| suite_imu_kit.cpp.obj   |     2818(+2818) |       0(+0) |         2(+2) |
+| Subtotals               | 334896(+334896) | 3200(+3200) | 17624(+17624) |
 Total Static RAM memory (data + bss): 20824(+20824) bytes
-Total Flash memory (text + data): 337904(+337904) bytes
+Total Flash memory (text + data): 338096(+338096) bytes
 
Flash used: 381572&nbsp;(18%) / total: 2097152
SRAM used: 21144&nbsp;(4%) / total: 524288
spike_lk_command_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_command_kit-map.txt	2023-03-03 18:24:47.958287707 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_command_kit-map.txt	2023-03-03 18:24:48.230300099 +0000
@@ -1,40 +1,40 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       272(+272) |       5(+5) |       40(+40) |
+| [fill]                  |       300(+300) |       5(+5) |       48(+48) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a      |     1152(+1152) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a  |       126(+126) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |     6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a |       136(+136) |       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]/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  |     1228(+1228) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a          |     2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a          |       768(+768) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a          |       876(+876) |       0(+0) |     164(+164) |
 | [lib]/LedKit.a          |   19050(+19050) |       0(+0) |       20(+20) |
-| [lib]/MotionKit.a       |       838(+838) |       0(+0) |         0(+0) |
-| [lib]/ReinforcerKit.a   |     1726(+1726) |   460(+460) |         0(+0) |
+| [lib]/MotionKit.a       |       878(+878) |       0(+0) |         0(+0) |
+| [lib]/ReinforcerKit.a   |     1734(+1734) |   460(+460) |         0(+0) |
 | [lib]/Utils.a           |         34(+34) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a        |       884(+884) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   42000(+42000) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     5008(+5008) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   74512(+74512) |   464(+464) | 10827(+10827) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10296(+10296) |     16(+16) |     204(+204) |
 | __/__                   |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj            |     5324(+5324) |   278(+278) |   6536(+6536) |
-| Subtotals               | 191056(+191056) | 3800(+3800) | 48752(+48752) |
-Total Static RAM memory (data + bss): 52552(+52552) bytes
-Total Flash memory (text + data): 194856(+194856) bytes
+| main.cpp.obj            |     5332(+5332) |   278(+278) |   6328(+6328) |
+| Subtotals               | 191248(+191248) | 3800(+3800) | 48552(+48552) |
+Total Static RAM memory (data + bss): 52352(+52352) bytes
+Total Flash memory (text + data): 195048(+195048) bytes
 
Flash used: 220776&nbsp;(10%) / total: 2097152
SRAM used: 52672&nbsp;(10%) / total: 524288
spike_lk_imu_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_imu_kit-map.txt	2023-03-03 18:24:52.282484482 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_imu_kit-map.txt	2023-03-03 18:24:52.474493219 +0000
@@ -1,22 +1,22 @@
 | Module                  |         .text |       .data |        .bss |
 |-------------------------|---------------|-------------|-------------|
-| [fill]                  |     186(+186) |       8(+8) |     38(+38) |
+| [fill]                  |     140(+140) |       8(+8) |     34(+34) |
 | [lib]/CoreEventQueue.a  |     126(+126) |       0(+0) |       0(+0) |
 | [lib]/CoreI2C.a         |       36(+36) |       0(+0) |       0(+0) |
 | [lib]/CoreIMU.a         |   6810(+6810) |       0(+0) |       0(+0) |
 | [lib]/CoreInterruptIn.a |     222(+222) |       0(+0) |       0(+0) |
 | [lib]/Fusion.a          |   2036(+2036) |       0(+0) |       0(+0) |
 | [lib]/HelloWorld.a      |       94(+94) |       0(+0) |       0(+0) |
-| [lib]/IMUKit.a          |     766(+766) |       0(+0) |   164(+164) |
+| [lib]/IMUKit.a          |     876(+876) |       0(+0) |   164(+164) |
 | [lib]/c.a               | 26028(+26028) | 2472(+2472) |     58(+58) |
 | [lib]/gcc.a             |   7624(+7624) |       0(+0) |       0(+0) |
 | [lib]/m.a               |   4804(+4804) |       0(+0) |       0(+0) |
 | [lib]/mbed-os-static.a  | 35916(+35916) |   444(+444) | 8660(+8660) |
 | [lib]/misc              |     188(+188) |       4(+4) |     28(+28) |
 | [lib]/nosys.a           |       32(+32) |       0(+0) |       0(+0) |
 | [lib]/stdc++.a          |   4116(+4116) |       8(+8) |     28(+28) |
-| main.cpp.obj            |     520(+520) |       0(+0) |   808(+808) |
-| Subtotals               | 89504(+89504) | 2936(+2936) | 9784(+9784) |
-Total Static RAM memory (data + bss): 12720(+12720) bytes
-Total Flash memory (text + data): 92440(+92440) bytes
+| main.cpp.obj            |     584(+584) |       0(+0) |   828(+828) |
+| Subtotals               | 89632(+89632) | 2936(+2936) | 9800(+9800) |
+Total Static RAM memory (data + bss): 12736(+12736) bytes
+Total Flash memory (text + data): 92568(+92568) bytes
 
Flash used: 98860&nbsp;(4%) / total: 2097152
SRAM used: 13032&nbsp;(2%) / total: 524288
spike_lk_motion_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_motion_kit-map.txt	2023-03-03 18:24:54.142569120 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_motion_kit-map.txt	2023-03-03 18:24:54.370579495 +0000
@@ -1,31 +1,29 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       158(+158) |       8(+8) |       34(+34) |
+| [fill]                     |       166(+166) |       8(+8) |       34(+34) |
 | [lib]/CoreBufferedSerial.a |       196(+196) |       0(+0) |         0(+0) |
-| [lib]/CoreEventFlags.a     |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |         76(+76) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a            |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a            |     6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a    |       222(+222) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a          |       176(+176) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a            |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreRFIDReader.a     |       616(+616) |       0(+0) |         0(+0) |
 | [lib]/CoreTimeout.a        |       204(+204) |       0(+0) |         0(+0) |
-| [lib]/EventLoopKit.a       |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a             |     2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a             |       768(+768) |       0(+0) |     164(+164) |
-| [lib]/MotionKit.a          |       884(+884) |       0(+0) |         0(+0) |
+| [lib]/IMUKit.a             |       876(+876) |       0(+0) |     164(+164) |
+| [lib]/MotionKit.a          |     1312(+1312) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |     1046(+1046) |       0(+0) |         8(+8) |
 | [lib]/c.a                  |   26128(+26128) | 2472(+2472) |       58(+58) |
 | [lib]/gcc.a                |     7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a                  |     4804(+4804) |       0(+0) |         0(+0) |
-| [lib]/mbed-os-static.a     |   42372(+42372) |   444(+444) |   8772(+8772) |
+| [lib]/mbed-os-static.a     |   42182(+42182) |   444(+444) |   8772(+8772) |
 | [lib]/misc                 |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |     4116(+4116) |       8(+8) |       28(+28) |
-| main.cpp.obj               |     1956(+1956) |       0(+0) |   3084(+3084) |
-| Subtotals                  | 101152(+101152) | 2936(+2936) | 12176(+12176) |
-Total Static RAM memory (data + bss): 15112(+15112) bytes
-Total Flash memory (text + data): 104088(+104088) bytes
+| main.cpp.obj               |     1896(+1896) |       0(+0) |   2876(+2876) |
+| Subtotals                  | 100960(+100960) | 2936(+2936) | 11968(+11968) |
+Total Static RAM memory (data + bss): 14904(+14904) bytes
+Total Flash memory (text + data): 103896(+103896) bytes
 
Flash used: 111716&nbsp;(5%) / total: 2097152
SRAM used: 15200&nbsp;(2%) / total: 524288
spike_lk_reinforcer (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_reinforcer-map.txt	2023-03-03 18:24:55.542632826 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_reinforcer-map.txt	2023-03-03 18:24:55.810645021 +0000
@@ -1,37 +1,37 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       274(+274) |       3(+3) |       48(+48) |
+| [fill]                  |       298(+298) |       3(+3) |       48(+48) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a  |       126(+126) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |     6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a |       136(+136) |       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]/CoreTimeout.a     |       204(+204) |       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  |     1228(+1228) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a          |     2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a          |       768(+768) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a          |       876(+876) |       0(+0) |     164(+164) |
 | [lib]/LedKit.a          |   19050(+19050) |       0(+0) |       20(+20) |
-| [lib]/MotionKit.a       |       838(+838) |       0(+0) |         0(+0) |
-| [lib]/ReinforcerKit.a   |     1696(+1696) |   460(+460) |         0(+0) |
+| [lib]/MotionKit.a       |       878(+878) |       0(+0) |         0(+0) |
+| [lib]/ReinforcerKit.a   |     1704(+1704) |   460(+460) |         0(+0) |
 | [lib]/VideoKit.a        |       884(+884) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   42000(+42000) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     5008(+5008) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   74512(+74512) |   464(+464) | 10827(+10827) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10296(+10296) |     16(+16) |     204(+204) |
 | __/__                   |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj            |     4242(+4242) |       8(+8) |   3992(+3992) |
-| Subtotals               | 188752(+188752) | 3528(+3528) | 46216(+46216) |
-Total Static RAM memory (data + bss): 49744(+49744) bytes
-Total Flash memory (text + data): 192280(+192280) bytes
+| main.cpp.obj            |     4254(+4254) |       8(+8) |   3784(+3784) |
+| Subtotals               | 188944(+188944) | 3528(+3528) | 46008(+46008) |
+Total Static RAM memory (data + bss): 49536(+49536) bytes
+Total Flash memory (text + data): 192472(+192472) bytes
 
Flash used: 218008&nbsp;(10%) / total: 2097152
SRAM used: 49856&nbsp;(9%) / total: 524288

@github-actions
Copy link

github-actions bot commented Mar 1, 2023

📈 Changes Impact Analysis Report

📌 Info

  • toolchain: GNU Arm Embedded Toolchain 10.3-2021.10 - 10.3.1 20210824
  • enable_log_debug: ON
base head
branch develop hugo/feature/Update-MotionKit-to-Fusion
sha c00770c 8bb3ba3
mbed mbed-os@master+fixes+gcc-11-support mbed-os@master+fixes+gcc-11-support
-std -std=c++20 -std=c++20

🤖 Firmware impact analysis

Target Flash Used (base/head) Flash Used Δ Flash Available (base/head) Static RAM (base/head) Static RAM Δ
bootloader 183692 (70%) ø 78452 (29%)
78452 (29%)
41664 (7%) ø
os 507436 (32%)
507676 (32%)
📈
+240 (+0%)
1057236 (67%)
1056996 (67%)
95104 (18%)
94896 (18%)
📉
-208 (0%)
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 |

🔬 Detailed impact analysis

Click to show detailed analysis for all targets
  • ✔️ - 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 ✔️ 507436 (24%)
507676 (24%)
📈
+240 (+0%)
95104 (18%)
94896 (18%)
📉
-208 (0%)
bootloader ✔️ 183692 (8%) ø 41664 (7%) ø
functional_ut_boost_ut ✔️ 409276 (19%) ø 30608 (5%) ø
functional_ut_core_imu ✔️ 385140 (18%) ø 31120 (5%) ø
functional_ut_deep_sleep_core_buffered_serial ✔️ 368332 (17%) ø 30560 (5%) ø
functional_ut_deep_sleep_core_motor ✔️ 376140 (17%) ø 30632 (5%) ø
functional_ut_deep_sleep_core_pwm ✔️ 378356 (18%) ø 30632 (5%) ø
functional_ut_deep_sleep_log_kit ✔️ 365268 (17%) ø 30976 (5%) ø
functional_ut_deep_sleep_mbed_hal ✔️ 366712 (17%) ø 30560 (5%) ø
functional_ut_file_manager ✔️ 388092 (18%) ø 30856 (5%) ø
functional_ut_firmware_kit ✔️ 379116 (18%) ø 30848 (5%) ø
functional_ut_imu_kit ✔️ 388896 (18%)
389120 (18%)
📈
+224 (+0%)
31296 (5%) ø
functional_ut_io_expander ✔️ 371176 (17%) ø 30576 (5%) ø
functional_ut_qdac ✔️ 372344 (17%) ø 30576 (5%) ø
spike_lk_audio ✔️ 137724 (6%) ø 25168 (4%) ø
spike_lk_behavior_kit ✔️ 198500 (9%) ø 58672 (11%) ø
spike_lk_ble ✔️ 237980 (11%) ø 39416 (7%) ø
spike_lk_bluetooth ✔️ 92364 (4%) ø 22224 (4%) ø
spike_lk_cg_animations ✔️ 153672 (7%) ø 57224 (10%) ø
spike_lk_color_kit ✔️ 88544 (4%) ø 24376 (4%) ø
spike_lk_command_kit ✔️ 229972 (10%)
230132 (10%)
📈
+160 (+0%)
63960 (12%)
63760 (12%)
📉
-200 (0%)
spike_lk_config_kit ✔️ 139780 (6%) ø 25184 (4%) ø
spike_lk_coreled ✔️ 88108 (4%) ø 24264 (4%) ø
spike_lk_core_touch_sensor ✔️ 93164 (4%) ø 22824 (4%) ø
spike_lk_event_queue ✔️ 84152 (4%) ø 22904 (4%) ø
spike_lk_file_manager_kit ✔️ 154560 (7%) ø 25520 (4%) ø
spike_lk_file_reception ✔️ 339964 (16%) ø 38448 (7%) ø
spike_lk_flash_memory ✔️ 86776 (4%) ø 22216 (4%) ø
spike_lk_fs ✔️ 178228 (8%) ø 57536 (10%) ø
spike_lk_imu_kit ✔️ 107280 (5%)
107504 (5%)
📈
+224 (+0%)
23728 (4%)
23744 (4%)
📈
+16 (+0%)
spike_lk_lcd ✔️ 173500 (8%) ø 57520 (10%) ø
spike_lk_led_kit ✔️ 115204 (5%) ø 25104 (4%) ø
spike_lk_log_kit ✔️ 84776 (4%) ø 23408 (4%) ø
spike_lk_motion_kit ✔️ 117008 (5%)
116752 (5%)
📉
-256 (0%)
25952 (4%)
25744 (4%)
📉
-208 (0%)
spike_lk_motors ✔️ 86336 (4%) ø 22248 (4%) ø
spike_lk_qdac ✔️ 91796 (4%) ø 22768 (4%) ø
spike_lk_reinforcer ✔️ 225428 (10%)
225652 (10%)
📈
+224 (+0%)
60640 (11%)
60432 (11%)
📉
-208 (0%)
spike_lk_rfid ✔️ 84216 (4%) ø 22184 (4%) ø
spike_lk_sensors_battery ✔️ 87376 (4%) ø 23312 (4%) ø
spike_lk_sensors_imu_lsm6dsox ✔️ 98624 (4%) ø 23536 (4%) ø
spike_lk_sensors_imu_lsm6dsox_fusion_calibration ✔️ 105064 (5%) ø 23104 (4%) ø
spike_lk_sensors_light ✔️ 84072 (4%) ø 22216 (4%) ø
spike_lk_sensors_microphone ✔️ 84824 (4%) ø 22216 (4%) ø
spike_lk_sensors_temperature_humidity ✔️ 90616 (4%) ø 22192 (4%) ø
spike_lk_serial_number ✔️ 145028 (6%) ø 25256 (4%) ø
spike_lk_ticker_timeout ✔️ 82712 (3%) ø 22232 (4%) ø
spike_lk_touch_sensor_kit ✔️ 96668 (4%) ø 23392 (4%) ø
spike_lk_update_process_app_base ✔️ 157932 (7%) ø 26288 (5%) ø
spike_lk_update_process_app_update ✔️ 100456 (4%) ø 23240 (4%) ø
spike_lk_watchdog_isr ✔️ 87520 (4%) ø 24136 (4%) ø
spike_lk_wifi ✔️ 130984 (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

LekaOS (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/LekaOS-map.txt	2023-03-03 18:22:49.306103597 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/LekaOS-map.txt	2023-03-03 18:22:49.686108940 +0000
@@ -1,55 +1,55 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       624(+624) |     10(+10) |     271(+271) |
+| [fill]                     |       664(+664) |     10(+10) |     271(+271) |
 | [lib]/ActivityKit.a        |   10590(+10590) |       0(+0) |         0(+0) |
 | [lib]/BLEKit.a             |     1476(+1476) |       0(+0) |         0(+0) |
 | [lib]/BatteryKit.a         |       324(+324) |       0(+0) |         0(+0) |
 | [lib]/BehaviorKit.a        |     1652(+1652) |   460(+460) |         0(+0) |
 | [lib]/ColorKit.a           |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a         |     1120(+1120) |       0(+0) |         0(+0) |
 | [lib]/CoreBattery.a        |       544(+544) |       0(+0) |         0(+0) |
 | [lib]/CoreBufferedSerial.a |       196(+196) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a     |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |         44(+44) |       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            |     6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a    |       118(+118) |       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     |       580(+580) |       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     |     2294(+2294) |       0(+0) |         0(+0) |
 | [lib]/FirmwareKit.a        |       944(+944) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a             |     2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a             |       768(+768) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a             |       876(+876) |       0(+0) |     164(+164) |
 | [lib]/LedKit.a             |   19050(+19050) |       0(+0) |       20(+20) |
-| [lib]/MotionKit.a          |       838(+838) |       0(+0) |         0(+0) |
+| [lib]/MotionKit.a          |       878(+878) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |     1054(+1054) |       0(+0) |         8(+8) |
-| [lib]/ReinforcerKit.a      |     1242(+1242) |   460(+460) |         0(+0) |
+| [lib]/ReinforcerKit.a      |     1250(+1250) |   460(+460) |         0(+0) |
 | [lib]/SerialNumberKit.a    |       584(+584) |       0(+0) |         0(+0) |
 | [lib]/Utils.a              |         34(+34) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a           |       686(+686) |       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                |     7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a                  |     5368(+5368) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a     | 181458(+181458) |   773(+773) | 19755(+19755) |
 | [lib]/misc                 |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |   12012(+12012) |     16(+16) |     204(+204) |
 | __/__                      |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj               | 138742(+138742) |   108(+108) | 38837(+38837) |
-| Subtotals                  | 460976(+460976) | 4416(+4416) | 90352(+90352) |
-Total Static RAM memory (data + bss): 94768(+94768) bytes
-Total Flash memory (text + data): 465392(+465392) bytes
+| main.cpp.obj               | 138738(+138738) |   108(+108) | 38629(+38629) |
+| Subtotals                  | 461168(+461168) | 4416(+4416) | 90144(+90144) |
+Total Static RAM memory (data + bss): 94560(+94560) bytes
+Total Flash memory (text + data): 465584(+465584) bytes
 
Flash used: 507676&nbsp;(24%) / total: 2097152
SRAM used: 94896&nbsp;(18%) / total: 524288
functional_ut_imu_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/functional_ut_imu_kit-map.txt	2023-03-03 18:22:56.006198095 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/functional_ut_imu_kit-map.txt	2023-03-03 18:22:56.294202162 +0000
@@ -1,23 +1,23 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       208(+208) |     16(+16) |       49(+49) |
+| [fill]                  |       206(+206) |     16(+16) |       49(+49) |
 | [lib]/CoreEventQueue.a  |         44(+44) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |         88(+88) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |     6880(+6880) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a |       222(+222) |       0(+0) |         0(+0) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a          |     2036(+2036) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a          |       742(+742) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a          |       920(+920) |       0(+0) |     164(+164) |
 | [lib]/c.a               |   72544(+72544) | 2574(+2574) |       97(+97) |
 | [lib]/gcc.a             |     7956(+7956) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     5176(+5176) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   63024(+63024) |   460(+460) | 10875(+10875) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          | 174492(+174492) |   145(+145) |   5720(+5720) |
 | __/__                   |     3988(+3988) |       1(+1) | 10841(+10841) |
-| suite_imu_kit.cpp.obj   |     3292(+3292) |       0(+0) |         2(+2) |
-| Subtotals               | 340920(+340920) | 3200(+3200) | 27776(+27776) |
+| suite_imu_kit.cpp.obj   |     3308(+3308) |       0(+0) |         2(+2) |
+| Subtotals               | 341112(+341112) | 3200(+3200) | 27776(+27776) |
 Total Static RAM memory (data + bss): 30976(+30976) bytes
-Total Flash memory (text + data): 344120(+344120) bytes
+Total Flash memory (text + data): 344312(+344312) bytes
 
Flash used: 389120&nbsp;(18%) / total: 2097152
SRAM used: 31296&nbsp;(5%) / total: 524288
spike_lk_command_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_command_kit-map.txt	2023-03-03 18:23:00.414260465 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_command_kit-map.txt	2023-03-03 18:23:00.654263881 +0000
@@ -1,40 +1,40 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       328(+328) |       5(+5) |       44(+44) |
+| [fill]                  |       304(+304) |       5(+5) |       52(+52) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a      |     1152(+1152) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a  |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |     6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a |       136(+136) |       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]/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  |     1736(+1736) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a          |     2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a          |       768(+768) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a          |       876(+876) |       0(+0) |     164(+164) |
 | [lib]/LedKit.a          |   19050(+19050) |       0(+0) |       20(+20) |
-| [lib]/MotionKit.a       |       838(+838) |       0(+0) |         0(+0) |
-| [lib]/ReinforcerKit.a   |     1726(+1726) |   460(+460) |         0(+0) |
+| [lib]/MotionKit.a       |       878(+878) |       0(+0) |         0(+0) |
+| [lib]/ReinforcerKit.a   |     1734(+1734) |   460(+460) |         0(+0) |
 | [lib]/Utils.a           |         34(+34) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a        |       870(+870) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   40920(+40920) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     5368(+5368) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   78492(+78492) |   464(+464) | 10951(+10951) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10716(+10716) |     16(+16) |     204(+204) |
 | __/__                   |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj            |     8758(+8758) |   278(+278) | 17488(+17488) |
-| Subtotals               | 198688(+198688) | 3800(+3800) | 59832(+59832) |
-Total Static RAM memory (data + bss): 63632(+63632) bytes
-Total Flash memory (text + data): 202488(+202488) bytes
+| main.cpp.obj            |     8754(+8754) |   278(+278) | 17280(+17280) |
+| Subtotals               | 198816(+198816) | 3800(+3800) | 59632(+59632) |
+Total Static RAM memory (data + bss): 63432(+63432) bytes
+Total Flash memory (text + data): 202616(+202616) bytes
 
Flash used: 230132&nbsp;(10%) / total: 2097152
SRAM used: 63760&nbsp;(12%) / total: 524288
spike_lk_imu_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_imu_kit-map.txt	2023-03-03 18:23:04.170313913 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_imu_kit-map.txt	2023-03-03 18:23:04.338316303 +0000
@@ -1,23 +1,23 @@
 | Module                  |         .text |       .data |          .bss |
 |-------------------------|---------------|-------------|---------------|
-| [fill]                  |     172(+172) |       8(+8) |       42(+42) |
+| [fill]                  |     190(+190) |       8(+8) |       38(+38) |
 | [lib]/CoreEventQueue.a  |       94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |       36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |   6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a |     222(+222) |       0(+0) |         0(+0) |
 | [lib]/CriticalSection.a |         8(+8) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a          |   2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |       94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a          |     766(+766) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a          |     876(+876) |       0(+0) |     164(+164) |
 | [lib]/c.a               | 24948(+24948) | 2472(+2472) |       58(+58) |
 | [lib]/gcc.a             |   7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a               |   5164(+5164) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  | 39896(+39896) |   444(+444) |   8784(+8784) |
 | [lib]/misc              |     188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |       32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   5424(+5424) |       8(+8) |       44(+44) |
-| main.cpp.obj            |   2662(+2662) |       0(+0) | 11376(+11376) |
-| Subtotals               | 96240(+96240) | 2936(+2936) | 20496(+20496) |
-Total Static RAM memory (data + bss): 23432(+23432) bytes
-Total Flash memory (text + data): 99176(+99176) bytes
+| main.cpp.obj            |   2726(+2726) |       0(+0) | 11396(+11396) |
+| Subtotals               | 96432(+96432) | 2936(+2936) | 20512(+20512) |
+Total Static RAM memory (data + bss): 23448(+23448) bytes
+Total Flash memory (text + data): 99368(+99368) bytes
 
Flash used: 107504&nbsp;(5%) / total: 2097152
SRAM used: 23744&nbsp;(4%) / total: 524288
spike_lk_motion_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_motion_kit-map.txt	2023-03-03 18:23:05.806337193 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_motion_kit-map.txt	2023-03-03 18:23:05.986339754 +0000
@@ -1,32 +1,30 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       188(+188) |       8(+8) |       34(+34) |
+| [fill]                     |       212(+212) |       8(+8) |       34(+34) |
 | [lib]/CoreBufferedSerial.a |       196(+196) |       0(+0) |         0(+0) |
-| [lib]/CoreEventFlags.a     |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |         44(+44) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a            |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a            |     6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a    |       222(+222) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a          |       176(+176) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a            |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreRFIDReader.a     |       616(+616) |       0(+0) |         0(+0) |
 | [lib]/CoreTimeout.a        |       204(+204) |       0(+0) |         0(+0) |
 | [lib]/CriticalSection.a    |           8(+8) |       0(+0) |         0(+0) |
-| [lib]/EventLoopKit.a       |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a             |     2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a             |       768(+768) |       0(+0) |     164(+164) |
-| [lib]/MotionKit.a          |       884(+884) |       0(+0) |         0(+0) |
+| [lib]/IMUKit.a             |       876(+876) |       0(+0) |     164(+164) |
+| [lib]/MotionKit.a          |     1312(+1312) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |     1046(+1046) |       0(+0) |         8(+8) |
 | [lib]/c.a                  |   25048(+25048) | 2472(+2472) |       58(+58) |
 | [lib]/gcc.a                |     7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a                  |     5164(+5164) |       0(+0) |         0(+0) |
-| [lib]/mbed-os-static.a     |   42828(+42828) |   444(+444) |   8860(+8860) |
+| [lib]/mbed-os-static.a     |   42638(+42638) |   444(+444) |   8860(+8860) |
 | [lib]/misc                 |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |     5424(+5424) |       8(+8) |       44(+44) |
-| main.cpp.obj               |     4250(+4250) |       0(+0) | 13524(+13524) |
-| Subtotals                  | 104496(+104496) | 2936(+2936) | 22720(+22720) |
-Total Static RAM memory (data + bss): 25656(+25656) bytes
-Total Flash memory (text + data): 107432(+107432) bytes
+| main.cpp.obj               |     4174(+4174) |       0(+0) | 13316(+13316) |
+| Subtotals                  | 104304(+104304) | 2936(+2936) | 22512(+22512) |
+Total Static RAM memory (data + bss): 25448(+25448) bytes
+Total Flash memory (text + data): 107240(+107240) bytes
 
Flash used: 116752&nbsp;(5%) / total: 2097152
SRAM used: 25744&nbsp;(4%) / total: 524288
spike_lk_reinforcer (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_reinforcer-map.txt	2023-03-03 18:23:07.014354382 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_reinforcer-map.txt	2023-03-03 18:23:07.250357740 +0000
@@ -1,38 +1,38 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       272(+272) |       3(+3) |       52(+52) |
+| [fill]                  |       312(+312) |       3(+3) |       52(+52) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a  |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |     6810(+6810) |       0(+0) |         0(+0) |
 | [lib]/CoreInterruptIn.a |       136(+136) |       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]/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  |     1736(+1736) |       0(+0) |         0(+0) |
 | [lib]/Fusion.a          |     2036(+2036) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/IMUKit.a          |       768(+768) |       0(+0) |     164(+164) |
+| [lib]/IMUKit.a          |       876(+876) |       0(+0) |     164(+164) |
 | [lib]/LedKit.a          |   19050(+19050) |       0(+0) |       20(+20) |
-| [lib]/MotionKit.a       |       838(+838) |       0(+0) |         0(+0) |
-| [lib]/ReinforcerKit.a   |     1696(+1696) |   460(+460) |         0(+0) |
+| [lib]/MotionKit.a       |       878(+878) |       0(+0) |         0(+0) |
+| [lib]/ReinforcerKit.a   |     1704(+1704) |   460(+460) |         0(+0) |
 | [lib]/VideoKit.a        |       884(+884) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   40920(+40920) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7688(+7688) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     5368(+5368) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   78492(+78492) |   464(+464) | 10951(+10951) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10716(+10716) |     16(+16) |     204(+204) |
 | __/__                   |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj            |     6304(+6304) |       8(+8) | 14432(+14432) |
-| Subtotals               | 194976(+194976) | 3528(+3528) | 56784(+56784) |
-Total Static RAM memory (data + bss): 60312(+60312) bytes
-Total Flash memory (text + data): 198504(+198504) bytes
+| main.cpp.obj            |     6300(+6300) |       8(+8) | 14224(+14224) |
+| Subtotals               | 195168(+195168) | 3528(+3528) | 56576(+56576) |
+Total Static RAM memory (data + bss): 60104(+60104) bytes
+Total Flash memory (text + data): 198696(+198696) bytes
 
Flash used: 225652&nbsp;(10%) / total: 2097152
SRAM used: 60432&nbsp;(11%) / total: 524288

@HPezz HPezz force-pushed the hugo/feature/Update-MotionKit-to-Fusion branch 2 times, most recently from 0ebd679 to 9f109ee Compare March 2, 2023 17:57
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.

thanks for the refactor 👍

I think we're good for the time being.

I've made some suggestions/refactors for 1.5.0 to allow us to do what we talked about in our weekly #1308 and provide a lot of different controls

MotionKit won't need to depend on IMUKit and Motors, only the controls will depend on those

Comment on lines +44 to +45
RotationControl _rotation_control;
StabilizationControl _stabilization_control;
Copy link
Member

Choose a reason for hiding this comment

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

for now, we'll say this is okay.

for 1.5.0, it must be refactored to instanciate control classes outside and register/start them when needed.

on the same model as CommandKit

This will allow us to add more controls without the need to recompile MotionKit

Comment on lines 36 to 37
void calculateTotalYawRotation(float yaw);
void setMotorsSpeedAndDirection(float speed, Rotation direction);
Copy link
Member

Choose a reason for hiding this comment

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

do both controls need those?

if not, they could be move to the control class that needs them.

Comment on lines +33 to +34
void processAngleForRotation(const EulerAngles &angles, Rotation direction);
void processAngleForStabilization(const EulerAngles &angles);
Copy link
Member

Choose a reason for hiding this comment

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

in a future PR, this should replaced by start(control_name)

_imukit(imu_kit),
_event_loop(event_loop),
_timeout(timeout)
MotionKit(interface::Motor &motor_left, interface::Motor &motor_right, interface::IMUKit &imu_kit,
Copy link
Member

Choose a reason for hiding this comment

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

in a futur PR/refactor, I think MotionKit will not depend on IMUKit but instead, each control class that needs it will depend on what is needed.

just like CommandKit

same for the motors, etc.

MotionKit will just need to start and stop the control without knowing what the control actually does.

@HPezz HPezz force-pushed the hugo/feature/Update-MotionKit-to-Fusion branch from 9f109ee to 0f61fec Compare March 3, 2023 14:10
@HPezz HPezz force-pushed the hugo/feature/Update-MotionKit-to-Fusion branch from 0f61fec to 280f03a Compare March 3, 2023 14:34
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.

Seems like a few things have changed between yesterday and now, I've made new change requests.

to me, too much "rotation" logic is still present in MotionKit whereas it should be moved to RotationControl.

Comment on lines 37 to 43
auto RotationControl::calculateYawRotation(float previous_yaw, float yaw) -> float
{
auto abs_yaw_delta = std::abs(previous_yaw - yaw);
if (abs_yaw_delta >= 300.F) {
return 360.F - abs_yaw_delta;
}
return abs_yaw_delta;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
auto RotationControl::calculateYawRotation(float previous_yaw, float yaw) -> float
{
auto abs_yaw_delta = std::abs(previous_yaw - yaw);
if (abs_yaw_delta >= 300.F) {
return 360.F - abs_yaw_delta;
}
return abs_yaw_delta;
auto RotationControl::calculateYawRotation(float previous, float current) -> float
{
auto abs_delta = std::abs(previous - current);
if (abs_delta >= 300.F) {
return 360.F - abs_delta;
}
return abs_delta;

Comment on lines 79 to 82
_angle_rotation_sum += _rotation_control.calculateYawRotation(_euler_angles_previous.yaw, angles.yaw);

while (_stabilisation_requested || _target_not_reached) {
auto [pitch, roll, yaw] = _imukit.getEulerAngles();
auto [speed, rotation] = _pid.processPID(pitch, roll, yaw);
if (_rotate_x_turns_requested && _target_not_reached) {
auto speed = _rotation_control.processRotationAngle(_angle_rotation_target, _angle_rotation_sum);
Copy link
Member

Choose a reason for hiding this comment

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

why do you need this to be here?

the RotationControl should handle this logic, not MotionKit

Copy link
Member

Choose a reason for hiding this comment

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

the whole function should be in RotationControl

you push the raw yaw value as input and get speed + direction as output

(before we move all that to the control class completely)

Comment on lines 29 to 48
_euler_angles_previous = _imukit.getEulerAngles();

_target_not_reached = true;
_stabilisation_requested = false;
_rotate_x_turns_requested = true;

_rotations_to_execute = number_of_rotations;

_motor_left.spin(direction, kPwmMaxValue);
_motor_right.spin(direction, kPwmMaxValue);
_angle_rotation_sum = 0;
_angle_rotation_target = number_of_rotations * 360.F;

auto on_timeout = [this] { stop(); };

_timeout.onTimeout(on_timeout);
_timeout.start(10s);

_event_loop.start();
auto on_euler_angles_rdy_callback = [this, direction](const EulerAngles &euler_angles) {
processAngleForRotation(euler_angles, direction);
};

_imukit.onEulerAnglesReady(on_euler_angles_rdy_callback);

_on_rotation_ended_callback = on_rotation_ended_callback;
Copy link
Member

Choose a reason for hiding this comment

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

All of this should be part of RotationControl

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 3, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

100.0% 100.0% Coverage
12.4% 12.4% Duplication

@HPezz
Copy link
Contributor Author

HPezz commented Mar 6, 2023

PR split into:

  1. hugo/feature/Update MotionKit Rotation to Fusion #1314 , a refactor PR of MptionKit including Rotation control only
  2. hugo/feature/Add Stabilization to MotionKit #1315 , adding stabilization control & yaw stabilization method in MotionKit

@ladislas
Copy link
Member

ladislas commented Mar 9, 2023

replaced by #1314 and #1315

@ladislas ladislas closed this Mar 9, 2023
@ladislas ladislas deleted the hugo/feature/Update-MotionKit-to-Fusion branch March 9, 2023 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
01 - type: task Something to do
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Story] - IMU - Get correct orientation for every robots Reinforcer - No perfect 1080° rotation
2 participants