LEGO NXT C Programming
#include <string.h>
#include "kernel.h"
#include "kernel_id.h"
#include "ecrobot_interface.h"
#include "trik_studio_utils.h"
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <math.h>
U32 __interpretation_started_timestamp__ = 0;
static const float pi = 3.14159265;
void ecrobot_device_initialize(void)
{
srand(systick_get_ms());
}
void ecrobot_device_terminate(void)
{
}
/* nxtOSEK hook to be invoked from an ISR in category 2 */
void user_1ms_isr_type2(void)
{
}
/* Main task */
TASK(TASK_MAIN)
{
__interpretation_started_timestamp__ = systick_get_ms();
TerminateTask();
}PreviousSensory Variables for the LEGO NXT ControllerNextLaunching and uploading programs to the LEGO NXT
Last updated
Was this helpful?