From c6fb6460e3b71380049326688a1d5ade10dc964e Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Wed, 10 Apr 2013 00:42:00 +0200 Subject: digital/io-hub/src/apbirthday: make a better decision on follow direction --- digital/io-hub/src/apbirthday/top.hh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'digital/io-hub/src/apbirthday/top.hh') diff --git a/digital/io-hub/src/apbirthday/top.hh b/digital/io-hub/src/apbirthday/top.hh index 09a1b365..229c909b 100644 --- a/digital/io-hub/src/apbirthday/top.hh +++ b/digital/io-hub/src/apbirthday/top.hh @@ -23,6 +23,13 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // // }}} +#include "defs.hh" +#include "candles.hh" + +/// Compute the candle to blow for a given angle, when going in the given +/// direction. +int +top_candle_for_angle (uint16_t a, Candles::Floor floor, int dir_sign); /// Test whether there is an obstacle blocking in the given direction. bool -- cgit v1.2.3