raspberry pi to stm32f303k8 for serial communication

Dependencies:   mbed Servo

serial/serial.h

Committer:
mukuyo
Date:
2021-05-02
Revision:
0:7bc24e8d1591

File content as of revision 0:7bc24e8d1591:

#pragma once
#include "mbed.h"

class Rasp {
public:
    Rasp(PinName TX,PinName RX);
    void dev_rx();
    void put(int val);
    void get(float &a, int num);
    
    int rx_val,ID,u,vel_norm,vel_theta,flag,DKpow;
    float omega;
private:
    int BUFFER_SIZE,val_1,val_2;
    int buffer[100];
    float Motor_pow[4];
    float motor_limit;
    RawSerial device;
};