PX4 Firmware
PX4 Autopilot Software http://px4.io
TemperatureCalibration Class Reference
Collaboration diagram for TemperatureCalibration:

Public Member Functions

 TemperatureCalibration (bool accel, bool baro, bool gyro)
 Constructor. More...
 
 ~TemperatureCalibration ()=default
 Destructor. More...
 
int start ()
 Start task. More...
 
void task_main ()
 
void exit_task ()
 

Static Public Member Functions

static int do_temperature_calibration (int argc, char *argv[])
 

Private Member Functions

void publish_led_control (led_control_s &led_control)
 

Private Attributes

uORB::PublicationQueued< led_control_s_led_control_pub {ORB_ID(led_control)}
 
bool _force_task_exit = false
 
int _control_task = -1
 
bool _accel
 enable accel calibration? More...
 
bool _baro
 enable baro calibration? More...
 
bool _gyro
 enable gyro calibration? More...
 

Detailed Description

Definition at line 67 of file task.cpp.

Constructor & Destructor Documentation

◆ TemperatureCalibration()

TemperatureCalibration::TemperatureCalibration ( bool  accel,
bool  baro,
bool  gyro 
)

Constructor.

Definition at line 106 of file task.cpp.

Referenced by run_temperature_calibration().

Here is the caller graph for this function:

◆ ~TemperatureCalibration()

TemperatureCalibration::~TemperatureCalibration ( )
default

Destructor.

Member Function Documentation

◆ do_temperature_calibration()

int TemperatureCalibration::do_temperature_calibration ( int  argc,
char *  argv[] 
)
static

Definition at line 324 of file task.cpp.

References temperature_calibration::instance, and task_main().

Referenced by start().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exit_task()

void TemperatureCalibration::exit_task ( )
inline

Definition at line 91 of file task.cpp.

References led_control, and publish_led_control().

Here is the call graph for this function:

◆ publish_led_control()

void TemperatureCalibration::publish_led_control ( led_control_s led_control)
private

Definition at line 350 of file task.cpp.

References _led_control_pub, hrt_absolute_time(), uORB::PublicationQueued< T >::publish(), and led_control_s::timestamp.

Referenced by task_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ start()

int TemperatureCalibration::start ( )

Start task.

Returns
OK on success.

Definition at line 330 of file task.cpp.

References _control_task, do_temperature_calibration(), and temperature_calibration::instance.

Referenced by run_temperature_calibration().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ task_main()

void TemperatureCalibration::task_main ( )

Member Data Documentation

◆ _accel

bool TemperatureCalibration::_accel
private

enable accel calibration?

Definition at line 101 of file task.cpp.

Referenced by task_main().

◆ _baro

bool TemperatureCalibration::_baro
private

enable baro calibration?

Definition at line 102 of file task.cpp.

Referenced by task_main().

◆ _control_task

int TemperatureCalibration::_control_task = -1
private

Definition at line 99 of file task.cpp.

Referenced by start().

◆ _force_task_exit

bool TemperatureCalibration::_force_task_exit = false
private

Definition at line 98 of file task.cpp.

Referenced by task_main().

◆ _gyro

bool TemperatureCalibration::_gyro
private

enable gyro calibration?

Definition at line 103 of file task.cpp.

Referenced by task_main().

◆ _led_control_pub

uORB::PublicationQueued<led_control_s> TemperatureCalibration::_led_control_pub {ORB_ID(led_control)}
private

Definition at line 96 of file task.cpp.

Referenced by publish_led_control().


The documentation for this class was generated from the following file: