Defines | Functions

lift.c File Reference

#include <lpc21xx.h>
#include <deb_led.h>
#include <system_def.h>
#include <can_ids.h>
#include <periph/can.h>
#include <string.h>
#include "servo.h"
#include "engine.h"
#include "lift.h"
#include "uar.h"
#include "def.h"
#include "irc.h"
#include "vhn.h"
#include <can_msg_def.h>
Include dependency graph for lift.c:

Defines

#define ENG_STOP   0
#define ENG_LIFT_HOME_SLOW_SPEED   15
#define ENG_LIFT_HOME_SPEED   40
#define ENG_LIFT_FULL_SPEED   100
#define ENG_PUSHER_HOME_SPEED   70
#define ENG_PUSHER_FULL_SPEED   100
#define ENG_PUSHER_HOME_SLOW_SPEED   40
#define TIME_WAIT   300
#define TIME_HOMING_WAIT   7000
#define PRINT_STR_VAL(fsm, str, val)   print_str_val(fsm, str, val)
#define PRINT_STR(fsm, str)   print_str(fsm, str)

Functions

void print_str (uint8_t type, uint8_t text[])
void print_str_val (uint8_t type, uint8_t text[], uint32_t val)
void move_pusher (unsigned char direct, unsigned char velocity)
void move_lift (uint8_t direct, uint8_t velocity)
void fsm_irc (struct fsm *fsm)
void fsm_init (struct fsm *fsm, events my_event)
void fsm_homing_fw (struct fsm *fsm, events my_event)
void fsm_homing_bw (struct fsm *fsm, events my_event)
void fsm_homing_fw_up (struct fsm *fsm, events my_event)
void fsm_homing_bw_zero (struct fsm *fsm, events my_event)
void fsm_wait_for_pusher_init (struct fsm *fsm, events my_event)
void fsm_homing_fw_5 (struct fsm *fsm, events my_event)
void fsm_stop (struct fsm *fsm, events my_event)
void fsm_move (struct fsm *fsm, events my_event)
void fsm_wait (struct fsm *fsm, events my_event)

Define Documentation

#define ENG_LIFT_FULL_SPEED   100
#define ENG_LIFT_HOME_SLOW_SPEED   15
#define ENG_LIFT_HOME_SPEED   40
#define ENG_PUSHER_FULL_SPEED   100
#define ENG_PUSHER_HOME_SLOW_SPEED   40
#define ENG_PUSHER_HOME_SPEED   70
#define ENG_STOP   0
#define PRINT_STR (   fsm,
  str 
)    print_str(fsm, str)
#define PRINT_STR_VAL (   fsm,
  str,
  val 
)    print_str_val(fsm, str, val)
#define TIME_HOMING_WAIT   7000
#define TIME_WAIT   300

Function Documentation

void fsm_homing_bw ( struct fsm fsm,
events  my_event 
)
void fsm_homing_bw_zero ( struct fsm fsm,
events  my_event 
)
void fsm_homing_fw ( struct fsm fsm,
events  my_event 
)
void fsm_homing_fw_5 ( struct fsm fsm,
events  my_event 
)
void fsm_homing_fw_up ( struct fsm fsm,
events  my_event 
)
void fsm_init ( struct fsm fsm,
events  my_event 
)

Here is the caller graph for this function:

void fsm_irc ( struct fsm fsm  ) 

Here is the caller graph for this function:

void fsm_move ( struct fsm fsm,
events  my_event 
)

Here is the call graph for this function:

void fsm_stop ( struct fsm fsm,
events  my_event 
)

Here is the call graph for this function:

void fsm_wait ( struct fsm fsm,
events  my_event 
)
void fsm_wait_for_pusher_init ( struct fsm fsm,
events  my_event 
)
void move_lift ( uint8_t  direct,
uint8_t  velocity 
)

Here is the call graph for this function:

void move_pusher ( unsigned char  direct,
unsigned char  velocity 
)

Here is the call graph for this function:

void print_str ( uint8_t  type,
uint8_t  text[] 
)

Here is the call graph for this function:

void print_str_val ( uint8_t  type,
uint8_t  text[],
uint32_t  val 
)

Here is the call graph for this function: