Wednesday, August 24, 2016

Cleanflight Confgurator

Finally got CleanFlight Configurator communicating to PI Zero with CleanFlight.  Basic setup:

  1. Chrome With CleanFlight Configurator
    1. socat to create a pty to TCP socket
    2. socat -d -d pty,raw,echo=0 tcp:192.168.0.15:56000
      1. socat will display which port it created, i.e /dev/pty/20 then take this device and use it for the serial port "URL" in cleanflight.
  2. PI Zero
    1. CleanFlight Port
      1. TCP server to accept MSP messages
      2. Pipe the MSP messages into Cleanflight

Gyro information was displayed in the Configurator, need to figure out why compass and accelerometer was not working. 

Also, need to connect I/O processor to Cleanflight to forward RX info and GPS status.

Friday, August 19, 2016

I/O processor status

Completed PWM input decode and sending results via USB.  For the first pass I'm using a HK-T6A transmitter/receiver.

Overall Status:

  • I/O processor:  GD32F103 (red pill board) 
    • Interprocess commuinication via USB complete
      • Receiver PWM decode
      • GPS decode
    • Next is to do PWM for motor control
      • Standard PWM out
      • Support one shot125
      • Need validate USB jitter and performance
        • Out should be less then a 1ms
        • In should be no more then 2ms
  • Cleanflight
    • Update IPC using USB
    • Add socat for CleanFlight Configuration Web Tool
      •  open a TCP/IP port in CleanFlight 
      • use socat on Linux to forward MSP packets.