Project

General

Profile

Revision 339f64d2

ID339f64d25a9ebe0313c025e75956f7ff224d8965
Parent 4f83d2b4
Child 259aaff8, 126fea96

Added by Alex Zirbel over 3 years ago

Fixed warnings in libscout behaviors.

Some of these were actually serious errors. Others were little things.

View differences:

scout/libscout/src/behaviors/Odometry.cpp
38 38
  //Also, subtract the delta from y because positive y is down.
39 39
  scout_pos->x += total_dist*cos(-theta);
40 40
  scout_pos->y -= total_dist*sin(-theta);
41
  scout_pos->theta = fmod(theta, 2*M_PI);
41
  scout_pos->theta = fmod(theta, (float)(2*M_PI));
42 42

  
43 43
  //Save state for next time in.
44 44
  motor_fl_ticks = scout_enc.fl_ticks;

Also available in: Unified diff