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/Add ReinforcerKit #980

Merged
merged 4 commits into from
Sep 5, 2022
Merged

Conversation

HPezz
Copy link
Contributor

@HPezz HPezz commented Aug 25, 2022

  • ✨ (libs): Add ReinforcerKit
  • ✅ (tests): Add ReinforcerKit_test.cpp
  • 🔥 (behavior): Remove Reinforcers from BehaviorKit
  • 🎨 (commandkit): Update ReinforcerCommand
  • 🎨 (os): Update OS with ReinforcerKit

@github-actions
Copy link

github-actions bot commented Aug 25, 2022

File comparision analysis report

🔖 Info

Target Flash Used (%) Flash Available (%) Static RAM (%)
bootloader 168820 (64%) 93324 (35%) 30920 (5%)
os 364520 (23%) 1200152 (76%) 73736 (14%)
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 ✔️ 363560 (17%)
364520 (17%)
📈
960 (0%)
73712 (14%)
73736 (14%)
📈
24 (0%)
bootloader ✔️ 168820 (8%) ø 30920 (5%) ø
spike_lk_audio ✔️ 122324 (5%) ø 14568 (2%) ø
spike_lk_behavior_kit ✔️ 187568 (8%)
186848 (8%)
📉
-720 (0%)
48112 (9%) ø
spike_lk_ble ✔️ 225792 (10%) ø 28056 (5%) ø
spike_lk_bluetooth ✔️ 82948 (3%) ø 11544 (2%) ø
spike_lk_cg_animations ✔️ 144632 (6%) ø 46528 (8%) ø
spike_lk_color_kit ✔️ 65712 (3%) ø 13744 (2%) ø
spike_lk_command_kit ✔️ 189760 (9%)
189632 (9%)
📉
-128 (0%)
50928 (9%)
50936 (9%)
📈
8 (0%)
spike_lk_config_kit ✔️ 124188 (5%) ø 14312 (2%) ø
spike_lk_coreled ✔️ 76164 (3%) ø 13688 (2%) ø
spike_lk_event_queue ✔️ 74736 (3%) ø 12072 (2%) ø
spike_lk_file_manager_kit ✔️ 128680 (6%) ø 14384 (2%) ø
spike_lk_file_reception ✔️ 326968 (15%) ø 27576 (5%) ø
spike_lk_flash_memory ✔️ 63880 (3%) ø 11448 (2%) ø
spike_lk_fs ✔️ 171728 (8%) ø 47880 (9%) ø
spike_lk_lcd ✔️ 167468 (7%) ø 47320 (9%) ø
spike_lk_led_kit ✔️ 103992 (4%) ø 14608 (2%) ø
spike_lk_log_kit ✔️ 63736 (3%) ø 12256 (2%) ø
spike_lk_motors ✔️ 62600 (2%) ø 11488 (2%) ø
spike_lk_qdac ✔️ 78564 (3%) ø 11816 (2%) ø
spike_lk_reinforcer ✔️ 103480 (4%) ø 14608 (2%) ø
spike_lk_rfid ✔️ 80920 (3%) ø 11520 (2%) ø
spike_lk_sensors_battery ✔️ 78196 (3%) ø 12568 (2%) ø
spike_lk_sensors_light ✔️ 60056 (2%) ø 11440 (2%) ø
spike_lk_sensors_microphone ✔️ 72496 (3%) ø 11504 (2%) ø
spike_lk_sensors_temperature_humidity ✔️ 67048 (3%) ø 11424 (2%) ø
spike_lk_sensors_touch ✔️ 68600 (3%) ø 11432 (2%) ø
spike_lk_serial_number ✔️ 58904 (2%) ø 11480 (2%) ø
spike_lk_ticker_timeout ✔️ 69052 (3%) ø 11632 (2%) ø
spike_lk_update_process_app_base ✔️ 122804 (5%) ø 15288 (2%) ø
spike_lk_update_process_app_update ✔️ 77632 (3%) ø 12352 (2%) ø
spike_lk_watchdog_isr ✔️ 82032 (3%) ø 13288 (2%) ø
spike_lk_wifi ✔️ 116392 (5%) ø 14808 (2%) ø
spike_mbed_blinky ✔️ 57968 (2%) ø 11400 (2%) ø
spike_mbed_watchdog_ticker_vs_thread ✔️ 63208 (3%) ø 12448 (2%) ø
spike_stl_cxxsupport ✔️ 58456 (2%) ø 11400 (2%) ø

🗺️ Map files diff output

Click to show diff list
LekaOS (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/LekaOS-map.txt	2022-09-05 15:20:33.870079505 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/LekaOS-map.txt	2022-09-05 15:20:34.338081965 +0000
@@ -1,46 +1,47 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       538(+538) |     22(+22) |     192(+192) |
+| [fill]                     |       544(+544) |     22(+22) |     196(+196) |
 | [lib]/BLEKit.a             |     1292(+1292) |       0(+0) |         0(+0) |
 | [lib]/BatteryKit.a         |       324(+324) |       0(+0) |         0(+0) |
-| [lib]/BehaviorKit.a        |     2334(+2334) |       0(+0) |         0(+0) |
+| [lib]/BehaviorKit.a        |     1814(+1814) |       0(+0) |         0(+0) |
 | [lib]/ColorKit.a           |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a         |     1120(+1120) |       0(+0) |         0(+0) |
 | [lib]/CoreBattery.a        |       472(+472) |       0(+0) |         0(+0) |
 | [lib]/CoreBufferedSerial.a |         62(+62) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a     |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |       116(+116) |       0(+0) |         0(+0) |
 | [lib]/CoreFlashMemory.a    |       546(+546) |       0(+0) |         0(+0) |
 | [lib]/CoreMCU.a            |         16(+16) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a          |       130(+130) |       0(+0) |         0(+0) |
 | [lib]/CoreMutex.a          |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a            |         12(+12) |       0(+0) |         0(+0) |
 | [lib]/CoreQSPI.a           |       160(+160) |       0(+0) |         0(+0) |
 | [lib]/CoreRFIDReader.a     |       588(+588) |       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          |     7920(+7920) |       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     |     1308(+1308) |       0(+0) |         0(+0) |
 | [lib]/FirmwareKit.a        |       172(+172) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/LedKit.a             |   19410(+19410) |       0(+0) |       10(+10) |
 | [lib]/RFIDKit.a            |     1058(+1058) |       0(+0) |         8(+8) |
+| [lib]/ReinforcerKit.a      |     1470(+1470) |       0(+0) |         0(+0) |
 | [lib]/SerialNumberKit.a    |       232(+232) |       0(+0) |         0(+0) |
 | [lib]/Utils.a              |         34(+34) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a           |       638(+638) |       0(+0) |       36(+36) |
 | [lib]/bootutil.a           |     1362(+1362) |     12(+12) |     132(+132) |
 | [lib]/c.a                  |   43396(+43396) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a                |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a                  |       204(+204) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a     | 170856(+170856) |   769(+769) | 19647(+19647) |
 | [lib]/misc                 |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |   10312(+10312) |     16(+16) |     204(+204) |
-| main.cpp.obj               |   50314(+50314) |   548(+548) | 18286(+18286) |
-| Subtotals                  | 324872(+324872) | 3944(+3944) | 69440(+69440) |
-Total Static RAM memory (data + bss): 73384(+73384) bytes
-Total Flash memory (text + data): 328816(+328816) bytes
+| main.cpp.obj               |   50318(+50318) |   548(+548) | 18306(+18306) |
+| Subtotals                  | 325832(+325832) | 3944(+3944) | 69464(+69464) |
+Total Static RAM memory (data + bss): 73408(+73408) bytes
+Total Flash memory (text + data): 329776(+329776) bytes
 
Flash used: 364520 (17%) / total: 2097152
SRAM used: 73736 (14%) / total: 524288
spike_lk_behavior_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_behavior_kit-map.txt	2022-09-05 15:20:35.934090352 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_behavior_kit-map.txt	2022-09-05 15:20:36.254092034 +0000
@@ -1,28 +1,28 @@
 | Module                 |           .text |       .data |          .bss |
 |------------------------|-----------------|-------------|---------------|
-| [fill]                 |       256(+256) |     11(+11) |       32(+32) |
-| [lib]/BehaviorKit.a    |     1754(+1754) |       0(+0) |         0(+0) |
+| [fill]                 |       280(+280) |     11(+11) |       32(+32) |
+| [lib]/BehaviorKit.a    |     1234(+1234) |       0(+0) |         0(+0) |
 | [lib]/ColorKit.a       |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a      |       130(+130) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a        |         12(+12) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a        |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a   |       930(+930) |       0(+0) |         0(+0) |
 | [lib]/CoreVideo.a      |     7920(+7920) |       1(+1) | 30800(+30800) |
 | [lib]/EventLoopKit.a   |       366(+366) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a |       808(+808) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a     |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/LedKit.a         |   19410(+19410) |       0(+0) |       10(+10) |
 | [lib]/VideoKit.a       |       682(+682) |       0(+0) |       36(+36) |
 | [lib]/c.a              |   42000(+42000) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a            |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a              |       204(+204) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a |   62240(+62240) |   460(+460) | 10261(+10261) |
 | [lib]/misc             |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a          |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a         |   10328(+10328) |     16(+16) |     204(+204) |
-| main.cpp.obj           |     5156(+5156) |   448(+448) |   2812(+2812) |
-| Subtotals              | 160644(+160644) | 3512(+3512) | 44280(+44280) |
+| main.cpp.obj           |     5012(+5012) |   448(+448) |   2812(+2812) |
+| Subtotals              | 160004(+160004) | 3512(+3512) | 44280(+44280) |
 Total Static RAM memory (data + bss): 47792(+47792) bytes
-Total Flash memory (text + data): 164156(+164156) bytes
+Total Flash memory (text + data): 163516(+163516) bytes
 
Flash used: 186848 (8%) / total: 2097152
SRAM used: 48112 (9%) / total: 524288
spike_lk_command_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_command_kit-map.txt	2022-09-05 15:20:39.098106980 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_command_kit-map.txt	2022-09-05 15:20:39.414108640 +0000
@@ -1,31 +1,31 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       270(+270) |     13(+13) |       32(+32) |
-| [lib]/BehaviorKit.a     |     1618(+1618) |       0(+0) |         0(+0) |
+| [fill]                  |       280(+280) |     13(+13) |       36(+36) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a      |     1152(+1152) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a       |       130(+130) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a         |         12(+12) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a         |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a    |       930(+930) |       0(+0) |         0(+0) |
 | [lib]/CoreVideo.a       |     7920(+7920) |       1(+1) | 30800(+30800) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a    |       366(+366) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a  |       808(+808) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/LedKit.a          |   19264(+19264) |       0(+0) |       10(+10) |
+| [lib]/ReinforcerKit.a   |     1544(+1544) |       0(+0) |         0(+0) |
 | [lib]/Utils.a           |         34(+34) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a        |       682(+682) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   42000(+42000) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a               |       204(+204) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   62240(+62240) |   460(+460) | 10261(+10261) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10328(+10328) |     16(+16) |     204(+204) |
-| main.cpp.obj            |     6086(+6086) |   718(+718) |   5356(+5356) |
-| Subtotals               | 162500(+162500) | 3784(+3784) | 46824(+46824) |
-Total Static RAM memory (data + bss): 50608(+50608) bytes
-Total Flash memory (text + data): 166284(+166284) bytes
+| main.cpp.obj            |     6086(+6086) |   718(+718) |   5360(+5360) |
+| Subtotals               | 162436(+162436) | 3784(+3784) | 46832(+46832) |
+Total Static RAM memory (data + bss): 50616(+50616) bytes
+Total Flash memory (text + data): 166220(+166220) bytes
 
Flash used: 189632 (9%) / total: 2097152
SRAM used: 50936 (9%) / total: 524288

@github-actions
Copy link

github-actions bot commented Aug 25, 2022

File comparision analysis report

🔖 Info

Target Flash Used (%) Flash Available (%) Static RAM (%)
bootloader 181260 (69%) 80884 (30%) 37456 (7%)
os 397916 (25%) 1166756 (74%) 80664 (15%)
Click to show memory sections
| -          |      Hex |     Bytes |  KiB |
|------------|---------:|----------:|-----:|
| Flash      | 0x200000 | 2 097 152 | 2048 |
| SRAM       |  0x80000 |   524 288 |  512 |
| Bootloader |  0x40000 |   262 144 |  256 |
| Header     |   0x1000 |     4 096 |    4 |
| OS         | 0x17E000 | 1 564 672 | 1528 |
| Tail       |   0x1000 |     4 096 |    4 |
| Scratch    |  0x40000 |   262 144 |  256 |

📝 Summary

Click to show summary
  • ✔️ - existing target
  • ✨ - new target
  • ⚰️ - deleted target
  • ✅ - files are the same
  • ❌ - files are different
Target Status .bin .map Total Flash (base/head) Total Flash Δ Static RAM (base/head) Static RAM Δ
LekaOS ✔️ 396956 (18%)
397916 (18%)
📈
960 (0%)
80640 (15%)
80664 (15%)
📈
24 (0%)
bootloader ✔️ 181260 (8%) ø 37456 (7%) ø
spike_lk_audio ✔️ 132380 (6%) ø 20984 (4%) ø
spike_lk_behavior_kit ✔️ 196052 (9%)
195348 (9%)
📉
-704 (0%)
54528 (10%) ø
spike_lk_ble ✔️ 233676 (11%) ø 34712 (6%) ø
spike_lk_bluetooth ✔️ 92236 (4%) ø 18064 (3%) ø
spike_lk_cg_animations ✔️ 152200 (7%) ø 53064 (10%) ø
spike_lk_color_kit ✔️ 88352 (4%) ø 20216 (3%) ø
spike_lk_command_kit ✔️ 199956 (9%)
199828 (9%)
📉
-128 (0%)
57856 (11%)
57864 (11%)
📈
8 (0%)
spike_lk_config_kit ✔️ 136100 (6%) ø 20976 (4%) ø
spike_lk_coreled ✔️ 87916 (4%) ø 20104 (3%) ø
spike_lk_event_queue ✔️ 84088 (4%) ø 18744 (3%) ø
spike_lk_file_manager_kit ✔️ 143648 (6%) ø 21304 (4%) ø
spike_lk_file_reception ✔️ 331036 (15%) ø 34072 (6%) ø
spike_lk_flash_memory ✔️ 86712 (4%) ø 18056 (3%) ø
spike_lk_fs ✔️ 171024 (8%) ø 47968 (9%) ø
spike_lk_lcd ✔️ 177100 (8%) ø 53992 (10%) ø
spike_lk_led_kit ✔️ 115708 (5%) ø 21024 (4%) ø
spike_lk_log_kit ✔️ 84440 (4%) ø 19248 (3%) ø
spike_lk_motors ✔️ 86008 (4%) ø 18088 (3%) ø
spike_lk_qdac ✔️ 91508 (4%) ø 18616 (3%) ø
spike_lk_reinforcer ✔️ 112188 (5%) ø 21024 (4%) ø
spike_lk_rfid ✔️ 84636 (4%) ø 18024 (3%) ø
spike_lk_sensors_battery ✔️ 87056 (4%) ø 19120 (3%) ø
spike_lk_sensors_light ✔️ 83944 (4%) ø 18056 (3%) ø
spike_lk_sensors_microphone ✔️ 84696 (4%) ø 18056 (3%) ø
spike_lk_sensors_temperature_humidity ✔️ 90336 (4%) ø 18032 (3%) ø
spike_lk_sensors_touch ✔️ 91608 (4%) ø 18296 (3%) ø
spike_lk_serial_number ✔️ 82176 (3%) ø 18336 (3%) ø
spike_lk_ticker_timeout ✔️ 82584 (3%) ø 18072 (3%) ø
spike_lk_update_process_app_base ✔️ 144644 (6%) ø 21896 (4%) ø
spike_lk_update_process_app_update ✔️ 100328 (4%) ø 19080 (3%) ø
spike_lk_watchdog_isr ✔️ 87940 (4%) ø 19960 (3%) ø
spike_lk_wifi ✔️ 130640 (6%) ø 21368 (4%) ø
spike_mbed_blinky ✔️ 57616 (2%) ø 11496 (2%) ø
spike_mbed_watchdog_ticker_vs_thread ✔️ 84112 (4%) ø 18920 (3%) ø
spike_stl_cxxsupport ✔️ 83424 (3%) ø 18144 (3%) ø

🗺️ Map files diff output

Click to show diff list
LekaOS (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/LekaOS-map.txt	2022-09-05 15:20:49.430148765 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/LekaOS-map.txt	2022-09-05 15:20:49.842150880 +0000
@@ -1,46 +1,47 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       532(+532) |     22(+22) |     213(+213) |
+| [fill]                     |       542(+542) |     22(+22) |     217(+217) |
 | [lib]/BLEKit.a             |     1292(+1292) |       0(+0) |         0(+0) |
 | [lib]/BatteryKit.a         |       324(+324) |       0(+0) |         0(+0) |
-| [lib]/BehaviorKit.a        |     2334(+2334) |       0(+0) |         0(+0) |
+| [lib]/BehaviorKit.a        |     1814(+1814) |       0(+0) |         0(+0) |
 | [lib]/ColorKit.a           |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a         |     1120(+1120) |       0(+0) |         0(+0) |
 | [lib]/CoreBattery.a        |       472(+472) |       0(+0) |         0(+0) |
 | [lib]/CoreBufferedSerial.a |         62(+62) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a     |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |       116(+116) |       0(+0) |         0(+0) |
 | [lib]/CoreFlashMemory.a    |       546(+546) |       0(+0) |         0(+0) |
 | [lib]/CoreMCU.a            |         16(+16) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a          |       130(+130) |       0(+0) |         0(+0) |
 | [lib]/CoreMutex.a          |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a            |         12(+12) |       0(+0) |         0(+0) |
 | [lib]/CoreQSPI.a           |       160(+160) |       0(+0) |         0(+0) |
 | [lib]/CoreRFIDReader.a     |       588(+588) |       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          |     7920(+7920) |       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     |     1308(+1308) |       0(+0) |         0(+0) |
 | [lib]/FirmwareKit.a        |       172(+172) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/LedKit.a             |   19410(+19410) |       0(+0) |       10(+10) |
 | [lib]/RFIDKit.a            |     1058(+1058) |       0(+0) |         8(+8) |
+| [lib]/ReinforcerKit.a      |     1470(+1470) |       0(+0) |         0(+0) |
 | [lib]/SerialNumberKit.a    |       232(+232) |       0(+0) |         0(+0) |
 | [lib]/Utils.a              |         34(+34) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a           |       638(+638) |       0(+0) |       36(+36) |
 | [lib]/bootutil.a           |     1362(+1362) |     12(+12) |     132(+132) |
 | [lib]/c.a                  |   42180(+42180) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a                |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a                  |       564(+564) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a     | 172108(+172108) |   769(+769) | 19735(+19735) |
 | [lib]/misc                 |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |   10732(+10732) |     16(+16) |     204(+204) |
-| main.cpp.obj               |   81392(+81392) |   548(+548) | 25105(+25105) |
-| Subtotals                  | 356760(+356760) | 3944(+3944) | 76368(+76368) |
-Total Static RAM memory (data + bss): 80312(+80312) bytes
-Total Flash memory (text + data): 360704(+360704) bytes
+| main.cpp.obj               |   81392(+81392) |   548(+548) | 25125(+25125) |
+| Subtotals                  | 357720(+357720) | 3944(+3944) | 76392(+76392) |
+Total Static RAM memory (data + bss): 80336(+80336) bytes
+Total Flash memory (text + data): 361664(+361664) bytes
 
Flash used: 397916 (18%) / total: 2097152
SRAM used: 80664 (15%) / total: 524288
spike_lk_behavior_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_behavior_kit-map.txt	2022-09-05 15:20:51.246158106 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_behavior_kit-map.txt	2022-09-05 15:20:51.546159654 +0000
@@ -1,29 +1,29 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       268(+268) |     11(+11) |       36(+36) |
-| [lib]/BehaviorKit.a     |     1754(+1754) |       0(+0) |         0(+0) |
+| [fill]                  |       292(+292) |     11(+11) |       36(+36) |
+| [lib]/BehaviorKit.a     |     1234(+1234) |       0(+0) |         0(+0) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a       |       130(+130) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a         |         12(+12) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a         |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a    |       930(+930) |       0(+0) |         0(+0) |
 | [lib]/CoreVideo.a       |     7920(+7920) |       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  |       808(+808) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/LedKit.a          |   19410(+19410) |       0(+0) |       10(+10) |
 | [lib]/VideoKit.a        |       682(+682) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   40920(+40920) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a               |       564(+564) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   67612(+67612) |   460(+460) | 10393(+10393) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10748(+10748) |     16(+16) |     204(+204) |
-| main.cpp.obj            |     7138(+7138) |   448(+448) |   9092(+9092) |
-| Subtotals               | 167700(+167700) | 3512(+3512) | 50696(+50696) |
+| main.cpp.obj            |     6994(+6994) |   448(+448) |   9092(+9092) |
+| Subtotals               | 167060(+167060) | 3512(+3512) | 50696(+50696) |
 Total Static RAM memory (data + bss): 54208(+54208) bytes
-Total Flash memory (text + data): 171212(+171212) bytes
+Total Flash memory (text + data): 170572(+170572) bytes
 
Flash used: 195348 (9%) / total: 2097152
SRAM used: 54528 (10%) / total: 524288
spike_lk_command_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_command_kit-map.txt	2022-09-05 15:20:54.018172409 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_command_kit-map.txt	2022-09-05 15:20:54.302173875 +0000
@@ -1,31 +1,31 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       242(+242) |     13(+13) |       36(+36) |
-| [lib]/BehaviorKit.a     |     1618(+1618) |       0(+0) |         0(+0) |
+| [fill]                  |       256(+256) |     13(+13) |       40(+40) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a      |     1152(+1152) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a       |       130(+130) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a         |         12(+12) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a         |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a    |       930(+930) |       0(+0) |         0(+0) |
 | [lib]/CoreVideo.a       |     7920(+7920) |       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  |       808(+808) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/LedKit.a          |   19264(+19264) |       0(+0) |       10(+10) |
+| [lib]/ReinforcerKit.a   |     1544(+1544) |       0(+0) |         0(+0) |
 | [lib]/Utils.a           |         34(+34) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a        |       682(+682) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   40920(+40920) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a               |       564(+564) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   67612(+67612) |   460(+460) | 10393(+10393) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10748(+10748) |     16(+16) |     204(+204) |
-| main.cpp.obj            |     9460(+9460) |   718(+718) | 12148(+12148) |
-| Subtotals               | 170900(+170900) | 3784(+3784) | 53752(+53752) |
-Total Static RAM memory (data + bss): 57536(+57536) bytes
-Total Flash memory (text + data): 174684(+174684) bytes
+| main.cpp.obj            |     9456(+9456) |   718(+718) | 12152(+12152) |
+| Subtotals               | 170836(+170836) | 3784(+3784) | 53760(+53760) |
+Total Static RAM memory (data + bss): 57544(+57544) bytes
+Total Flash memory (text + data): 174620(+174620) bytes
 
Flash used: 199828 (9%) / total: 2097152
SRAM used: 57864 (11%) / total: 524288

@codecov
Copy link

codecov bot commented Aug 25, 2022

Codecov Report

Merging #980 (66ddd4a) into develop (5d6fb17) will decrease coverage by 0.08%.
The diff coverage is 95.94%.

❗ Current head 66ddd4a differs from pull request most recent head 0afcd0b. Consider uploading reports for the commit 0afcd0b to get more accurate results

@@             Coverage Diff             @@
##           develop     #980      +/-   ##
===========================================
- Coverage    96.01%   95.93%   -0.09%     
===========================================
  Files          129      129              
  Lines         2987     3001      +14     
===========================================
+ Hits          2868     2879      +11     
- Misses         119      122       +3     
Impacted Files Coverage Δ
libs/BehaviorKit/include/BehaviorKit.h 100.00% <ø> (ø)
libs/BehaviorKit/source/BehaviorKit.cpp 100.00% <ø> (ø)
libs/ReinforcerKit/source/ReinforcerKit.cpp 95.77% <95.77%> (ø)
libs/ReinforcerKit/include/ReinforcerKit.h 100.00% <100.00%> (ø)
drivers/CoreTouchSensor/source/CoreTouchSensor.cpp
drivers/CoreTouchSensor/include/CoreTouchSensor.h

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

@HPezz HPezz force-pushed the hugo/feature/Add-ReinforcerKit branch from 76eedc3 to 822669e Compare August 25, 2022 21:57
@HPezz HPezz self-assigned this Aug 25, 2022
@HPezz HPezz requested a review from ladislas August 25, 2022 21:59
@HPezz HPezz added the 01 - type: task Something to do label Aug 25, 2022
@HPezz HPezz added this to the Next Release milestone Aug 25, 2022
Copy link
Member

@ladislas ladislas left a comment

Choose a reason for hiding this comment

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

LGTM 👍 modulo deux trois changements :)

libs/ReinforcerKit/include/ReinforcerKit.h Outdated Show resolved Hide resolved
libs/ReinforcerKit/source/ReinforcerKit.cpp Outdated Show resolved Hide resolved
libs/ReinforcerKit/source/ReinforcerKit.cpp Outdated Show resolved Hide resolved
libs/ReinforcerKit/include/ReinforcerKit.h Outdated Show resolved Hide resolved
@HPezz HPezz force-pushed the hugo/feature/Add-ReinforcerKit branch 2 times, most recently from 3bb82ce to bb06e78 Compare September 1, 2022 15:54
Copy link
Member

@YannLocatelli YannLocatelli left a comment

Choose a reason for hiding this comment

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

Pas grand chose à dire, c'est bon pour moi :)

spikes/lk_command_kit/main.cpp Show resolved Hide resolved
libs/ReinforcerKit/include/ReinforcerKit.h Show resolved Hide resolved
Comment on lines 17 to 19
void ReinforcerKit::run(const Reinforcer &reinforcer)
{
switch (reinforcer) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion un peu barbare, avoir un run qui prend en paramètre un Reinforcer en pointeur et s'il est nul de pouvoir lancer le renforçateur par défaut.

Suggested change
void ReinforcerKit::run(const Reinforcer &reinforcer)
{
switch (reinforcer) {
void ReinforcerKit::run(const Reinforcer *reinforcer = nullptr)
{
auto selected_reinforcer = *reinforcer == nullptr ? _default_reinforcer : *reinforcer
switch (selected_reinforcer) {

Ca permettrait de l'extérieur de simplifier encore plus les choses en ayant uniquement que setDefaultReinforcer
et run en fonctions d'appels de ReinforcerKit plutôt que de se dire "si je ne sais pas quel renforçateur appeler, il faut appeler une autre fonction"

@HPezz HPezz force-pushed the hugo/feature/Add-ReinforcerKit branch from bb06e78 to 3c3f3fa Compare September 2, 2022 10:33
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! 👍

@HPezz HPezz force-pushed the hugo/feature/Add-ReinforcerKit branch from 7f05e35 to bbe826d Compare September 5, 2022 13:22
@ladislas ladislas force-pushed the hugo/feature/Add-ReinforcerKit branch from 66ddd4a to 6ac5c30 Compare September 5, 2022 15:09
@ladislas ladislas force-pushed the hugo/feature/Add-ReinforcerKit branch from 6ac5c30 to 0afcd0b Compare September 5, 2022 15:09
@sonarcloud
Copy link

sonarcloud bot commented Sep 5, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

88.4% 88.4% Coverage
0.0% 0.0% Duplication

@ladislas ladislas merged commit 7b59605 into develop Sep 5, 2022
@ladislas ladislas deleted the hugo/feature/Add-ReinforcerKit branch September 5, 2022 17:24
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.

3 participants