git.droids-corp.org
/
aversive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
strat db
[aversive.git]
/
projects
/
microb2010
/
mainboard
/
main.c
diff --git
a/projects/microb2010/mainboard/main.c
b/projects/microb2010/mainboard/main.c
index
98d3749
..
14a2aad
100755
(executable)
--- a/
projects/microb2010/mainboard/main.c
+++ b/
projects/microb2010/mainboard/main.c
@@
-67,6
+67,7
@@
#include "actuator.h"
#include "cs.h"
#include "strat_base.h"
#include "actuator.h"
#include "cs.h"
#include "strat_base.h"
+#include "strat_db.h"
#include "i2c_protocol.h"
/* 0 means "programmed"
#include "i2c_protocol.h"
/* 0 means "programmed"
@@
-83,8
+84,8
@@
struct genboard gen;
struct mainboard mainboard;
struct genboard gen;
struct mainboard mainboard;
-struct cobboard cobboard;
-struct ballboard ballboard;
+
volatile
struct cobboard cobboard;
+
volatile
struct ballboard ballboard;
#ifndef HOST_VERSION
/***********************/
#ifndef HOST_VERSION
/***********************/
@@
-289,7
+290,7
@@
int main(void)
/* strat */
gen.logs[0] = E_USER_STRAT;
gen.log_level = 5;
/* strat */
gen.logs[0] = E_USER_STRAT;
gen.log_level = 5;
- strat_
reset_infos
();
+ strat_
db_init
();
/* strat-related event */
scheduler_add_periodical_event_priority(strat_event, NULL,
/* strat-related event */
scheduler_add_periodical_event_priority(strat_event, NULL,