Skip to content

Commit

Permalink
Merge pull request #215 from bbidault2/devel
Browse files Browse the repository at this point in the history
brake pressure update
  • Loading branch information
Boris Bidault committed Nov 3, 2017
2 parents 9cc7da2 + dc03aa4 commit 2f39063
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions api/include/vehicles/kia_soul_ev.h
Expand Up @@ -122,53 +122,53 @@ typedef struct
* @brief Minimum allowed voltage for the low spoof signal voltage. [volts]
*
*/
#define BRAKE_SPOOF_LOW_SIGNAL_VOLTAGE_MIN ( 0.303 )
#define BRAKE_SPOOF_LOW_SIGNAL_VOLTAGE_MIN ( 0.333 )

/*
* @brief Maximum allowed voltage for the low spoof signal voltage. [volts]
*
*/
#define BRAKE_SPOOF_LOW_SIGNAL_VOLTAGE_MAX ( 1.40 )
#define BRAKE_SPOOF_LOW_SIGNAL_VOLTAGE_MAX ( 1.12 )

/**
* @brief Minimum allowed voltage for the high spoof signal voltage. [volts]
*
*/
#define BRAKE_SPOOF_HIGH_SIGNAL_VOLTAGE_MIN ( 0.635 )
#define BRAKE_SPOOF_HIGH_SIGNAL_VOLTAGE_MIN ( 0.698 )

/**
* @brief Maximum allowed voltage for the high spoof signal voltage. [volts]
*
*/
#define BRAKE_SPOOF_HIGH_SIGNAL_VOLTAGE_MAX ( 2.87 )
#define BRAKE_SPOOF_HIGH_SIGNAL_VOLTAGE_MAX ( 2.29 )

/*
* @brief Minimum allowed value for the low spoof signal value. [steps]
*
* Equal to \ref BRAKE_SPOOF_LOW_SIGNAL_VOLTAGE_MIN * \ref STEPS_PER_VOLT.
*/
#define BRAKE_SPOOF_LOW_SIGNAL_RANGE_MIN ( 249 )
#define BRAKE_SPOOF_LOW_SIGNAL_RANGE_MIN ( 273 )

/*
* @brief Minimum allowed value for the low spoof signal value. [steps]
*
* Equal to \ref BRAKE_SPOOF_LOW_SIGNAL_VOLTAGE_MAX * \ref STEPS_PER_VOLT.
*/
#define BRAKE_SPOOF_LOW_SIGNAL_RANGE_MAX ( 1146 )
#define BRAKE_SPOOF_LOW_SIGNAL_RANGE_MAX ( 917 )

/*
* @brief Minimum allowed value for the low spoof signal value. [steps]
*
* Equal to \ref BRAKE_SPOOF_HIGH_SIGNAL_VOLTAGE_MIN * \ref STEPS_PER_VOLT.
*/
#define BRAKE_SPOOF_HIGH_SIGNAL_RANGE_MIN ( 521 )
#define BRAKE_SPOOF_HIGH_SIGNAL_RANGE_MIN ( 572 )

/*
* @brief Minimum allowed value for the low spoof signal value. [steps]
*
* Equal to \ref BRAKE_SPOOF_HIGH_SIGNAL_VOLTAGE_MAX * \ref STEPS_PER_VOLT.
*/
#define BRAKE_SPOOF_HIGH_SIGNAL_RANGE_MAX ( 2351 )
#define BRAKE_SPOOF_HIGH_SIGNAL_RANGE_MAX ( 1876 )

/*
* @brief Calculation to convert a brake position to a low spoof voltage.
Expand Down
Expand Up @@ -39,12 +39,12 @@ Feature: Receiving commands

Examples:
| high | low |
| 2300 | 250 |
| 2000 | 300 |
| 1876 | 273 |
| 1800 | 300 |
| 1500 | 500 |
| 1000 | 750 |
| 750 | 1000 |
| 550 | 1100 |
| 750 | 900 |
| 572 | 917 |


Scenario Outline: Spoof value sent from application outside valid range
Expand All @@ -57,7 +57,7 @@ Feature: Receiving commands

Examples:
| high | low | high_clamped | low_clamped |
| 4000 | 0 | 2351 | 249 |
| 3500 | 500 | 2351 | 500 |
| 500 | 3500 | 521 | 1146 |
| 0 | 4000 | 521 | 1146 |
| 4000 | 0 | 1876 | 273 |
| 3500 | 500 | 1876 | 500 |
| 500 | 3500 | 572 | 917 |
| 0 | 4000 | 572 | 917 |

0 comments on commit 2f39063

Please sign in to comment.