-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #478 from openxc/next
Release 8.2.0
- Loading branch information
Showing
38 changed files
with
416 additions
and
1,688 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Run Tests | ||
|
||
# Controls when the action will run. | ||
on: [pull_request] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-18.04 | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
# Runs a single command using the runners shell | ||
- name: Set Up Python 3.6 | ||
run: | | ||
TERM=xterm | ||
sudo apt-get update -qq | ||
sudo add-apt-repository ppa:deadsnakes/ppa -y | ||
sudo apt-get update -qq | ||
sudo apt-get install python3.6 -y | ||
sudo rm /usr/bin/python3 | ||
sudo ln -s /usr/bin/python3.6 /usr/bin/python3 | ||
wget https://bootstrap.pypa.io/get-pip.py | ||
sudo python3 get-pip.py | ||
sudo apt-get install -qq -y libsubunit-dev | ||
sudo apt-get install python-apt | ||
sudo apt-get install python3-apt | ||
# Runs a single command using the runners shell | ||
- name: Bootstrap | ||
run: | | ||
script/bootstrap.sh | ||
- name: Build Tests | ||
run: | | ||
cd src | ||
PLATFORM=TESTING make test | ||
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
openxc==2.1.0 | ||
openxc==2.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ Fabric3==1.14.post1 | |
ecdsa==0.13.3 | ||
prettyprint==0.1.5 | ||
pyparsing==2.2.0 | ||
openxc==2.0.0 | ||
openxc==2.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#include "get_vin_command.h" | ||
|
||
#include "config.h" | ||
#include "diagnostics.h" | ||
#include "interface/usb.h" | ||
#include "util/log.h" | ||
#include "config.h" | ||
#include "pb_decode.h" | ||
#include <payload/payload.h> | ||
#include "signals.h" | ||
#include <can/canutil.h> | ||
#include <bitfield/bitfield.h> | ||
#include <limits.h> | ||
#include <openxc.pb.h> | ||
|
||
using openxc::util::log::debug; | ||
using openxc::config::getConfiguration; | ||
using openxc::payload::PayloadFormat; | ||
using openxc::signals::getCanBuses; | ||
using openxc::signals::getCanBusCount; | ||
using openxc::signals::getSignals; | ||
using openxc::signals::getSignalCount; | ||
using openxc::signals::getCommands; | ||
using openxc::signals::getCommandCount; | ||
using openxc::can::lookupBus; | ||
using openxc::can::lookupSignal; | ||
|
||
namespace can = openxc::can; | ||
namespace payload = openxc::payload; | ||
namespace config = openxc::config; | ||
namespace diagnostics = openxc::diagnostics; | ||
namespace usb = openxc::interface::usb; | ||
namespace uart = openxc::interface::uart; | ||
namespace pipeline = openxc::pipeline; | ||
|
||
bool openxc::commands::handleGetVinCommand() { | ||
char* vin; | ||
|
||
if (openxc::diagnostics::haveVINfromCan()) { | ||
vin = (char *)openxc::diagnostics::getVIN(); | ||
sendCommandResponse(openxc_ControlCommand_Type_GET_VIN, true, vin, strlen(vin)); | ||
} else { | ||
openxc_ControlCommand command = openxc_ControlCommand(); // Zero Fill | ||
command.type = openxc_ControlCommand_Type_DIAGNOSTIC; | ||
|
||
command.type = openxc_ControlCommand_Type_DIAGNOSTIC; | ||
command.diagnostic_request.action = | ||
openxc_DiagnosticControlCommand_Action_ADD; | ||
|
||
command.diagnostic_request.request.bus = 1; | ||
command.diagnostic_request.request.mode = 9; | ||
command.diagnostic_request.request.message_id = 0x7e0; | ||
command.diagnostic_request.request.pid = 2; | ||
openxc::diagnostics::setVinCommandInProgress(true); | ||
|
||
diagnostics::handleDiagnosticCommand( | ||
&getConfiguration()->diagnosticsManager, &command); | ||
diagnostics::sendRequests(&getConfiguration()->diagnosticsManager, &getCanBuses()[0]); | ||
} | ||
|
||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef __GET_VIN_COMMAND_H__ | ||
#define __GET_VIN_COMMAND_H__ | ||
|
||
namespace openxc { | ||
namespace commands { | ||
|
||
bool handleGetVinCommand(); | ||
|
||
} // namespace commands | ||
} // namespace openxc | ||
|
||
#endif // __GET_VIN_COMMAND_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.