summaryrefslogtreecommitdiff
path: root/digital/mimot/src/dirty/simu.host.c
diff options
context:
space:
mode:
Diffstat (limited to 'digital/mimot/src/dirty/simu.host.c')
-rw-r--r--digital/mimot/src/dirty/simu.host.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/digital/mimot/src/dirty/simu.host.c b/digital/mimot/src/dirty/simu.host.c
index af07d744..8afd73ca 100644
--- a/digital/mimot/src/dirty/simu.host.c
+++ b/digital/mimot/src/dirty/simu.host.c
@@ -152,6 +152,15 @@ simu_sensor_update_marcel (void)
{
}
+/** Update sensors for Robospierre. */
+void
+simu_sensor_update_robospierre (void)
+{
+ PINC = 0;
+ if (simu_aux_model[0].th < 120.0 * 5.0 / 6.0 * simu_aux_model[0].m.i_G)
+ PINC |= IO_BV (CONTACT_AUX0_ZERO_IO);
+}
+
/** Do a simulation step. */
static void
simu_step (void)