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.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'digital/io-hub/src/apbirthday/top.cc') diff --git a/digital/io-hub/src/apbirthday/top.cc b/digital/io-hub/src/apbirthday/top.cc index 0f3f60f5..f5051b0e 100644 --- a/digital/io-hub/src/apbirthday/top.cc +++ b/digital/io-hub/src/apbirthday/top.cc @@ -68,9 +68,7 @@ top_cake_angle_robot () return top_cake_angle (pos.v); } -/// Compute the candle to blow for a given angle, when going in the given -/// direction. -static int +int top_candle_for_angle (uint16_t a, Candles::Floor floor, int dir_sign) { /// Information for each floor. -- cgit v1.2.3