#include "comm.h"
#include "commands.h"
#include "control.h"
#include "gsp.h"
#include "gsp_task.h"
#include "gsp_internal.h"
#include "pads.h"
#include "prop.h"
#include "spheres_constants.h"
#include "spheres_physical_parameters.h"
#include "spheres_types.h"
#include "std_includes.h"
#include "system.h"
#include "util_memory.h"
#include "gsutil_checkout.h"
#include "ZRGameInternal.h"
#include "ZRGame.h"
Go to the source code of this file.
Defines |
#define | CHECKOUT_TESTNUM_OFFSET (000) |
#define | ZERROBOTICS_TESTNUM_OFFSET (100) |
#define | localPacket packet |
Typedefs |
typedef enum _test_class | test_class |
Enumerations |
enum | _test_class { invalid_test,
checkout_tests,
zerorobotics_tests
} |
Functions |
test_class | get_test_class (unsigned int test_num) |
void | gspIdentitySet () |
void | gspInitProgram () |
void | gspInitTest (unsigned int test_number) |
void | gspInitTask () |
void | gspPadsInertial (IMU_sample *accel, IMU_sample *gyro, unsigned int num_samples) |
void | gspPadsGlobal (unsigned int beacon, beacon_measurement_matrix measurements) |
void | gspTaskRun (unsigned int gsp_task_trigger, unsigned int extra_data) |
void | gspControl (unsigned int test_number, unsigned int test_time, unsigned int maneuver_number, unsigned int maneuver_time) |
void | gspProcessRXData (default_rfm_packet packet) |
Variables |
const unsigned int | refTestNumber [] = {101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 199} |
static int | testclass |
static unsigned int | testnum = 0 |
static ZeroRoboticsGameImpl & | gameImplRef = ZeroRoboticsGameImpl::instance() |
Define Documentation
Typedef Documentation
Enumeration Type Documentation
- Enumerator:
invalid_test |
|
checkout_tests |
|
zerorobotics_tests |
|
Definition at line 47 of file gsp.cpp.
Function Documentation
void gspControl |
( |
unsigned int |
test_number, |
|
|
unsigned int |
test_time, |
|
|
unsigned int |
maneuver_number, |
|
|
unsigned int |
maneuver_time |
|
) |
| |
Definition at line 65 of file gsp.cpp.
{
sysIdentitySet(SPHERE_ID);
}
Definition at line 72 of file gsp.cpp.
{
sysProgramIDSet(9998);
commTdmaStandardInit(COMM_CHANNEL_STL, sysIdentityGet(), NUM_SPHERES);
commTdmaStandardInit(COMM_CHANNEL_STS, sysIdentityGet(), NUM_SPHERES);
commTdmaEnable(COMM_CHANNEL_STL);
commTdmaEnable(COMM_CHANNEL_STS);
padsInertialAllocateBuffers(50);
padsInitializeFPGA(NUM_BEACONS);
}
void gspPadsGlobal |
( |
unsigned int |
beacon, |
|
|
beacon_measurement_matrix |
measurements |
|
) |
| |
void gspPadsInertial |
( |
IMU_sample * |
accel, |
|
|
IMU_sample * |
gyro, |
|
|
unsigned int |
num_samples |
|
) |
| |
Definition at line 157 of file gsp.cpp.
{
#ifdef ZRSIMULATION
default_rfm_packet localPacket;
unchecked_memcpy(localPacket,packet,37);
#else
#define localPacket packet
#endif
switch(testclass)
{
case zerorobotics_tests:
gameImplRef.gspProcessRXData(packet);
break;
}
#ifndef ZRSIMULATION
#undef localPacket
#endif
}
void gspTaskRun |
( |
unsigned int |
gsp_task_trigger, |
|
|
unsigned int |
extra_data |
|
) |
| |
Variable Documentation
const unsigned int refTestNumber[] = {101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 199} |