AState howto
From DGC Wiki
|
THIS PAGE HAS BEEN MARKED AS OBSOLETE
|
This page is no longer current. Instead, you should refer to astate
Original page contents are below this line:
[edit]
Things to do to if Alice was recently gutted
- Chances are good this has all already been done for you
- Hook up the GPS:
- Hook up power
- Hook up the anetnna
- Hook up serial to either port (they both should work now)
- Connect the other end of serial up to port 4 of the SDS
- Hook up the IMU:
- Plug the apropriate cable into the fastcom card on skynet1
- Connect the power adapter up to the IMU power supply
[edit]
How to actually use AState
- Make sure you switch this on in the right order when the time comes
- Note: for safety's sake, make sure the IMU is off when we unplug from wall power to avoid brown-out problems
- Compile all the code (thanks build team)
- Set up fastcom card:
- Load the fastcom drivers:
- Fastcom drivers should now be loaded automatically on boot.
- Check that the modules are loaded:
-
lsmod
-
- Verify that the module esccp is loaded. If it isn't Execute the following command as root:
modprobe esscp
- Initialize the device driver and ESCC/P card to receive LN-200 data.
- Execute the following command from the astate directory (you don't have to be root)
-
./ln-200/fastcomm_esccp_setup
-
- Execute the following command from the astate directory (you don't have to be root)
- Load the fastcom drivers:
- start up skynetd with the apropriate key
-
skynetd 122883&
-
- run astate. Flags are -s <skynetkey> -m <heading> -l <log_file_prex>
-
./astate -s 122883 -m 110 -l test1
-
- to replay this file from raw gps/imu data:
-
./astate -s 122883 -m 110 -r test1
-
- to log actual state data (rather than raw state data) run:
-
./astate_test yourlogfilenameprefixhere
-
- Check the log and see if it makes sense.
[edit]
Trouble shooting
- If the GPS is having issues aquiring a signal, you might want to power cycle it with the button on the GPS (not the switch on the dash)
- When astate starts up, the cursor tends to be over the gps valid text, and shows up as invalid. I recommend moving down to some other value and hitting ctrl-L so you can actually see the GPS state. It's worth running astate (without logging) until you see you're someplace you have a valid GPS signal, and then restarting it with logging.
![[Main Page]](../../../../upload/alice.jpg)