Skip to content

Commit

Permalink
change STmin type to float, according to specification.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sauci committed Jul 24, 2019
1 parent 3a60956 commit 109ba85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/can_tp.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{
"block_size": 2,
"wait_for_transmission_maximum": 1,
"minimum_separation_time": 2,
"minimum_separation_time": 0.01,
"N_Ar_timeout": 1.0,
"N_Br_timeout": 0.9,
"N_Cr_timeout": 1.0,
Expand Down
5 changes: 3 additions & 2 deletions config/can_tp.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,9 @@
"minimum": 0
},
"minimum_separation_time": {
"type": "integer",
"minimum": 0
"type": "number",
"minimum": 0.0,
"maximum": 0.127
},
"wait_for_transmission_maximum": {
"type": "integer",
Expand Down
2 changes: 1 addition & 1 deletion script/config.c.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static const CanTp_RxNSduType CanTp_RxNSduConfig{{'%02X' % configuration_loop.in
(uint32)((ieee_float){{'%f' % receiver.N_Br_timeout}} * (ieee_float)1000000),
(uint32)((ieee_float){{'%f' % receiver.N_Cr_timeout}} * (ieee_float)1000000),
{{'0x%04Xu' % receiver.wait_for_transmission_maximum}},
{{'0x%04Xu' % receiver.minimum_separation_time}},
(uint16)((ieee_float){{'%f' % receiver.minimum_separation_time}} * (ieee_float)1000000),
{{receiver.addressing_format}},
{% if receiver.enable_padding %}CANTP_ON{% else %}CANTP_OFF{% endif %},
{{receiver.communication_type}},
Expand Down

0 comments on commit 109ba85

Please sign in to comment.