Revision 1072
Switched to loop based suspending on the robots using simulator_do
now runs much better for the stupid template sample
dragonfly_lib.h | ||
---|---|---|
1 | 1 |
/** |
2 | 2 |
* Copyright (c) 2007 Colony Project |
3 |
*
|
|
3 |
* |
|
4 | 4 |
* Permission is hereby granted, free of charge, to any person |
5 | 5 |
* obtaining a copy of this software and associated documentation |
6 | 6 |
* files (the "Software"), to deal in the Software without |
... | ... | |
9 | 9 |
* copies of the Software, and to permit persons to whom the |
10 | 10 |
* Software is furnished to do so, subject to the following |
11 | 11 |
* conditions: |
12 |
*
|
|
12 |
* |
|
13 | 13 |
* The above copyright notice and this permission notice shall be |
14 | 14 |
* included in all copies or substantial portions of the Software. |
15 |
*
|
|
15 |
* |
|
16 | 16 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
17 | 17 |
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
18 | 18 |
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
... | ... | |
27 | 27 |
/** |
28 | 28 |
* @file dragonfly_lib.h |
29 | 29 |
* @brief Contains other include files |
30 |
*
|
|
30 |
* |
|
31 | 31 |
* Include this file for all the functionality of libdragonfly. |
32 | 32 |
* |
33 | 33 |
* @author Colony Project, CMU Robotics Club |
... | ... | |
74 | 74 |
* |
75 | 75 |
* @param config The subsystems that you wish to turn on. Check dragonfly_lib.h for |
76 | 76 |
* valid values. |
77 |
*
|
|
77 |
* |
|
78 | 78 |
* @see analog_init, usb_init, xbee_init, buzzer_init, |
79 | 79 |
* bom_init, orb_init, motors_init, lcd_init |
80 | 80 |
**/ |
81 | 81 |
void dragonfly_init(int config); |
82 | 82 |
|
83 |
/** |
|
84 |
* @brief runs the simulator loop, if runninf in the simulator |
|
85 |
* |
|
86 |
* When compiled for the simulator, this call updates the simulator by |
|
87 |
* suspending the robot process, which allows the simulator core to |
|
88 |
* update the world state. |
|
89 |
* |
|
90 |
* This function should be called at the end of the main program loop. |
|
91 |
* |
|
92 |
* When compiled on the robot, this call does nothing |
|
93 |
**/ |
|
94 |
void simulator_do(); |
|
95 |
|
|
83 | 96 |
/** @} **/ //end addtogroup |
84 | 97 |
|
85 | 98 |
#include <analog.h> |
Also available in: Unified diff