Sille Van Landschoot
/
racing_robots
Racing Robots Session
Fork of racing_robots by
Revision 10:c67825bf5f6b, committed 2015-06-03
- Comitter:
- sillevl
- Date:
- Wed Jun 03 11:28:28 2015 +0000
- Parent:
- 9:0385d1bfc38b
- Commit message:
- initial project
Changed in this revision
robot_logic.h | Show annotated file Show diff for this revision Revisions of this file |
xbee.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/robot_logic.h Mon Jun 01 14:53:39 2015 +0000 +++ b/robot_logic.h Wed Jun 03 11:28:28 2015 +0000 @@ -1,6 +1,8 @@ #ifndef H_ROBOT_LOGIC #define H_ROBOT_LOGIC +#define XBEE + #include "mbed.h" #include "m3pi.h"
--- a/xbee.cpp Mon Jun 01 14:53:39 2015 +0000 +++ b/xbee.cpp Wed Jun 03 11:28:28 2015 +0000 @@ -20,7 +20,7 @@ } void Xbee::setCode(int code){ - if( code >= 0 && code < 1000){ + if( code < 0 && code >= 1000){ error("Code must be between 0 and 999."); } this->code = code;