Demonstration for the PID driver. More...
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <sys/cdefs.h>
#include <sys/types.h>
#include "hardware/gpio.h"
#include "pico/stdio.h"
#include "motor/motor_control.h"
#include "pid/pid.h"
Functions | |
void | encoder_tick_isr (__unused uint gpio, __unused uint32_t events) |
Interrupt callback function on rising edge. More... | |
int | main (void) |
Variables | |
pid_turn_params_t | g_turn_params |
Global turn parameters struct. | |
Demonstration for the PID driver.
void encoder_tick_isr | ( | __unused uint | gpio, |
__unused uint32_t | events | ||
) |
Interrupt callback function on rising edge.
[in] | gpio | GPIO pin number. |
[in] | events | Event mask. |
References pid_turn_params::encoder_step_count, encoder_tick_isr(), g_turn_params, pid_navigate_turn(), and pid_turn_params::turn_direction.