summaryrefslogtreecommitdiffhomepage
path: root/digital/beacon/src/laser.c
diff options
context:
space:
mode:
authorFlorent Duchon2013-04-23 16:46:29 +0200
committerFlorent Duchon2013-04-23 17:16:19 +0200
commit49bced0b449688ef5532d67615deefeb01d06f72 (patch)
tree6f2915b277662cf309ce318367227dc6ee332c08 /digital/beacon/src/laser.c
parent35c885898abb866256bfcc5e62f13913f89e4e25 (diff)
digital/beacon: use generic send command
Diffstat (limited to 'digital/beacon/src/laser.c')
-rw-r--r--digital/beacon/src/laser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/digital/beacon/src/laser.c b/digital/beacon/src/laser.c
index 45b4fe07..36df3219 100644
--- a/digital/beacon/src/laser.c
+++ b/digital/beacon/src/laser.c
@@ -28,9 +28,9 @@
#include "print.h"
#include "laser.h"
#include "servo.h"
-#include "network.h"
#include "codewheel.h"
#include "calibration.h"
+#include "network_send_commands.h"
laser_s laser;
@@ -158,7 +158,7 @@ ISR(TIMER3_COMPB_vect)
#ifdef LOL_NUMBER_2
angle_to_send = (CODEWHEEL_CPR/4 - laser_get_angle_raw()) + (laser.angle_id << 9);
#endif
- network_send_data(NETWORK_ANGLE_RAW,angle_to_send);
+ network_send_angle(0,angle_to_send);
laser.angle_id++;
}
}