This program is for an autonomous robot for the competition at the Hochschule Luzern. http://cruisingcrepe.wordpress.com/ We are one of the 32 teams. http://cruisingcrepe.wordpress.com/ The postition control is based on this Documentation: Control of Wheeled Mobile Robots: An Experimental Overview from Alessandro De Luca, Giuseppe Oriolo, Marilena Vendittelli. For more information see here: http://www.dis.uniroma1.it/~labrob/pub/papers/Ramsete01.pdf
Fork of autonomous Robot Android by
Diff: StateDefines/State.h
- Revision:
- 1:6cd533a712c6
- Parent:
- 0:31f7be68e52d
- Child:
- 2:d8e1613dc38b
diff -r 31f7be68e52d -r 6cd533a712c6 StateDefines/State.h --- a/StateDefines/State.h Thu Feb 07 17:43:19 2013 +0000 +++ b/StateDefines/State.h Sat Mar 02 09:39:34 2013 +0000 @@ -15,7 +15,7 @@ * * @section LICENSE * - * Copyright (c) 2013 HSLU Pren Team #1 Cruising Crêpe + * Copyright © 2013 HSLU Pren Team #1 Cruising Crêpe * All rights reserved. * * @section DESCRIPTION @@ -33,7 +33,7 @@ RobotControl* robotControl; MaxonESCON* motorControllerLeft; MaxonESCON* motorControllerRight; - HMC6352* compass; + // HMC6352* compass; AnalogIn* battery; Timer timer; float period; @@ -46,16 +46,16 @@ /** - * Creates a robot control object and initializes all private - * state variables. - * @param RobotControl Objekt to read the state. + * Creates a robot control object and initializes all private state variables. + * @param s struct to read and write the state. + * @param robotControl Object to read the state. * @param motorControllerLeft a reference to the servo drive for the left motor. * @param motorControllerRight a reference to the servo drive for the right motor. * @param compass Modul HMC5883L - * @param Analog Input Battery Voltage input + * @param battery Analog Input Battery Voltage input * @param period the sampling period of the run loop of this controller, given in [s]. */ - State(state_t* s, RobotControl* robotControl, MaxonESCON* motorControllerLeft, MaxonESCON* motorControllerRight, HMC6352* compass, AnalogIn* battery, float period); + State(state_t* s, RobotControl* robotControl, MaxonESCON* motorControllerLeft, MaxonESCON* motorControllerRight, /*HMC6352* compass,*/ AnalogIn* battery, float period); /** * Destructor of the Object to destroy the Object. @@ -91,6 +91,10 @@ */ float readBattery(); + /** + * Starts the timer from zero + * The timer is for the logging Time. + */ void startTimerFromZero(); /**