Skip to content

Commit

Permalink
Comments and small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ku3i committed May 31, 2018
1 parent 98dded0 commit eff6172
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/build/params.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct ActuatorParameters {
, kM ( rnd(motor_parameter::kM , perc, var) )
, R_i_inv ( rnd(motor_parameter::R_i_inv, perc, var) )
{
dsPrint("Using randomized actuator parameters by %1.2f %% and %1.3f variation", perc*100, var);
dsPrint("Using randomized actuator parameters by %1.2f %% variation", perc * 100 * var);
assert (perc >= 0. and perc <= 0.33);
assert (var >= 0. and var <= 1.00);
/* Sticktion must be greater than coulomb friction. This is guarantied up to a range of 33%*/
Expand Down
2 changes: 1 addition & 1 deletion src/controller/tcp_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ bool TCPController::parse_update_model_command(const char* msg)
unsigned rnd_instance = 0;
double rnd_amp = .0;

if (2 == sscanf(msg, " %d %u %lf", &new_model_id, &rnd_instance, &rnd_amp)
if (3 == sscanf(msg, " %d %u %lf", &new_model_id, &rnd_instance, &rnd_amp)
or 1 == sscanf(msg, " %d" , &new_model_id /*no instance*/))
{
robot.destroy();
Expand Down
2 changes: 1 addition & 1 deletion src/robots/hannah_random.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace HannahRand {
, weight_kg({rnd(3.040, range, amp) /**TODO specify */
, rnd(0.100, range, amp) /**TODO specify */
, rnd(0.615, range, amp) /**TODO specify */
, rnd(0.200, range, amp) /**TODO specify */
, rnd(0.200, range, amp) /**TODO specify, make the real leg weight more, in order to back-drive */
})
, torque( rnd(5.0, range, amp) )
, color_body ( rnd(.5, 1.0, amp), rnd(.5, 1.0, amp), rnd(.5, 1.0, amp), 1.0 )
Expand Down

0 comments on commit eff6172

Please sign in to comment.