TR-mbed 1.0
Loading...
Searching...
No Matches
Classes | Functions
Jetson.h File Reference
#include <cstring>
#include <stdint.h>
#include "mbed.h"

Go to the source code of this file.

Classes

struct  Jetson_send_data
 
struct  Jetson_send_data_buf
 
struct  Jetson_send_ref
 
struct  Jetson_send_ref_buf
 
struct  Jetson_read_data
 
struct  Jetson_read_odom
 

Functions

void jetson_send_feedback (BufferedSerial &bcJetson, const Jetson_send_ref &ref_data, const Jetson_send_data &data, int msg_type=0)
 
ssize_t jetson_read_values (BufferedSerial &bcJetson, Jetson_read_data &read_data, Jetson_read_odom &odom_data)
 
ssize_t jetson_send_read_spi (SPI &spiJetson, const Jetson_send_data &input, Jetson_read_data &output)
 

Function Documentation

◆ jetson_read_values()

ssize_t jetson_read_values ( BufferedSerial &  bcJetson,
Jetson_read_data read_data,
Jetson_read_odom odom_data 
)

Read desired pitch and yaw position data from Jetson

Parameters
pitch_movebuffer to store desired pitch position
yaw_movebuffer to store desired yaw position

◆ jetson_send_feedback()

void jetson_send_feedback ( BufferedSerial &  bcJetson,
const Jetson_send_ref ref_data,
const Jetson_send_data data,
int  msg_type 
)

Read motor values and send to CV

◆ jetson_send_read_spi()

ssize_t jetson_send_read_spi ( SPI &  spiJetson,
const Jetson_send_data input,
Jetson_read_data output 
)