/** \file
 *
 *  Contains the CalibrateSparton class declaration.
 *
 *  CalibrateSparton.h should only be included by CalibrateSparton.cpp
 *  Other classes should include CalibrateSpartonIF.h
 *
 *  Copyright (c) 2007,2008,2009 MBARI
 *  MBARI Proprietary Information.  All Rights Reserved
 */

#ifndef CALIBRATESPARTON_H_
#define CALIBRATESPARTON_H_

#include "component/Behavior.h"
#include "data/Location.h"

class UniversalDataReader;


class CalibrateSparton : public Behavior
{
public:

    CalibrateSparton( const Str& prefix, const Module* module );

    virtual ~CalibrateSparton();

    /// Starts compass in MANUAL cal mode
    virtual void initialize( void );

    /// Run just waits while the mission circles
    virtual void run();

    /// Kicks compass into AUTO cal mode
    virtual void preempted();

    /// Turns cal mode OFF, reports result.
    virtual void uninitialize( void );

    /// Mission Component factory interface
    static Behavior* CreateBehavior( const Str& prefix, const Module* module );

protected:

    /// Have we started the calibration process?
    bool initialized_;

private:
    // Note that the copy constructor below is private and not given a body.
    // Any attempt to call it will return a compiler error.
    CalibrateSparton( const CalibrateSparton& old ); // disallow copy constructor

};

#endif /* CALIBRATESPARTON_H_ */
