2024-11-05(6): Project, Sysprog Recap

Org

Material

  • Recap class point. Emphasize on const, and initialization

  • signed vs. unsigned: SysFSPWMPin has a mixture of uint64_t and int64_t. Should take care, mostly about semantics: period and duty_cycle cannot become negative, so these should possibly be unsigned. But how about conversion to SysFSFile’s methods, which currently only take int64_t. Solution: check for overflow/conversion, or add uint64_t methods to SysFSFile.

Project

Homework

  • ip addr

  • Someone to implement signed/unsigned? ⟶ std::stoull()

Myself

  • create git page, and link it to course main page

  • ./fh-stece22-suite: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by ./fh-stece22-suite)

  • uint64/int64 woes (pwm vs. sysfsfile) -> see existing commented-out test