Project

General

Profile

Revision 1254

Changed rbom->ibom

View differences:

test_bom.c
2 2
#include "global.h"
3 3

  
4 4
#include "hardware_turntable.h"
5
#include "hardware_rbom.h"
5
#include "hardware_ibom.h"
6 6
#include "comm_robot.h"
7 7

  
8 8
static uint16_t bom_emitter_position (uint8_t num)
......
52 52
			turntable_rotate_to_position (bom_emitter_position (n));
53 53
			robot_set_bom (1<<n);
54 54
		
55
			rbom_update ();
55
			ibom_update ();
56 56
#define TOP 0
57 57
#define LEFT 1
58 58
#define RIGHT 2
59
			rbom_read (&values[TOP], &values[LEFT], &values[RIGHT]);
59
			ibom_read (&values[TOP], &values[LEFT], &values[RIGHT]);
60 60

  
61 61
			robot_set_bom (0);
62 62

  
......
80 80

  
81 81
			uint16_t on_value, off_value;
82 82

  
83
			rbom_set (true);
83
			ibom_set (true);
84 84
			robot_read_bom (n, &on_value);
85
			rbom_set (false);
85
			ibom_set (false);
86 86
			robot_read_bom (n, &off_value);
87 87

  
88 88
			// Send data

Also available in: Unified diff