chiark / gitweb /
trains.git
13 years agohostside: more length for bavarian master
Ian Jackson [Mon, 25 Apr 2011 21:02:28 +0000 (22:02 +0100)]
hostside: more length for bavarian

13 years agogui: "--showguiplan=0/1" option for easier debugging of certain problems over a remot...
Ian Jackson [Mon, 25 Apr 2011 20:53:00 +0000 (21:53 +0100)]
gui: "--showguiplan=0/1" option for easier debugging of certain problems over a remote X session

13 years agohidrawconv: fix LAST_BITS macro (broken since it was introduced in f7dce805
Ian Jackson [Mon, 25 Apr 2011 20:52:24 +0000 (21:52 +0100)]
hidrawconv: fix LAST_BITS macro (broken since it was introduced in f7dce805

13 years agobavarian: add silberling carriages to bavarian
Ian Jackson [Mon, 21 Mar 2011 20:33:20 +0000 (20:33 +0000)]
bavarian: add silberling carriages to bavarian

13 years agohostside: hidrawconv: declarations for hatswitches; impl'n is still no-op
Ian Jackson [Sat, 12 Feb 2011 13:03:30 +0000 (13:03 +0000)]
hostside: hidrawconv: declarations for hatswitches; impl'n is still no-op

13 years agohostside: hidrawconv: add separator comments for each kind of reporter
Ian Jackson [Sun, 20 Feb 2011 14:09:38 +0000 (14:09 +0000)]
hostside: hidrawconv: add separator comments for each kind of reporter

13 years agohostside: hidrawconv: rename various variables and functions to be more sensible...
Ian Jackson [Sun, 20 Feb 2011 14:09:07 +0000 (14:09 +0000)]
hostside: hidrawconv: rename various variables and functions to be more sensible and consistent

13 years agohostside: hidrawconv: factor out most of the reporter functions' bodies into macros
Ian Jackson [Sun, 20 Feb 2011 14:03:49 +0000 (14:03 +0000)]
hostside: hidrawconv: factor out most of the reporter functions' bodies into macros

13 years agohostside: hidrawconv: cope with difference between 2.6.26 and 2.6.33, guessing the...
Ian Jackson [Sat, 19 Feb 2011 19:21:03 +0000 (19:21 +0000)]
hostside: hidrawconv: cope with difference between 2.6.26 and 2.6.33, guessing the kernel behaviour by whether the kernel supports HIDIOCGRAWPHYS and HIDIOCGRAWNAME

13 years agohostside: hidrawconv: break out dispatch()
Ian Jackson [Sat, 19 Feb 2011 19:32:44 +0000 (19:32 +0000)]
hostside: hidrawconv: break out dispatch()

13 years agohostside: hidrawconv: change declarations of processing functions
Ian Jackson [Sat, 19 Feb 2011 19:30:36 +0000 (19:30 +0000)]
hostside: hidrawconv: change declarations of processing functions

13 years agohostside: hidrawconv: fix a missing newline in a message
Ian Jackson [Sat, 19 Feb 2011 19:01:43 +0000 (19:01 +0000)]
hostside: hidrawconv: fix a missing newline in a message

13 years agosafety: movpos: use new movposcomb_feature_posn function as applicable; no functional...
Ian Jackson [Sat, 19 Feb 2011 12:30:56 +0000 (12:30 +0000)]
safety: movpos: use new movposcomb_feature_posn function as applicable; no functional change

13 years agosafety: movpos: new function movposcomb_feature_posn
Ian Jackson [Sat, 19 Feb 2011 12:23:35 +0000 (12:23 +0000)]
safety: movpos: new function movposcomb_feature_posn

13 years agosafety: movpos: rename movposcomb_update_feature to movposcomb_feature_update (and...
Ian Jackson [Sat, 19 Feb 2011 12:20:12 +0000 (12:20 +0000)]
safety: movpos: rename movposcomb_update_feature to movposcomb_feature_update (and change argument order); no functional change

13 years agosafety: movpos: better debug output for "actual" (no longer show unkmap bitmask in...
Ian Jackson [Sat, 19 Feb 2011 12:15:03 +0000 (12:15 +0000)]
safety: movpos: better debug output for "actual" (no longer show unkmap bitmask in hex)

13 years agosafety: movpos: break out UnkMap bit shift operations into functions for less confusi...
Ian Jackson [Sat, 19 Feb 2011 12:11:29 +0000 (12:11 +0000)]
safety: movpos: break out UnkMap bit shift operations into functions for less confusion, and fix a bug in that area

13 years agohostside: bessar: add some more kernel threads to be given high priority (timer ones...
Ian Jackson [Sat, 19 Feb 2011 01:55:52 +0000 (01:55 +0000)]
hostside: bessar: add some more kernel threads to be given high priority (timer ones, mostly).  this seems to fix a watchdog failure which happened a few times today after adding (but reproduceable without) udevd

13 years agoTODO: a movpos-related failure
Ian Jackson [Sat, 19 Feb 2011 01:54:17 +0000 (01:54 +0000)]
TODO: a movpos-related failure

13 years agohostside/evdev-manip-ebwikeb: bessar runs udev so find the right hiddev to open
Ian Jackson [Sat, 19 Feb 2011 00:26:57 +0000 (00:26 +0000)]
hostside/evdev-manip-ebwikeb: bessar runs udev so find the right hiddev to open

13 years agoTODO: point repeated firing bug is fixed with last commit.
Ian Jackson [Fri, 18 Feb 2011 23:27:44 +0000 (23:27 +0000)]
TODO: point repeated firing bug is fixed with last commit.

13 years agosafety: in movpos split "actual" into "actualpos" and "actualunk", so we know which...
Ian Jackson [Fri, 18 Feb 2011 23:10:35 +0000 (23:10 +0000)]
safety: in movpos split "actual" into "actualpos" and "actualunk", so we know which features' positions we know; this means movpos_poscomb_actual disappears but we didn't need it anyway

13 years agoTODO: two bugs / wips
Ian Jackson [Sun, 13 Feb 2011 22:13:28 +0000 (22:13 +0000)]
TODO: two bugs / wips

13 years agogui: gui-bessar.config: add gamepad to bessar too
Ian Jackson [Sun, 13 Feb 2011 21:44:37 +0000 (21:44 +0000)]
gui: gui-bessar.config: add gamepad to bessar too

13 years agorealtime: print all movpos positions on entering Run
Ian Jackson [Sun, 13 Feb 2011 21:26:52 +0000 (21:26 +0000)]
realtime: print all movpos positions on entering Run

13 years agorealtime: break out new function movpos.c:ouposn_feat
Ian Jackson [Sun, 13 Feb 2011 21:26:25 +0000 (21:26 +0000)]
realtime: break out new function movpos.c:ouposn_feat

13 years agorealtime: break out new function movpos.c:ouposn_stable
Ian Jackson [Sun, 13 Feb 2011 21:26:14 +0000 (21:26 +0000)]
realtime: break out new function movpos.c:ouposn_stable

13 years agogui: gamepad: implement train selection
Ian Jackson [Sun, 13 Feb 2011 19:32:32 +0000 (19:32 +0000)]
gui: gamepad: implement train selection

13 years agogui: read "train * is *" from .record into trainnum2train global array
Ian Jackson [Sun, 13 Feb 2011 19:32:20 +0000 (19:32 +0000)]
gui: read "train * is *" from .record into trainnum2train global array

13 years agogui: compactify some event handlers; no function change
Ian Jackson [Sun, 13 Feb 2011 19:31:51 +0000 (19:31 +0000)]
gui: compactify some event handlers; no function change

13 years agogui: gamepad supports uninhibit
Ian Jackson [Sun, 13 Feb 2011 19:01:04 +0000 (19:01 +0000)]
gui: gamepad supports uninhibit

13 years agogui: gamepad dead spot logic etc, can set direction
Ian Jackson [Sun, 13 Feb 2011 18:48:36 +0000 (18:48 +0000)]
gui: gamepad dead spot logic etc, can set direction

13 years agogui: debugging output for calls to speedw-userinput-tractbrake
Ian Jackson [Sun, 13 Feb 2011 18:48:21 +0000 (18:48 +0000)]
gui: debugging output for calls to speedw-userinput-tractbrake

13 years agogui: move optimisation for avoiding commanding same speed again into speedw-do-abs
Ian Jackson [Sun, 13 Feb 2011 18:47:47 +0000 (18:47 +0000)]
gui: move optimisation for avoiding commanding same speed again into speedw-do-abs

13 years agogui: tractbreak: get sense of power/brake correct
Ian Jackson [Sun, 13 Feb 2011 12:45:26 +0000 (12:45 +0000)]
gui: tractbreak: get sense of power/brake correct

13 years agogui: tractbreak prevent demanded traction when inhibited
Ian Jackson [Sun, 13 Feb 2011 12:41:56 +0000 (12:41 +0000)]
gui: tractbreak prevent demanded traction when inhibited

13 years agohostside: hidrawconv-joytechneos: fixes and improvements to pseudo-descriptors
Ian Jackson [Sun, 13 Feb 2011 12:41:29 +0000 (12:41 +0000)]
hostside: hidrawconv-joytechneos: fixes and improvements to pseudo-descriptors

13 years agohostside: evdev-manip: print floating point values -1..+1 for ABS values
Ian Jackson [Sun, 13 Feb 2011 12:40:55 +0000 (12:40 +0000)]
hostside: evdev-manip: print floating point values -1..+1 for ABS values

13 years agogui: new tractbrake machinery, seems to mostly work for gamepad
Ian Jackson [Sun, 13 Feb 2011 01:22:19 +0000 (01:22 +0000)]
gui: new tractbrake machinery, seems to mostly work for gamepad
also somewhat change the way inhibition works

still undone: select train from gamepad; uninhibit from gamepad
inhibition due to signalling problem is a bit ad-hoc

13 years agohostside: realtime.h: add comment referring to definitions of Train and Segment
Ian Jackson [Sun, 13 Feb 2011 01:20:36 +0000 (01:20 +0000)]
hostside: realtime.h: add comment referring to definitions of Train and Segment

13 years agohostside: hidrawconv: always report joysticks as doubles -1..+1; disable dpad, as...
Ian Jackson [Sun, 13 Feb 2011 01:20:16 +0000 (01:20 +0000)]
hostside: hidrawconv: always report joysticks as doubles -1..+1; disable dpad, as we don't support that properly atm

13 years agohostside: lib.tcl: new defset command
Ian Jackson [Sun, 13 Feb 2011 01:19:04 +0000 (01:19 +0000)]
hostside: lib.tcl: new defset command

13 years agohostside: lib.tcl: fix quoting bugs in addexpr and setexpr
Ian Jackson [Sun, 13 Feb 2011 01:18:49 +0000 (01:18 +0000)]
hostside: lib.tcl: fix quoting bugs in addexpr and setexpr

13 years agogui: hidraw support seems to work at least as far as getting notices for unbound...
Ian Jackson [Sun, 6 Feb 2011 23:18:11 +0000 (23:18 +0000)]
gui: hidraw support seems to work at least as far as getting notices for unbound events, and evdev support seems to work again now too

13 years agogui: wip gamepad support; before reorg to run external report converter for hidraw
Ian Jackson [Sun, 6 Feb 2011 19:07:44 +0000 (19:07 +0000)]
gui: wip gamepad support; before reorg to run external report converter for hidraw

13 years agohostside/hidrawconv*: tools for converting hidraw according to our own idea of how...
Ian Jackson [Sat, 5 Feb 2011 02:15:08 +0000 (02:15 +0000)]
hostside/hidrawconv*: tools for converting hidraw according to our own idea of how it should be

13 years agohostside/hidraw-ioctl: do not print a spurious space after descriptor dump
Ian Jackson [Sat, 5 Feb 2011 00:37:18 +0000 (00:37 +0000)]
hostside/hidraw-ioctl: do not print a spurious space after descriptor dump

13 years agohostside, notes: new notes directory; move neo-s info into it; remove obsolete files...
Ian Jackson [Sun, 30 Jan 2011 17:59:37 +0000 (17:59 +0000)]
hostside, notes: new notes directory; move neo-s info into it; remove obsolete files including hidraw fuzzer and abandoned libusb attempt

13 years agohostside: hidraw-ioctl, hiddev-ioctl, kdled-ioctl: build by default
Ian Jackson [Sun, 30 Jan 2011 17:56:12 +0000 (17:56 +0000)]
hostside: hidraw-ioctl, hiddev-ioctl, kdled-ioctl: build by default

13 years agohostside: hidraw-ioctl: much improved, now a useful utility
Ian Jackson [Sun, 30 Jan 2011 17:55:50 +0000 (17:55 +0000)]
hostside: hidraw-ioctl: much improved, now a useful utility

13 years agohostside: utils: new dumphex function, moved from hidraw-ioctl.c
Ian Jackson [Sun, 30 Jan 2011 17:54:10 +0000 (17:54 +0000)]
hostside: utils: new dumphex function, moved from hidraw-ioctl.c

13 years agoneo-s gamepad investigations
Ian Jackson [Mon, 24 Jan 2011 00:30:55 +0000 (00:30 +0000)]
neo-s gamepad investigations

13 years agobuild test programs properly
Ian Jackson [Sun, 23 Jan 2011 22:53:19 +0000 (22:53 +0000)]
build test programs properly

13 years agohostside: wip test programs etc. for Joytech Neo S gamepad
Ian Jackson [Wed, 19 Jan 2011 18:07:11 +0000 (18:07 +0000)]
hostside: wip test programs etc. for Joytech Neo S gamepad

13 years agoMakefiles: move "default:" target to top of various Makefiles, since cprogs.make...
Ian Jackson [Sun, 30 Jan 2011 19:21:36 +0000 (19:21 +0000)]
Makefiles: move "default:" target to top of various Makefiles, since cprogs.make now has a TAGS target in it which otherwise becomes the default

13 years agoTODO: +dump.2011-01-10T22-42-18+0000 was derailment on double slip probably due to...
Ian Jackson [Wed, 19 Jan 2011 23:27:07 +0000 (23:27 +0000)]
TODO: +dump.2011-01-10T22-42-18+0000 was derailment on double slip probably due to track geometry problems.  Not software, anyway

13 years agoMakefiles: generate TAGS
Ian Jackson [Wed, 19 Jan 2011 23:20:59 +0000 (23:20 +0000)]
Makefiles: generate TAGS

13 years agorealtime: resolve: do not mess improperly with tr_backwards
Ian Jackson [Wed, 19 Jan 2011 23:10:29 +0000 (23:10 +0000)]
realtime: resolve: do not mess improperly with tr_backwards

Previously we would attempt to sort out Segment.tr_backwards in
resmain_getmovpos.  This is wrong because *_getmovpos shouldn't have
that kind of side-effect.

Furthermore the actual code was wrong: it wasn't idempotent: the
number of times tr_backwards would be inverted for a backwards train
would depend on how many times resmain_getmovpos was called.

Actually, for backwards trains not resolving at home, there is no need
to mess with tr_backwards.  The existing tr_backwards for the segments
it owns is fine.  For trains resolving at home, we need to explicitly
clear the train's direction too, and we should do this in a dedicated
piece of code.

Fixes:
@2011-01-10 20:28:23 GMT info save-dump +dump.2011-01-10T20-28-23+0000
traversed santafe forwards from B8 to B7 when B7/J1

13 years agohostside/usbhid: cope when the device sends a field beyond maxusage
Ian Jackson [Fri, 14 Jan 2011 00:00:34 +0000 (00:00 +0000)]
hostside/usbhid: cope when the device sends a field beyond maxusage

13 years agohostside/TODO: some crash reports
Ian Jackson [Thu, 13 Jan 2011 23:59:45 +0000 (23:59 +0000)]
hostside/TODO: some crash reports

13 years agorealtime: when reversing, a train's initial location may be unsuitable, eg because...
Ian Jackson [Sun, 9 Jan 2011 22:07:45 +0000 (22:07 +0000)]
realtime: when reversing, a train's initial location may be unsuitable, eg because moveable features of to-become-owned segments are set wrong

13 years agohostside/TODO: latest fixes seem good now
Ian Jackson [Sun, 9 Jan 2011 19:14:35 +0000 (19:14 +0000)]
hostside/TODO: latest fixes seem good now

13 years agorealtime: no longer comment on involuntary context switches, since we get one for...
Ian Jackson [Sun, 9 Jan 2011 19:10:00 +0000 (19:10 +0000)]
realtime: no longer comment on involuntary context switches, since we get one for every serial interrupt

13 years agohostside: do serial irq priority poking with a helper script and a pipe in /var/run...
Ian Jackson [Sun, 9 Jan 2011 19:07:40 +0000 (19:07 +0000)]
hostside: do serial irq priority poking with a helper script and a pipe in /var/run, yuck

13 years agohostside: serial-irq-priority: new script run from bessar's init
Ian Jackson [Sun, 9 Jan 2011 18:36:56 +0000 (18:36 +0000)]
hostside: serial-irq-priority: new script run from bessar's init

13 years agorealtime: rtprio: bump our scheduler priority to 54 from 10, to put us ahead of most...
Ian Jackson [Sun, 9 Jan 2011 18:20:08 +0000 (18:20 +0000)]
realtime: rtprio: bump our scheduler priority to 54 from 10, to put us ahead of most interrupt handlers

13 years agogui: add X2 to keys, since otherwise you can sometimes get MovFeatTooLate annoyingly
Ian Jackson [Sun, 9 Jan 2011 18:03:47 +0000 (18:03 +0000)]
gui: add X2 to keys, since otherwise you can sometimes get MovFeatTooLate annoyingly

13 years agorealtime: movpos: need to cope with reentrant calls to method_change_done, since...
Ian Jackson [Sun, 9 Jan 2011 17:44:53 +0000 (17:44 +0000)]
realtime: movpos: need to cope with reentrant calls to method_change_done, since FSQ does it

13 years agohostside: clean removes autoversion.c
Ian Jackson [Sun, 9 Jan 2011 17:35:30 +0000 (17:35 +0000)]
hostside: clean removes autoversion.c

13 years agohostside/x.gdb: back to debugging realtime
Ian Jackson [Sun, 9 Jan 2011 17:31:20 +0000 (17:31 +0000)]
hostside/x.gdb: back to debugging realtime

13 years agohostside/TODO: update with some info from discoveries etc.
Ian Jackson [Sun, 9 Jan 2011 17:12:15 +0000 (17:12 +0000)]
hostside/TODO: update with some info from discoveries etc.

13 years agohostside: multiplex: make realtime_xopts a command line setting
Ian Jackson [Sun, 9 Jan 2011 17:01:43 +0000 (17:01 +0000)]
hostside: multiplex: make realtime_xopts a command line setting

13 years agohostside: multiplex: spot when restart is looping and abandon it
Ian Jackson [Sun, 9 Jan 2011 16:54:39 +0000 (16:54 +0000)]
hostside: multiplex: spot when restart is looping and abandon it

13 years agohostside: include autoversion and print it in a couple of relevant places
Ian Jackson [Sun, 9 Jan 2011 14:02:41 +0000 (14:02 +0000)]
hostside: include autoversion and print it in a couple of relevant places

13 years agogit-revid: new C autoversion feature
Ian Jackson [Sun, 9 Jan 2011 14:01:47 +0000 (14:01 +0000)]
git-revid: new C autoversion feature

13 years agorealtime: persist: trivial whitespace fix
Ian Jackson [Sun, 9 Jan 2011 13:36:19 +0000 (13:36 +0000)]
realtime: persist: trivial whitespace fix

13 years agohostside/TODO: some things fixed
Ian Jackson [Sun, 9 Jan 2011 13:35:17 +0000 (13:35 +0000)]
hostside/TODO: some things fixed

13 years agorealtime: do not crash and/or recurse if die called too early
Ian Jackson [Sun, 9 Jan 2011 13:31:47 +0000 (13:31 +0000)]
realtime: do not crash and/or recurse if die called too early

13 years agohostside/x.gdb: debugging persist conversion
Ian Jackson [Sun, 9 Jan 2011 13:31:26 +0000 (13:31 +0000)]
hostside/x.gdb: debugging persist conversion

13 years agorealtime: persist: header check failures tell us which item did not match
Ian Jackson [Sun, 9 Jan 2011 13:31:01 +0000 (13:31 +0000)]
realtime: persist: header check failures tell us which item did not match

13 years agohostside: TODOs from repeated crashes last night
Ian Jackson [Sun, 9 Jan 2011 13:30:29 +0000 (13:30 +0000)]
hostside: TODOs from repeated crashes last night

13 years agorealtime: in entrails conversion, do not try to read state of moving features out...
Ian Jackson [Sun, 9 Jan 2011 13:18:54 +0000 (13:18 +0000)]
realtime: in entrails conversion, do not try to read state of moving features out of non-saved memory

13 years agorealtime: movpos: avoid a use-after-free
Ian Jackson [Sun, 9 Jan 2011 04:20:31 +0000 (04:20 +0000)]
realtime: movpos: avoid a use-after-free

13 years agorealtime: movpos: when calling movpos_change on a no-change indep, immediately finish...
Ian Jackson [Sun, 9 Jan 2011 04:20:13 +0000 (04:20 +0000)]
realtime: movpos: when calling movpos_change on a no-change indep, immediately finish the motion

13 years agorealtime: motions_all_abandon sets ->motion=0
Ian Jackson [Sun, 9 Jan 2011 03:57:28 +0000 (03:57 +0000)]
realtime: motions_all_abandon sets ->motion=0

13 years agorealtime: trivial whitespace fix
Ian Jackson [Sun, 9 Jan 2011 02:51:11 +0000 (02:51 +0000)]
realtime: trivial whitespace fix

13 years agorealtime: resolve: at end of resolution, set all features we haven't explicitly chang...
Ian Jackson [Sun, 9 Jan 2011 02:50:58 +0000 (02:50 +0000)]
realtime: resolve: at end of resolution, set all features we haven't explicitly changed to unknown movposcomb

13 years agorealtime: only monitor rusage if RTFEAT_RUSAGE
Ian Jackson [Sun, 9 Jan 2011 02:26:26 +0000 (02:26 +0000)]
realtime: only monitor rusage if RTFEAT_RUSAGE

13 years agorealtime: rusage: print a message if we are monitoring
Ian Jackson [Sun, 9 Jan 2011 02:26:15 +0000 (02:26 +0000)]
realtime: rusage: print a message if we are monitoring

13 years agorealtime: new check_rusage feature
Ian Jackson [Sun, 9 Jan 2011 02:18:01 +0000 (02:18 +0000)]
realtime: new check_rusage feature

13 years agorealtime: movpos: properly terminate methods[] array (!)
Ian Jackson [Sun, 9 Jan 2011 02:17:37 +0000 (02:17 +0000)]
realtime: movpos: properly terminate methods[] array (!)

13 years agorealtime: movpos: do not SEGV if we dispose a half-built indep
Ian Jackson [Sun, 9 Jan 2011 01:52:14 +0000 (01:52 +0000)]
realtime: movpos: do not SEGV if we dispose a half-built indep

13 years agorealtime: movpos: debug: recategorise exit message from indep_prepare
Ian Jackson [Sun, 9 Jan 2011 01:52:03 +0000 (01:52 +0000)]
realtime: movpos: debug: recategorise exit message from indep_prepare

13 years agohostside: movpos: fix fundamental logic error in change_needed (!)
Ian Jackson [Sun, 9 Jan 2011 01:30:55 +0000 (01:30 +0000)]
hostside: movpos: fix fundamental logic error in change_needed (!)

13 years agohostside/x.gdb: more point debug
Ian Jackson [Sun, 9 Jan 2011 01:30:35 +0000 (01:30 +0000)]
hostside/x.gdb: more point debug

13 years agorealtime: movpos: debug: print some debugging in movpos_findcomb_bysegs
Ian Jackson [Sun, 9 Jan 2011 01:30:16 +0000 (01:30 +0000)]
realtime: movpos: debug: print some debugging in movpos_findcomb_bysegs

13 years agohostside: fetch-dump: new convenience script
Ian Jackson [Sun, 9 Jan 2011 01:11:04 +0000 (01:11 +0000)]
hostside: fetch-dump: new convenience script

13 years agorealtime: movpos: movpos_change actually sets seg->moving (!)
Ian Jackson [Sun, 9 Jan 2011 00:35:52 +0000 (00:35 +0000)]
realtime: movpos: movpos_change actually sets seg->moving (!)

13 years agorealtime: movpos: when movpos_reserve actually returns the reservation (!)
Ian Jackson [Sun, 9 Jan 2011 00:25:12 +0000 (00:25 +0000)]
realtime: movpos: when movpos_reserve actually returns the reservation (!)

13 years agorealtime: movpos: debug output: exclude some more stuff from the default movpos output
Ian Jackson [Sun, 9 Jan 2011 00:24:47 +0000 (00:24 +0000)]
realtime: movpos: debug output: exclude some more stuff from the default movpos output