Skip to content

This project is a message controller for sending arbitrary messages by a web interface.

License

Notifications You must be signed in to change notification settings

chalmersfsd/cfsd-message-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cfsd-Message-controller

This project is a message controller for sending arbitrary messages by a web interface.

There are two ways of sending messages:

  1. send once
  2. send under a certain frequency

ADD a feature: a slider bar for the Ground Steering Request(1085) 20~-20 step 0.1

msgSets.json saves the settings of the messages types (can be reload). screenshot from message controller Build:

docker build -t chalmersfsd/cfsd-message-controller:v0.0.3 -f Dockerfile.amd64 .

Run:

docker run --rm -ti --net=host chalmersfsd/cfsd-message-controller:v0.0.3 --cid=130

open in web browser: localhost:8082

The project is following project: Cluon-javascript:

cluon-javascript

This project provides a minimum viable product (MVP) demonstrating how to communicate between JavaScript and OD4Sessions using libcluon and hence, connecting JavaScript and C++ to exchange data bi-directionally.

License: MIT x86_64/js x86_64/cpp armhf/js armhf/cpp

Table of Contents

Features

  • Written in highly portable and high quality C++14
  • Sending data in Protobuf from C++ to your JavaScript application
  • Sending data in Protobuf from JavaScript to your C++ application
  • Description of the C++ part of this ping-pong application
  • Description of the JavaScript part of this ping-pong application

Dependencies

No dependencies! You just need a C++14-compliant compiler to compile this project as it ships its dependencies as part of the source distribution:

Usage

This microservice is provided via Docker's public registry for:

  • x86_64/js
  • x86_64/cpp
  • armhf/js
  • armhf/cpp
  1. Running the webserver to serve the JavaScript application serving data from OD4Session 111:
docker run --rm -ti --net=host chrberger/cluon-javascript-js-amd64:latest --cid=111
  1. Running the C++ demo program to send data in time-triggered mode:
docker run --rm -ti --net=host chrberger/cluon-javascript-cpp-amd64:latest ping-pong --cid=111

Now, simply point your web-browser to http://localhost:8082 and open the JavaScript console to see the output.

Building

  • Description of the C++ part of this ping-pong application
  • Description of the JavaScript part of this ping-pong application

License

  • This project is released under the terms of the MIT License.

About

This project is a message controller for sending arbitrary messages by a web interface.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages