97 [[nodiscard]] std::string
format()
const
102 "\t- ECD: {} (last: {})\n"
103 "\t- Angle (single round): {:.2f} deg\n"
104 "\t- Angular Velocity: {:.2f} deg/s\n"
105 "\t- Total Angle: {:.2f} deg\n"
106 "\t- Total Rounds: {}\n"
107 "\t- Real Current: {} mA\n"
108 "\t- Output Current: {}\n"
109 "\t- Temperature: {} °C",
119 std::ostringstream oss;
120 oss <<
"M3508 Status:\n"
121 <<
"\t- ECD: " <<
ecd <<
" (last: " <<
last_ecd <<
")\n"
122 <<
"\t- Angle (single round): " << std::fixed << std::setprecision(2) <<
angle_single_round <<
" deg\n"
123 <<
"\t- Angular Velocity: " << std::fixed << std::setprecision(2) <<
angular <<
" deg/s\n"
124 <<
"\t- Total Angle: " << std::fixed << std::setprecision(2) <<
total_angle <<
" deg\n"