All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
vexgyro.c File Reference

A quick and dirty gyro implementation based on the ROBOTC example. More...

#include <stdlib.h>
#include <math.h>
#include "ch.h"
#include "hal.h"
#include "vex.h"
#include "vexgyro.h"

Functions

int32_t vexGyroGet ()
 Get the latest gyro value. More...
 
void vexGyroInit ()
 Init the gyro task. More...
 

Variables

const int GyroJitterRange = 4
 

Detailed Description

A quick and dirty gyro implementation based on the ROBOTC example.

Function Documentation

int32_t vexGyroGet ( void  )

Get the latest gyro value.

Returns
The gyro value in degrees * 10
void vexGyroInit ( void  )

Init the gyro task.

Variable Documentation

const int GyroJitterRange = 4