Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
pump_control.h File Reference
#include "std.h"
Include dependency graph for pump_control.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void pump_control_init (void)
void pump_activate (void)
void pump_purge (void)
void pump_stop (void)
bool pump_done (float duration, float timeout)
bool pump_pumping (void)
void pump_control_report (void)
void pump_control_handler (float value)

Variables

float pump_ctrl_state

Detailed Description

Author
Gautier Hattenberger gauti.nosp@m.er.h.nosp@m.atten.nosp@m.berg.nosp@m.er@en.nosp@m.ac.f.nosp@m.r Pump control for IMAV2026

Definition in file pump_control.h.

Function Documentation

◆ pump_activate()

void pump_activate ( void )
extern

Definition at line 79 of file pump_control.c.

References gpio_clear(), gpio_set(), pump_control, PUMP_CONTROL_GPIO_ACTIVATE, PUMP_CONTROL_GPIO_PURGE, PUMP_CTRL_PUMP, and pump_ctrl_state.

Referenced by pump_control_handler().

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

◆ pump_control_handler()

void pump_control_handler ( float value)

Definition at line 121 of file pump_control.c.

References pump_activate(), PUMP_CTRL_OFF, PUMP_CTRL_PUMP, PUMP_CTRL_VALVE, pump_purge(), pump_stop(), and val.

Here is the call graph for this function:

◆ pump_control_init()

void pump_control_init ( void )
extern

◆ pump_control_report()

void pump_control_report ( void )

Definition at line 140 of file pump_control.c.

References adc_buf_get(), DefaultChannel, DefaultDevice, pump_control, and PUMP_CONTROL_ADC_EMPTY.

Here is the call graph for this function:

◆ pump_done()

bool pump_done ( float duration,
float timeout )
extern

Definition at line 108 of file pump_control.c.

References nav_dt, pump_control, pump_pumping(), and timeout.

Here is the call graph for this function:

◆ pump_pumping()

bool pump_pumping ( void )
extern

Definition at line 104 of file pump_control.c.

References adc_buf_get(), pump_control, and PUMP_CONTROL_ADC_EMPTY.

Referenced by pump_done().

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

◆ pump_purge()

void pump_purge ( void )
extern

Definition at line 88 of file pump_control.c.

References gpio_clear(), gpio_set(), pump_control, PUMP_CONTROL_GPIO_ACTIVATE, PUMP_CONTROL_GPIO_PURGE, pump_ctrl_state, and PUMP_CTRL_VALVE.

Referenced by pump_control_handler().

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

◆ pump_stop()

void pump_stop ( void )
extern

Definition at line 97 of file pump_control.c.

References gpio_clear(), PUMP_CONTROL_GPIO_ACTIVATE, PUMP_CONTROL_GPIO_PURGE, PUMP_CTRL_OFF, and pump_ctrl_state.

Referenced by pump_control_handler().

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

Variable Documentation

◆ pump_ctrl_state

float pump_ctrl_state
extern

Definition at line 58 of file pump_control.c.

Referenced by pump_activate(), pump_purge(), and pump_stop().