Astate
From DGC Wiki
|
Astate is the state estimator for Alice. An overview of the operation of this module is given in Jeremy Leib's SURF Report from 2005.
[edit]
Hardware
Astate makes use of the LN 200 IMU, the Navcom GPS and the Novatel GPS to measure the motion of the system. In addition, it uses the OBD II interface to determine whether the vehicle is stopped.
[edit]
Troubleshooting
- IMU is not being read by astate: if the IMU counter is not being updated, it may be that the driver for the fastcomm card has not been initalized. On skynet5, run dgc/bin/fastcomm_esccp_setup.
- IMU is not being read by astate, when run fastcom_esccp_setup a message "/dev/escc0 busy" is returned: it is possible that two different copies of AState are accessing the IMU. A brute-force solution is to reboot the machine where Astate is running. Instead, the following procedure can be applied:
** lsmod (to see the modules linked to kernel; if escc0 has more than two accessing processes, this may be the problem) ** ps -aux | grep ast (to see how many astate processes are running. IMPORTANT: search for ast and not for astate) ** killall astate (this will work only if run by the owner of the processes or as root) ** lsmod (escc0 shall be empty, now) ** fastcomm_esccp_setup (to reinitialize the PCI card)
For problems on the above procedure contact Steve G.
[edit]
Software
[edit]
Command Line Settings
| Flag(s) | Usage | Notes |
| -o --obd | Disable use of OBD II | OBD II is used to determine when the vehicle velocity is zero. Adrive must be running in order to get OBD II messages. Use this flag to tell astate not to look for OBD II messages. |
| -c | Turn off use of superCon in interface | If specified, tells astate not to include its superCon logic. This is implemented in the AState_Update loop by disabling checks for state jumps. The AState_MetaState code is unaffected (but should never be activated). |
[edit]
Display values
| Label | Variable | Description |
| OBD | &_metaState.obdActive, obdCount | obdActive is set in AState_MetaState.cc if the heartbeat function is set (in AState_OBDII.cc). obdCount is updated in AState_Update if the OBD buffer is read. |
| stateJump | stateJump | Status of stateJump requests to superCon. Most of the logic for this is in AState_MetaState.cc
These values are not updated if astate is started with the -c flag (useSC = 0) |
| GPS - Nav | trackErr | This entry was removed on 26 Nov |
| Nov - Est | trackErr | Euclidean distance between current state estimate and Novatel position |
| factor | novStdFactor | Set the multiplication factor for the standard deviation of the Novatel GPS measurements. A value of 1 will use what the Novatel unit tells us. The default value is 0.1 and 0.01 seems to work well if you really trust your measurements. |
| FOM | gpsFOM | Figure of merit from GPS (both?). Displayed but not otherwise used. |
| DOP | gpsDOP | Degree of precision from GPS (both?). Used to set covariance for KF in AState_Update |
| StateMode | stateMode | Current mode for astate. Used in AState_Update.cc and AState_MetaState.cc
</table> [edit] Troubleshooting
[edit] Miscellaneous Notes
Old documentation: there are several pages for astate documentation that haven't been updated in a while and probably aren't correct:
|
![[Main Page]](../../../../upload/alice.jpg)