Closed shardros closed 2 years ago
This is essentially a brain issue, if we are on a brain then we want to write the logs to /media/RobotUSB/logs.txt
otherwise we want to just write them to shepherd-2/logs.txt
This requires us to have an "on brain detection" mechism. When on a brain all of the issues about weather to write to a USB stick are handeled by: https://github.com/systemetric/RoboCon-brain-support-files/blob/main/scripts/2_Brain_config.sh
Will need to get hold a brain which has this behaviour to test it but the functionality should be there. Can't write automated tests without paddock
USB sticks behave as they do in
shepherd-1
DONE IS:
NOTES See here for shepherd-1 implementation: https://github.com/systemetric/shepherd/blob/28473503130cddd2c40702240f3deaad3a21e52b/shepherd/__init__.py#L56