Paparazzi UAS  v5.15_devel-88-gb3ad7fe
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
rover_guidance_holonomic.c File Reference

Basic guidance for rover. More...

#include "firmwares/rover/guidance/rover_guidance_holonomic.h"
#include "generated/airframe.h"
#include "generated/autopilot_core_guidance.h"
#include "state.h"
#include "subsystems/datalink/telemetry.h"
+ Include dependency graph for rover_guidance_holonomic.c:

Go to the source code of this file.

Macros

#define AUTOPILOT_CORE_GUIDANCE_C
 
#define MAX_POS_ERR   10.f
 
#define MAX_SPEED_ERR   10.f
 
#define MAX_INTEGRAL_CMD   (MAX_PPRZ / 10.f)
 
#define PROXIMITY_DIST   0.2f
 

Functions

void rover_holo_guidance_init (void)
 
void rover_holo_guidance_periodic (void)
 
static float compute_pid (struct RoverHoloGuidancePID *pid)
 
void rover_holo_guidance_run (float *heading_sp)
 
void rover_holo_guidance_enter (void)
 
void rover_guidance_holonomic_set_speed_igain (float igain)
 
void rover_guidance_holonomic_set_turn_igain (float igain)
 

Variables

struct RoverHoloGuidance rover_holo_guidance
 

Detailed Description

Basic guidance for rover.

Implement standard PID control loop to track a navigation target. Guidance "modes" are using the autopilot generation with the "guidance" state machine.

Definition in file rover_guidance_holonomic.c.

Macro Definition Documentation

#define AUTOPILOT_CORE_GUIDANCE_C

Definition at line 29 of file rover_guidance_holonomic.c.

#define MAX_INTEGRAL_CMD   (MAX_PPRZ / 10.f)

Definition at line 81 of file rover_guidance_holonomic.c.

#define MAX_POS_ERR   10.f

Definition at line 79 of file rover_guidance_holonomic.c.

Referenced by rover_holo_guidance_run().

#define MAX_SPEED_ERR   10.f

Definition at line 80 of file rover_guidance_holonomic.c.

Referenced by rover_holo_guidance_run().

#define PROXIMITY_DIST   0.2f

Definition at line 82 of file rover_guidance_holonomic.c.

Referenced by rover_holo_guidance_run().

Function Documentation

static float compute_pid ( struct RoverHoloGuidancePID pid)
static
void rover_guidance_holonomic_set_speed_igain ( float  igain)
void rover_guidance_holonomic_set_turn_igain ( float  igain)
void rover_holo_guidance_enter ( void  )
void rover_holo_guidance_periodic ( void  )

Definition at line 68 of file rover_guidance_holonomic.c.

Variable Documentation