Subversion Repositories FlightCtrl

Rev

Rev 2159 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2159 Rev 2189
Line 1... Line 1...
1
#ifndef _UART0_H
1
#ifndef _UART0_H
2
#define _UART0_H
2
#define _UART0_H
Line 3... Line 3...
3
 
3
 
4
#define TXD_BUFFER_LEN  150
4
#define TXD_BUFFER_LEN  140
Line 5... Line 5...
5
#define RXD_BUFFER_LEN  150
5
#define RXD_BUFFER_LEN  140
-
 
6
 
6
 
7
#include <inttypes.h>
Line 7... Line 8...
7
#include <inttypes.h>
8
#include <stdio.h>
8
#include "ubx.h"
9
#include "ubx.h"
Line 9... Line 10...
9
 
10
 
10
//Baud rate of the USART
11
//Baud rate of the USART
11
#define USART0_BAUD 57600
12
#define USART0_BAUD 57600
12
 
13
 
-
 
14
extern void usart0_init(void);
-
 
15
extern void usart0_transmitTxData(void);
Line 13... Line 16...
13
extern void usart0_init(void);
16
extern void usart0_processRxData(void);
Line 14... Line 17...
14
extern void usart0_transmitTxData(void);
17
//extern int16_t uart_putchar(int8_t c);
15
extern void usart0_processRxData(void);
18
 
Line 16... Line 19...
16
extern int16_t uart_putchar(int8_t c);
19
extern int uart_putchar(char c, FILE* fims);
-
 
20
 
-
 
21
// extern uint8_t remotePollDisplayLine;
-
 
22
 
-
 
23
extern uint8_t outputTestActive;
17
 
24
extern uint8_t outputTest[16];
18
// extern uint8_t remotePollDisplayLine;
25
 
19
 
26
typedef struct {
-
 
27
  float pitchRate;  // in radians
-
 
28
  float rollRate;   // in radians
-
 
29
  float yawRate;    // in radians
20
extern uint8_t motorTestActive;
30
 
21
extern uint8_t motorTest[16];
31
  float pitch; // in radians
Line 22... Line 32...
22
 
32
  float roll;  // in radians
23
typedef struct {
33
  float heading;    // in radians
24
  int16_t anglePitch; // in 0.1 deg
34
 
25
  int16_t angleRoll;  // in 0.1 deg
35
  float xAcc;
26
  int16_t heading;    // in 0.1 deg
36
  float yAcc;
27
  uint8_t reserved[8];
37
  float zAcc;