Project

General

Profile

Revision 366

The lib things were just because of a few recompilations.
Data requests project works for IR, the problems with IR were almost definitely the problems with the others (encoder / BOM data).
I'll fix the code for those next time, and then begin work on encoders.
Hopefully I'll be able to abstract the robots out completely and just work with raw data in a month or two.

View differences:

analog.c
38 38
#include "analog.h"
39 39
#include "serial.h"
40 40
// Internal Function Prototypes
41
//TODO: if this function is only used in this file, make it static
42 41
void set_adc_mux(int which);
43 42

  
44 43
/**
......
49 48
 * @{
50 49
 **/
51 50

  
52
//TODO: if these variables are only used in this file, make them static
53 51
int adc_loop_running = 0;
54 52
int adc_current_port = 0;
55 53
adc_t an_val[11];
......
60 58
 *
61 59
 * @see analog8, analog10
62 60
 **/
63
void analog_init(int start_conversion) {
61
void analog_init(int start_conversion)
62
{
64 63
	for (int i = 0; i < 11; i++) {
65 64
		an_val[i].adc10 = 0;
66 65
		an_val[i].adc8 = 0;

Also available in: Unified diff