From 49c97fc3dedbeb92a8169a38ea782113e3e5b575 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Fri, 29 Mar 2013 23:31:19 +0100 Subject: digital/ai, digital/mimot: add simulated mimot for APBirthday Not very complicated, mimot is only used for the pump. --- digital/mimot/src/dirty/models.host.c | 18 ++++++++++++++++++ digital/mimot/tools/mimot/init.py | 3 +++ 2 files changed, 21 insertions(+) (limited to 'digital/mimot') diff --git a/digital/mimot/src/dirty/models.host.c b/digital/mimot/src/dirty/models.host.c index 40586673..521b2b3c 100644 --- a/digital/mimot/src/dirty/models.host.c +++ b/digital/mimot/src/dirty/models.host.c @@ -93,6 +93,23 @@ static const struct robot_t guybrush_robot = NULL, }; +/* APBirthday, APBTeam 2013. */ +static const struct robot_t apbirthday_robot = +{ + /** Auxiliary motors, NULL if not present. */ + { &motor_model_def_amax32ghp_x16, NULL }, + /** Motors voltage (V). */ + 24.0, + /** Number of steps for each auxiliary motor encoder. */ + { 250, 0 }, + /** Load for auxiliary motors (kg.m^2). */ + { 1.000 * 0.05 * 0.05, 0 }, + /** Sensor update function. */ + NULL, + /** Initialisation function. */ + NULL, +}; + /* Table of models. */ static const struct { @@ -102,6 +119,7 @@ static const struct { "marcel", &marcel_robot }, { "robospierre", &robospierre_robot }, { "guybrush", &guybrush_robot }, + { "apbirthday", &apbirthday_robot }, { 0, 0 } }; diff --git a/digital/mimot/tools/mimot/init.py b/digital/mimot/tools/mimot/init.py index 01511f21..d333ff5c 100644 --- a/digital/mimot/tools/mimot/init.py +++ b/digital/mimot/tools/mimot/init.py @@ -23,10 +23,13 @@ target_guybrush = dict ( a0_bd_error_limit = 22, a0_bd_speed_limit = 0x08, a0_bd_counter_limit = 50, e_sat = 0x3ff, d_sat = 0x1ff, ) +target_apbirthday = dict ( + ) target = { 'marcel': target_marcel, 'robospierre': target_robospierre, 'guybrush': target_guybrush, + 'apbirthday': target_apbirthday, } host = target -- cgit v1.2.3