Module Import alias Import alias Import alias Import alias Import alias Import alias ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Str FunctionDef arguments args NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Pass Expr Call NameLoad Expr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Pass decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot CompareEq Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Return Import alias TryExcept body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad For TupleStore NameStore NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If UnaryOpNot AttributeLoad NameLoad attr body TryExcept body ImportFrom alias Assign AttributeStore NameLoad attr Call NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad TryExcept body ImportFrom alias Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Import alias If CompareEq NameLoad Num body Return TupleLoad Str Str orelse If CompareEq NameLoad Num body TryExcept body ImportFrom alias Assign AttributeStore NameLoad attr Call NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return TupleLoad Str AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body TryExcept body ImportFrom alias Assign AttributeStore NameLoad attr Call NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return TupleLoad Str AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body TryExcept body ImportFrom alias Assign AttributeStore NameLoad attr Call NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return TupleLoad Str AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body TryExcept body ImportFrom alias Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad Return TupleLoad Str AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body TryExcept body ImportFrom alias Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad Return TupleLoad Str AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Return TupleLoad Str Str orelse If BoolOpOr CompareEq NameLoad Num CompareEq NameLoad Num body Return TupleLoad Str Str orelse If CompareEq NameLoad Num body Return TupleLoad Str Str orelse Return TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Import alias Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str If CompareIn SubscriptLoad NameLoad Index Num Str body Raise Call NameLoad Str For NameStore Call NameLoad Num Num body For NameStore Call NameLoad Num Num body Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpAdd BinOpMult NameLoad Num Num Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Slice NameLoad BinOpAdd NameLoad Num attr If BoolOpAnd NameLoad CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str Call NameLoad BinOpAdd BinOpMult Num NameLoad NameLoad NameLoad Assign NameStore BinOpAdd BinOpMult Num NameLoad NameLoad If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Pass decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list decorator_list
N/A N/A logging N/A logging.handlers N/A os N/A platform N/A subprocess N/A time FishPiConfig N/A object N/A N/A  Responsible for configuration of FishPi. 
        Reads offline configuration files centrally.
        Scans and detects connected devices and provides driver classes.
        Provides common file location paths (for consistency).
     N/A _devices N/A N/A _root_dir N/A N/A N/A os path join N/A N/A os getenv HOME fishpi __init__ N/A N/A self N/A N/A N/A N/A N/A N/A os path exists N/A self config_file N/A N/A N/A N/A setup_dirs N/A N/A setup_logging N/A N/A self gps_sensor None N/A N/A self compass_sensor None N/A N/A self temperature_sensor None N/A N/A self drive_controller None N/A N/A self camera_controller None N/A N/A self _vehicle_constants N/A VehicleConstants N/A N/A self _server_name None N/A N/A self _rpc_port None N/A N/A self _camera_port None N/A N/A vehicle_constants N/A N/A self N/A N/A N/A N/A self _vehicle_constants N/A property server_name N/A N/A self N/A N/A N/A N/A self _server_name N/A property server_name N/A N/A self value N/A N/A N/A N/A self _server_name value N/A N/A server_name setter rpc_port N/A N/A self N/A N/A N/A N/A self _rpc_port N/A property rpc_port N/A N/A self value N/A N/A N/A N/A self _rpc_port value N/A N/A rpc_port setter camera_port N/A N/A self N/A N/A N/A N/A self _camera_port N/A property camera_port N/A N/A self value N/A N/A N/A N/A self _camera_port value N/A N/A camera_port setter config_file N/A N/A self N/A N/A N/A N/A N/A N/A os path join N/A self _root_dir .fishpi_config N/A property navigation_data_path N/A N/A self N/A N/A N/A N/A N/A N/A os path join N/A self _root_dir navigation N/A property imgs_path N/A N/A self N/A N/A N/A N/A N/A N/A os path join N/A self _root_dir imgs N/A property logs_path N/A N/A self N/A N/A N/A N/A N/A N/A os path join N/A self _root_dir logs N/A property resources_folder N/A N/A self N/A N/A N/A  Configured resources folder relative to code paths.  N/A N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path realpath __file__ resources N/A devices N/A N/A self N/A N/A N/A  Attached devices.  N/A N/A self _devices N/A property setup_dirs N/A N/A self N/A N/A N/A  Create directories  N/A N/A N/A N/A N/A os path exists N/A self _root_dir N/A N/A N/A N/A os makedirs N/A self _root_dir N/A N/A N/A N/A N/A os path exists N/A self navigation_data_path N/A N/A N/A N/A os makedirs N/A self navigation_data_path N/A N/A N/A N/A N/A os path exists N/A self imgs_path N/A N/A N/A N/A os makedirs N/A self imgs_path N/A N/A N/A N/A N/A os path exists N/A self logs_path N/A N/A N/A N/A os makedirs N/A self logs_path N/A setup_logging N/A N/A self N/A N/A N/A  Create and configure logging.  N/A logger N/A N/A logging getLogger N/A N/A N/A logger setLevel N/A logging DEBUG N/A console N/A N/A logging StreamHandler N/A N/A N/A logger addHandler console N/A log_file_stem N/A N/A N/A os path join N/A self logs_path N/A fishpi_%s.log N/A N/A time strftime %Y%m%d_%H%M%S N/A handler N/A N/A N/A logging handlers RotatingFileHandler log_file_stem backupCount 50 N/A formatter N/A N/A logging Formatter %(asctime)s %(levelname)s %(message)s N/A N/A N/A handler setFormatter formatter N/A N/A N/A logger addHandler handler N/A configure_devices N/A N/A self debug N/A False N/A N/A  Configures i2c devices when running in appropriate environment.  N/A N/A N/A N/A N/A platform system Linux N/A N/A N/A N/A logging info CFG:	Not running on Linux distro. Not configuring i2c or other devices. N/A N/A N/A self set_dummy_devices N/A N/A raspberrypi N/A N/A N/A N/A N/A logging info CFG:	Configuring i2c devices... N/A i2c_addresses N/A N/A self scan_i2c debug debug N/A N/A addr in_use i2c_addresses N/A N/A N/A device_name device_driver N/A N/A self lookup addr debug debug N/A N/A N/A N/A self _devices append N/A addr device_name device_driver in_use N/A N/A N/A Exception N/A ex N/A N/A N/A N/A logging exception N/A CFG:	Error scanning i2c devices - %s ex N/A N/A N/A self gps_sensor N/A N/A N/A sensor.GPS_serial GPS_AdafruitSensor N/A N/A self gps_sensor N/A GPS_AdafruitSensor serial_bus N/A N/A raspberrypi serial_bus debug debug N/A N/A N/A Exception N/A ex N/A N/A N/A N/A logging warning N/A CFG:	Error setting up GPS over serial - %s ex N/A N/A sensor.camera CameraController N/A N/A self camera_controller N/A CameraController self debug debug N/A N/A N/A Exception N/A ex N/A N/A N/A N/A logging info N/A CFG:	Camera support unavailable - %s ex N/A N/A self camera_controller N/A DummyCameraController N/A N/A self resources_folder N/A N/A N/A self drive_controller N/A N/A N/A self drive_controller N/A DummyDriveController N/A lookup N/A N/A self addr debug N/A False N/A N/A  lookup available device drivers by hex address,
            import and create driver class,
            setup particular devices so easily retrieved by consumers.  N/A debug N/A N/A N/A N/A logging debug N/A CFG:	Checking for driver for device at i2c %s addr N/A raspberrypi N/A N/A addr 104 N/A N/A N/A RTC Driver not loaded - DS1307 N/A N/A N/A addr 32 N/A N/A N/A sensor.GPS_I2C GPS_NavigatronSensor N/A N/A self gps_sensor N/A GPS_NavigatronSensor i2c_bus N/A N/A raspberrypi i2c_bus debug debug N/A N/A N/A Exception N/A ex N/A N/A N/A N/A logging warning N/A CFG:	Error setting up GPS over i2c - %s ex N/A N/A GPS N/A self gps_sensor N/A N/A N/A addr 72 N/A N/A N/A sensor.temperature_TMP102 TemperatureSensor N/A N/A self temperature_sensor N/A TemperatureSensor i2c_bus N/A N/A raspberrypi i2c_bus debug debug N/A N/A N/A Exception N/A ex N/A N/A N/A N/A logging warning N/A CFG:	Error setting up TEMPERATURE over i2c - %s ex N/A N/A TEMPERATURE N/A self temperature_sensor N/A N/A N/A addr 96 N/A N/A N/A sensor.compass_CMPS10 Cmps10_Sensor N/A N/A self compass_sensor N/A Cmps10_Sensor i2c_bus N/A N/A raspberrypi i2c_bus debug debug N/A N/A N/A Exception N/A ex N/A N/A N/A N/A logging warning N/A CFG:	Error setting up COMPASS over i2c - %s ex N/A N/A COMPASS N/A self compass_sensor N/A N/A N/A addr 64 N/A N/A N/A vehicle.drive_controller AdafruitDriveController N/A N/A self drive_controller N/A AdafruitDriveController i2c_addr addr i2c_bus N/A N/A raspberrypi i2c_bus debug debug N/A N/A N/A Exception N/A ex N/A N/A N/A N/A logging info N/A CFG:	Error setting up DRIVECONTROLLER over i2c - %s ex N/A N/A self drive_controller N/A DummyDriveController N/A N/A DRIVECONTROLLER N/A self drive_controller N/A N/A N/A addr 50 N/A N/A N/A vehicle.drive_controller PyJuiceDriveController N/A N/A self drive_controller N/A PyJuiceDriveController i2c_addr addr i2c_bus N/A N/A raspberrypi i2c_bus debug debug N/A N/A N/A Exception N/A ex N/A N/A N/A N/A logging info N/A CFG:	Error setting up DRIVECONTROLLER over i2c - %s ex N/A N/A self drive_controller N/A DummyDriveController N/A N/A DRIVECONTROLLER N/A self drive_controller N/A N/A N/A addr 30 N/A N/A N/A COMPASS Driver not loaded - HMC5883L N/A N/A N/A N/A addr 83 N/A addr 29 N/A N/A N/A ACCELEROMETER Driver not loaded - ADXL345 N/A N/A N/A addr 105 N/A N/A N/A GYRO Driver not loaded - ITG3200 N/A N/A N/A unknown None N/A scan_i2c N/A N/A self debug N/A False N/A N/A scans i2c port returning a list of detected addresses.
            Requires sudo access.
            Returns True for in use by a device already (ie UU observed) N/A raspberrypi N/A proc N/A N/A subprocess Popen N/A sudo i2cdetect -y N/A N/A raspberrypi i2c_bus_num stdout N/A subprocess PIPE close_fds True N/A N/A std_out_txt std_err_txt N/A N/A proc communicate N/A debug N/A N/A N/A N/A logging debug std_out_txt N/A N/A N/A logging debug std_err_txt N/A addr N/A N/A lines N/A N/A N/A N/A std_out_txt rstrip split N/A N/A N/A lines N/A 0 command not found N/A N/A N/A RuntimeError i2cdetect not found N/A i N/A range 0 8 N/A N/A j N/A range 0 16 N/A N/A idx_i N/A i 1 N/A idx_j N/A N/A j 3 4 N/A cell N/A N/A N/A N/A lines N/A idx_i N/A idx_j N/A idx_j 2 strip N/A N/A cell N/A cell -- N/A N/A N/A N/A logging info     ...device at: %s %s N/A hex N/A N/A 16 i j cell N/A hexAddr N/A N/A 16 i j N/A N/A cell UU N/A N/A N/A N/A addr append N/A hexAddr True N/A N/A N/A N/A addr append N/A hexAddr False N/A addr N/A set_dummy_devices N/A N/A self N/A N/A N/A  Initialises 'dummy' devices that usually just log on actions.  N/A N/A self camera_controller N/A DummyCameraController N/A N/A self resources_folder N/A N/A self drive_controller N/A DummyDriveController N/A N/A DummyCameraController N/A object N/A N/A  'Dummy' camera controller that just logs.  __init__ N/A N/A self resources_folder N/A N/A N/A N/A self enabled False PIL Image N/A temp_image_path N/A N/A N/A os path join resources_folder camera.jpg N/A N/A self _last_img N/A N/A Image open temp_image_path N/A capture_now N/A N/A self N/A N/A N/A N/A self enabled N/A N/A N/A N/A logging debug CAM:	Capture image. N/A N/A last_img N/A N/A self N/A N/A N/A N/A self _last_img N/A property N/A DummyDriveController N/A object N/A N/A  'Dummy' drive controller that just logs.  N/A throttle_level 0.0 N/A steering_angle 0.0 __init__ N/A N/A self N/A N/A N/A N/A set_throttle N/A N/A self throttle_level N/A N/A N/A N/A N/A logging debug N/A DRIVE:	Throttle set to: %s throttle_level N/A N/A self throttle_level throttle_level N/A N/A set_steering N/A N/A self angle N/A N/A N/A N/A N/A logging debug N/A DRIVE:	Steering set to: %s angle N/A N/A self steering_angle angle N/A N/A halt N/A N/A self N/A N/A N/A N/A N/A logging debug DRIVE:	Drive halting. N/A N/A self throttle_level 0.0 N/A N/A self steering_angle 0.0 N/A N/A N/A VehicleConstants N/A N/A N/A  Constants as configured for a particular physical vehicle.  __init__ N/A N/A self N/A N/A N/A N/A self pid_drive_gain_p 1.0 N/A N/A self pid_drive_gain_i 0.0 N/A N/A self pid_drive_gain_d 0.0 N/A N/A self drive_dead_zone 0.3 N/A N/A self drive_max_response 1.0 N/A N/A self pid_heading_gain_p 0.9 N/A N/A self pid_heading_gain_i 0.4 N/A N/A self pid_heading_gain_d 0.1 N/A N/A self heading_dead_zone None N/A N/A self heading_max_response 0.785398 N/A N/A