The International Simutrans Forum

 

Author Topic: Viewing curve speed limits and calculating acceleration time/distance  (Read 5715 times)

0 Members and 1 Guest are viewing this topic.

Offline Spenk009

  • Devotee
  • *
  • Posts: 338
  • Languages: en, de
Re: Viewing curve speed limits and calculating acceleration time/distance
« Reply #105 on: November 01, 2020, 02:17:46 PM »
It works very well on my Ubuntu machine, compiled from the suggested branch and run on a fresh copy of PakBritain-Ex (compiled without issues):



Would it make sense to show speed reached in lower increments if vmax is not shown on the graph? Example: The lower two graphs are from a GWR 3700 Class that can reach up to 150km/h, would it be helpful to show at least twice or quadruple the distance in "v-t graph"?

OS: Ubuntu 20.04.1 LTS x86_64
Host: 20EFS01B01 ThinkPad W541
Kernel: 5.4.0-52-generic
Uptime: 4 days, 23 hours, 3 mins
Packages: 2716 (dpkg), 6 (snap)
Shell: bash 5.0.17
Resolution: 2880x1620
DE: Plasma
WM: KWin
Theme: Breeze [Plasma], Breeze [GTK2/3]
Icons: breeze [Plasma], breeze [GTK2/3]
Terminal: konsole
CPU: Intel i7-4810MQ (8) @ 3.800GHz
GPU: NVIDIA Quadro K2100M
GPU: Intel 4th Gen Core Processor
Memory: 9147MiB / 17686MiB

Offline Ranran

  • Devotee
  • *
  • Posts: 1283
  • Languages: ja
Re: Viewing curve speed limits and calculating acceleration time/distance
« Reply #106 on: November 01, 2020, 02:19:35 PM »
I'm sorry. This is a derivative of the r8653 branch, but I haven't merged the changes in r8653 branch yet.

Offline freddyhayward

  • Devotee
  • *
  • Posts: 456
  • Languages: EN
Re: Viewing curve speed limits and calculating acceleration time/distance
« Reply #107 on: November 01, 2020, 02:22:42 PM »
This is the error:
Code: [Select]
In file included from /usr/include/c++/10/bits/stl_iterator_base_types.h:67,
                 from /usr/include/c++/10/iterator:61,
                 from bauer/../utils/../utils/for.h:10,
                 from bauer/../utils/../simtypes.h:13,
                 from bauer/../utils/log.h:12,
                 from bauer/../simdebug.h:21,
                 from bauer/brueckenbauer.cc:8:
/usr/include/c++/10/type_traits: In instantiation of ‘struct std::is_move_constructible<sparse_tpl<short unsigned int> >’:
/usr/include/c++/10/type_traits:138:12:   required from ‘struct std::__and_<std::is_move_constructible<sparse_tpl<short unsigned int> >, std::is_move_assignable<sparse_tpl<short unsigned int> > >’
/usr/include/c++/10/type_traits:143:12:   required from ‘struct std::__and_<std::__not_<std::__is_tuple_like<sparse_tpl<short unsigned int> > >, std::is_move_constructible<sparse_tpl<short unsigned int> >, std::is_move_assignable<sparse_tpl<short unsigned int> > >’
/usr/include/c++/10/type_traits:2195:11:   required by substitution of ‘template<class ... _Cond> using _Require = std::__enable_if_t<std::__and_< <template-parameter-1-1> >::value> [with _Cond = {std::__not_<std::__is_tuple_like<sparse_tpl<short unsigned int> > >, std::is_move_constructible<sparse_tpl<short unsigned int> >, std::is_move_assignable<sparse_tpl<short unsigned int> >}]’
/usr/include/c++/10/bits/move.h:189:5:   required by substitution of ‘template<class _Tp> std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = sparse_tpl<short unsigned int>]’
bauer/../obj/../tpl/sparse_tpl.h:242:15:   required from ‘class sparse_tpl<short unsigned int>’
bauer/../obj/../simcity.h:171:21:   required from here
/usr/include/c++/10/type_traits:960:52: error: static assertion failed: template argument must be a complete class or an unbounded array
  960 |       static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}),

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20342
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Viewing curve speed limits and calculating acceleration time/distance
« Reply #108 on: November 01, 2020, 02:45:46 PM »
I'm sorry. This is a derivative of the r8653 branch, but I haven't merged the changes in r8653 branch yet.

Excellent, thank you: please let me know when you have merged these changes so that I can start work in testing this.

Offline Ranran

  • Devotee
  • *
  • Posts: 1283
  • Languages: ja
Re: Viewing curve speed limits and calculating acceleration time/distance
« Reply #109 on: November 01, 2020, 03:20:59 PM »
accel-curve-chart-v2 branch is now up to date.

Offline freddyhayward

  • Devotee
  • *
  • Posts: 456
  • Languages: EN
Re: Viewing curve speed limits and calculating acceleration time/distance
« Reply #110 on: November 01, 2020, 09:22:52 PM »
accel-curve-chart-v2 branch is now up to date.
It compiles, runs, doesn't crash, and its new location in the tabs make sense! Thank you!

Offline Ranran

  • Devotee
  • *
  • Posts: 1283
  • Languages: ja
Re: Viewing curve speed limits and calculating acceleration time/distance
« Reply #111 on: November 02, 2020, 11:27:16 AM »
Thank you for your confirmation. This patch can now move forward.  :)