Project

General

Profile

Revision 737bb380

ID737bb380f77ab8570b0481e2b93b4e72583e28a6

Added by Ben Wasserman about 5 years ago

Restructured libscout.(cpp/h) so the behavior main runs in a separate file, and just calls upon libscout.cpp for initialization. This behavior function can then be swapped out or changed, and the rest of the libscout node can be precompiled so it doesn't have to be recompiled every time.

View differences:

scout/libscout/src/libscout.h
32 32
 * libscout
33 33
 *
34 34
 * @author Colony Project, CMU Robotics Club
35
 * @author Ben Wasserman
35 36
 **/
36 37

  
37 38
/* Author: Ben Wasserman
......
45 46
#include "libmotors.h"
46 47

  
47 48
/* Libscout functions */
48
int main(int argc, char **argv);
49
int init(int modules);
49
int init(int modules, int argc, char **argv);
50 50

  
51 51
#endif
52 52

  

Also available in: Unified diff