Python Forum

Full Version: Help in reducing the number of bits for gps latitude and longitude
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all, I'm new to Python programming. I'm currently doing my school project and my supervisor has tasked me to reduce the number of bits for GPS (latitude & longitude) through Python. I have no idea on starting on it and I really need help.

Latitude ( 1. x(0-4 (3bits)) x(0-8 (4 bits)) x(0-8 (4bits)) x(0-9(4bits)) x(0-9 (4bits)) x(0-9 (4bits)) )

Longitude ( 1 0 x(0-4 (3bits)). x (0-5 (3bits)) x(0-9 (4bits)) x (0-8 (4bits)) x (0-5 (3bits)) x (0-9 (4bits)) x (0-9 (4bits))

This is the information that he has given me. All he said was that he wants all the values here to be masked and reduced in number of bits. Really appreciate any help given. Thanks a lot.
if you can't start, you need to run through a tutorial until you can.
Try this one: https://www.python-course.eu/python3_course.php