Create 3 tasks in free RTOS
Task 1 (highest priority) monitors a parking lot in the Park. It generates random
coordinates (x,y) of a car and uses the Euclidean distance and period to calculate the speed
of the car (output). If the speed is above 10 (to simulate 10 mph), a warning is generated.
Task 2 (medium priority) simulates an occupancy monitoring system for a room-eg:say a library room. Each time
(simulates one hour) a random value between 20 and 50, representing the number of
students in a library room, is generated. Task 2 calculates the accumulated sum, average, maximum
and minimum number of students as output, and clears the statistics after every 24
readings (i.e., one day).
Task 3 (lowest priority) records the power and energy consumption of the Park.
A power reading (random number between 10KW and 200KW) is sent to Task 3 every
minute (simulated). Task 3 estimates the energy consumption by calculating Power*Time.
The total energy consumption in a month and spikes of power use (i.e., instant power
reading >= 5 * average power use) are outputted.
a.) Create the three periodic tasks. They generate random sensor readings in memory.
Simulate their execution and measure the average response time of each task. Also record the
arrival times of jobs of the three tasks and check if there is any pattern.
b.) Task 1 reads random (x,y) coordinates from a file, while Task 2 and Task 3 still generate
random sensor readings in memory. Simulate their execution and measure the average response
time of each task. Compare the results from a.) and b.) .
note that 3 taks are just considered as 3 real-time occurring events, hence example is taken as library/park.
to create tasks and set priority the free rtos manual(section4.3)can be referred. coding in C Language
9 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön
hi, i have a lot of experience in RTOS and c programming. i can easily do the project for you. we can have a chat. thanks Relevant Skills and Experience c programming , RTOS Proposed Milestones $100 USD - all