Project

General

Profile

Revision 1426

Added by Rich Hong over 11 years ago

Fixes #622.

encoders.h is not included in dragonfly_lib.h and encoders_init() is called within dragonfly_init().

View differences:

test_encoders.c
1 1
/**
2 2
 * @file encoders unit test
3 3
 */
4
#include "serial.h"
5
#include "time.h"
6
#include "dio.h"
7
#include "encoders.h"
4
#include <dragonfly_lib.h>
8 5

  
9 6
/**
10 7
 * @brief Test encoders by outputting values to usb
......
18 15

  
19 16
int testencoders(void)
20 17
{
21
	usb_init();
22
	encoders_init();
23 18
	int encoder_left,encoder_right;
24 19
	int x_left, x_right;
25 20
	int v_left, v_right;

Also available in: Unified diff