#include <tucbot/tucbot.h>
#include <tucbot_additionals/packedCom.h>
#include <tucbot_additionals/lausTracker.h>
void testLausTracker(void);
int main(void);
void testLausTracker(void) {
uint8_t menu_pos = 0;
uint8_t flag_redraw_menu = 0xFF;
uint8_t value_count = 0;
uint8_t temp;
while (1) {
if (flag_redraw_menu) {
flag_redraw_menu = 0x00;
if (menu_pos == 0) {
} else {
}
}
if (menu_pos == 0) {
menu_pos = 1;
} else {
menu_pos = 0;
}
flag_redraw_menu = 0xFF;
}
if (temp != value_count) {
value_count = temp;
}
if (menu_pos == 0) {
break;
break;
break;
break;
}
}
} else {
}
}
}
}
int main (void) {
testLausTracker();
return (0);
}
void leds_set(eLedMask bitmask, uint8_t bool)
Sets the selected leds on or off.
@ kLausTrackerGetSelfX
constant (1): x-coordinate of one self's robot (0...7)
Definition: lausTracker.h:161
@ kLausTrackerGetRivalY
constant (5): y-coordinate of opponent's robot (0...7)
Definition: lausTracker.h:170
@ kLausTrackerGetSelfY
constant (2): y-coordinate of one self's robot (0...7)
Definition: lausTracker.h:163
@ kLausTrackerOrientationEast
constant (2): heading east (positive x-direction)
Definition: lausTracker.h:33
@ kLedOn
constant (0xFF): turn leds on
Definition: leds.h:63
@ kLausTrackerSelectSelf
Definition: lausTracker.h:145
uint8_t lausTracker_get(eLausTrackerGet select)
Returns the last stored version of the selected value.
@ kLausTrackerOrientationNorth
constant (1): heading north (positive y-direction)
Definition: lausTracker.h:31
void lausTracker_request(eLausTrackerSelectMask bitmask, eRequestType request)
Requests new data from the Laus-Tracker.
@ kLausTrackerOrientationWest
constant (3): heading west (negative x-direction)
Definition: lausTracker.h:35
@ kLausTrackerOrientationSouth
constant (0): heading south (negative y-direction)
Definition: lausTracker.h:29
@ kRequestContinuous
constant (3): request continuous updates
Definition: update.h:37
@ kLausTrackerGetRivalX
constant (4): x-coordinate of opponent's robot (0...7)
Definition: lausTracker.h:168
@ kLedMiddle
bit mask (0x08): middle led
Definition: leds.h:44
@ kLedOff
constant (0x00): turn leds off
Definition: leds.h:61
void uint16tostr(void *out, uint16_t number, uint8_t digits)
Converts an unsigned integer to a string and passes it to an output function.
void packedCom_activate(void)
Turns the reception of data packets on.
void lcdclr(void)
Clears the display.
uint8_t packedCom_get(ePackedComGet select)
Returns the last stored selected value.
void lcdxy(uint8_t x, uint8_t y)
Moves the cursor to a postion on the display.
@ kLausTrackerSelectAll
bit mask (0x03): select all data blocks
Definition: lausTracker.h:151
@ kPackedComGetPacketCount
constants (2): number of correct received packets
Definition: packedCom.h:264
void lcdstr_p(const char *send_data)
Writes a string located in the flash to the display.
void lcdout(uint8_t data)
Writes one byte to the display.
@ kLausTrackerSelectRival
Definition: lausTracker.h:148
void init_tucbot(uint8_t enable_interrupts)
Initiates the TUC-Bot.
void mdelay(uint16_t mseconds)
Waits for the given time in milliseconds.
@ kLausTrackerGetSelfOrientation
Definition: lausTracker.h:165
eLausTrackerSelectMask lausTracker_changed(eLausTrackerSelectMask bitmask)
Indicates if new data changed the selected data blocks.