Skip to content

Commit

Permalink
fix: new line
Browse files Browse the repository at this point in the history
  • Loading branch information
FerroO2000 committed Jul 1, 2024
1 parent f7c209a commit 624bee4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 27 deletions.
2 changes: 1 addition & 1 deletion examples/markdown/MCB.dbc
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ CM_ SG_ 19 PRECHARGE_RLY_IMP_isPresent "States whether an implausibility from th
CM_ SG_ 19 DC_BUS_IMP_isPresent "States whether an implausibility from the DC bus is present.";
CM_ SG_ 19 ANY_IMP_isLatched "States whether any implausibility is latched.";

CM_ SG_ 37 DSPACE_FSM_state "The state of the dspace RTD state machine\n0 = Idle (waiting for push)\n1 = Precharge (1st push)\n2 = TS ON\n3 = RTD requested (2nd push)\n4 = RTD\n5 = Turn OFF\n-1 = Reboot/discharge";
CM_ SG_ 37 DSPACE_FSM_state "The state of the dspace RTD state machine. 0 = Idle (waiting for push); 1 = Precharge (1st push); 2 = TS ON; 3 = RTD requested (2nd push); 4 = RTD\n5 = Turn OFF; -1 = Reboot/discharge";


BA_DEF_ BO_ "GenMsgCycleTime" INT 0 1000;
Expand Down
47 changes: 23 additions & 24 deletions examples/markdown/SC24.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ Receivers: [DASH](#dash), [SCANNER](#scanner)

| Name | Start Bit | Size | Type | Min | Max | Unit | Description |
|------------------|-----------|------|------------------------------|-----|-----|------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| DSPACE_FSM_state | 0 | 8 | [`rtd_fsm_t`](#signal-types) | -1 | 6 | - | The state of the dspace RTD state machine\n0 = Idle (waiting for push)\n1 = Precharge (1st push)\n2 = TS ON\n3 = RTD requested (2nd push)\n4 = RTD\n5 = Turn OFF\n-1 = Reboot/discharge |
| DSPACE_FSM_state | 0 | 8 | [`rtd_fsm_t`](#signal-types) | -1 | 6 | - | The state of the dspace RTD state machine. 0 = Idle (waiting for push); 1 = Precharge (1st push); 2 = TS ON; 3 = RTD requested (2nd push); 4 = RTD\n5 = Turn OFF; -1 = Reboot/discharge |

---
#### DSPACE_datetime
Expand Down Expand Up @@ -1049,29 +1049,28 @@ Receivers: [DSPACE](#dspace), [SCANNER](#scanner)
## Signal Types
The list of all the signal types used in the network.

| Name | Size | Kind | Signed | Min | Max | Scale | Offset | Description |
|-----------------------|------|-----------|---------|-----|-----------|-------|--------|--------------------------------------------------|
| flag_t | 1 | `flag` | `false` | 0 | 1 | 1 | 0 | - |
| rotary_switch_pos_t | 4 | `integer` | `false` | 0 | 10 | 1 | 0 | - |
| month_t | 4 | `integer` | `false` | 0 | 11 | 1 | 0 | - |
| fan_pwm_t | 4 | `integer` | `false` | 0 | 10 | 1 | 0 | - |
| day_t | 5 | `integer` | `false` | 1 | 31 | 1 | 0 | - |
| hours_t | 5 | `integer` | `false` | 0 | 23 | 1 | 0 | - |
| seconds_t | 6 | `integer` | `false` | 0 | 59 | 1 | 0 | - |
| minutes_t | 6 | `integer` | `false` | 0 | 59 | 1 | 0 | - |
| tire_sens_id_t | 8 | `decimal` | `false` | 254 | -255 | 1 | 0 | - |
| tire_press_t | 8 | `decimal` | `false` | 1 | 254 | 1 | 0 | - |
| tire_sens_status_t | 8 | `decimal` | `false` | 254 | -255 | 1 | 0 | Bit #2: 0 if battery voltage > 2.2V, otherwise 1 |
| | | | | | | | | Bit #3: 0 if wheel spinning, 1 otherwise |
| tire_temp_t | 8 | `integer` | `false` | 10 | 170 | 1 | 0 | - |
| rtd_fsm_t | 8 | `integer` | `true` | -1 | 6 | 1 | 0 | - |
| uint8_t | 8 | `integer` | `false` | 0 | 255 | 1 | 0 | - |
| ntc_resistance_t | 10 | `decimal` | `false` | 0 | 31968.75 | 31.25 | 1000 | - |
| bms_lv_password_t | 15 | `integer` | `false` | 0 | 32768 | 1 | 0 | - |
| lv_cell_voltage_t | 16 | `decimal` | `false` | 0 | 2490.33 | 0.038 | 2000 | - |
| lv_bat_current_sens_t | 16 | `decimal` | `false` | 0 | 4980.66 | 0.076 | 0 | - |
| lv_bat_voltage_t | 16 | `decimal` | `false` | 0 | 17497.845 | 0.267 | 14000 | - |
| uint16_t | 16 | `integer` | `false` | 0 | 65535 | 1 | 0 | - |
| Name | Size | Kind | Signed | Min | Max | Scale | Offset | Description |
|-----------------------|------|-----------|---------|-----|-----------|-------|--------|--------------------------------------------------------------------------------------------|
| flag_t | 1 | `flag` | `false` | 0 | 1 | 1 | 0 | - |
| rotary_switch_pos_t | 4 | `integer` | `false` | 0 | 10 | 1 | 0 | - |
| fan_pwm_t | 4 | `integer` | `false` | 0 | 10 | 1 | 0 | - |
| month_t | 4 | `integer` | `false` | 0 | 11 | 1 | 0 | - |
| day_t | 5 | `integer` | `false` | 1 | 31 | 1 | 0 | - |
| hours_t | 5 | `integer` | `false` | 0 | 23 | 1 | 0 | - |
| seconds_t | 6 | `integer` | `false` | 0 | 59 | 1 | 0 | - |
| minutes_t | 6 | `integer` | `false` | 0 | 59 | 1 | 0 | - |
| tire_press_t | 8 | `decimal` | `false` | 1 | 254 | 1 | 0 | - |
| rtd_fsm_t | 8 | `integer` | `true` | -1 | 6 | 1 | 0 | - |
| uint8_t | 8 | `integer` | `false` | 0 | 255 | 1 | 0 | - |
| tire_temp_t | 8 | `integer` | `false` | 10 | 170 | 1 | 0 | - |
| tire_sens_id_t | 8 | `decimal` | `false` | 254 | -255 | 1 | 0 | - |
| tire_sens_status_t | 8 | `decimal` | `false` | 254 | -255 | 1 | 0 | Bit #2: 0 if battery voltage > 2.2V, otherwise 1; Bit #3: 0 if wheel spinning, 1 otherwise |
| ntc_resistance_t | 10 | `decimal` | `false` | 0 | 31968.75 | 31.25 | 1000 | - |
| bms_lv_password_t | 15 | `integer` | `false` | 0 | 32768 | 1 | 0 | - |
| lv_bat_current_sens_t | 16 | `decimal` | `false` | 0 | 4980.66 | 0.076 | 0 | - |
| lv_cell_voltage_t | 16 | `decimal` | `false` | 0 | 2490.33 | 0.038 | 2000 | - |
| lv_bat_voltage_t | 16 | `decimal` | `false` | 0 | 17497.845 | 0.267 | 14000 | - |
| uint16_t | 16 | `integer` | `false` | 0 | 65535 | 1 | 0 | - |

## Signal Units
The list of all the signal units used in the network.
Expand Down
2 changes: 1 addition & 1 deletion examples/markdown/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func tpms(mcb *acmelib.Bus, scanner, dspace *acmelib.NodeInterface) *acmelib.Nod

statusSigType, err := acmelib.NewDecimalSignalType("tire_sens_status_t", 8, false)
checkErr(err)
statusSigType.SetDesc("Bit #2: 0 if battery voltage > 2.2V, otherwise 1\nBit #3: 0 if wheel spinning, 1 otherwise")
statusSigType.SetDesc("Bit #2: 0 if battery voltage > 2.2V, otherwise 1; Bit #3: 0 if wheel spinning, 1 otherwise")

tempSigType, err := acmelib.NewIntegerSignalType("tire_temp_t", 8, false)
checkErr(err)
Expand Down
2 changes: 1 addition & 1 deletion examples/markdown/mcb_parsed.dbc
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ CM_ BU_ DSPACE "An automotive ECU.";
CM_ SG_ 25 FW_majorVersion "The firmware major version of the dSpace.";
CM_ SG_ 25 FW_minorVersion "The firmware minor version of the dSpace.";
CM_ SG_ 25 FW_patchVersion "The firmware patch version of the dSpace.";
CM_ SG_ 37 DSPACE_FSM_state "The state of the dspace RTD state machine\n0 = Idle (waiting for push)\n1 = Precharge (1st push)\n2 = TS ON\n3 = RTD requested (2nd push)\n4 = RTD\n5 = Turn OFF\n-1 = Reboot/discharge";
CM_ SG_ 37 DSPACE_FSM_state "The state of the dspace RTD state machine. 0 = Idle (waiting for push); 1 = Precharge (1st push); 2 = TS ON; 3 = RTD requested (2nd push); 4 = RTD\n5 = Turn OFF; -1 = Reboot/discharge";
CM_ SG_ 39 DATETIME_year "The current year expressed as an offset from 1970.";
CM_ SG_ 39 DATETIME_month "The current month of the year (0 = January, 11 = December).";
CM_ SG_ 39 DATETIME_day "The current day of the month, from 1 to 31.";
Expand Down

0 comments on commit 624bee4

Please sign in to comment.